use of com.hederahashgraph.api.proto.java.TokenGetInfoQuery in project hedera-services by hashgraph.
the class HapiGetTokenInfo method getTokenInfoQuery.
private Query getTokenInfoQuery(HapiApiSpec spec, Transaction payment, boolean costOnly) {
var id = TxnUtils.asTokenId(token, spec);
TokenGetInfoQuery getTokenQuery = TokenGetInfoQuery.newBuilder().setHeader(costOnly ? answerCostHeader(payment) : answerHeader(payment)).setToken(id).build();
return Query.newBuilder().setTokenGetInfo(getTokenQuery).build();
}
Aggregations