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();
}
Aggregations