Search in sources :

Example 1 with TokenGetNftInfoQuery

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

Aggregations

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