Search in sources :

Example 1 with TokenGetInfoQuery

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();
}
Also used : TokenGetInfoQuery(com.hederahashgraph.api.proto.java.TokenGetInfoQuery)

Aggregations

TokenGetInfoQuery (com.hederahashgraph.api.proto.java.TokenGetInfoQuery)1