use of com.hederahashgraph.api.proto.java.TokenGetNftInfoQuery in project hedera-services by hashgraph.
the class HapiGetTokenNftInfo method getTokenNftInfoQuery.
private Query getTokenNftInfoQuery(HapiApiSpec spec, Transaction payment, boolean costOnly) {
var id = TxnUtils.asTokenId(token, spec);
TokenGetNftInfoQuery getTokenNftQuery = TokenGetNftInfoQuery.newBuilder().setHeader(costOnly ? answerCostHeader(payment) : answerHeader(payment)).setNftID(NftID.newBuilder().setTokenID(id).setSerialNumber(serialNum).build()).build();
return Query.newBuilder().setTokenGetNftInfo(getTokenNftQuery).build();
}
Aggregations