Search in sources :

Example 1 with CryptoGetAccountRecordsQuery

use of com.hederahashgraph.api.proto.java.CryptoGetAccountRecordsQuery in project hedera-services by hashgraph.

the class HapiGetAccountRecords method getRecordsQuery.

private Query getRecordsQuery(HapiApiSpec spec, Transaction payment, boolean costOnly) {
    var id = TxnUtils.asId(account, spec);
    CryptoGetAccountRecordsQuery query = CryptoGetAccountRecordsQuery.newBuilder().setHeader(costOnly ? answerCostHeader(payment) : answerHeader(payment)).setAccountID(id).build();
    return Query.newBuilder().setCryptoGetAccountRecords(query).build();
}
Also used : CryptoGetAccountRecordsQuery(com.hederahashgraph.api.proto.java.CryptoGetAccountRecordsQuery)

Aggregations

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