use of com.hederahashgraph.api.proto.java.Response in project hedera-services by hashgraph.
the class HapiGetVersionInfo method lookupCostWith.
@Override
protected long lookupCostWith(HapiApiSpec spec, Transaction payment) throws Throwable {
Query query = getVersionInfoQuery(spec, payment, true);
Response response = spec.clients().getNetworkSvcStub(targetNodeFor(spec), useTls).getVersionInfo(query);
return costFrom(response);
}
use of com.hederahashgraph.api.proto.java.Response in project hedera-services by hashgraph.
the class HapiGetTopicInfo method lookupCostWith.
@Override
protected long lookupCostWith(HapiApiSpec spec, Transaction payment) throws Throwable {
Query query = getTopicInfoQuery(spec, payment, true);
Response response = spec.clients().getConsSvcStub(targetNodeFor(spec), useTls).getTopicInfo(query);
return costFrom(response);
}
use of com.hederahashgraph.api.proto.java.Response in project hedera-services by hashgraph.
the class HapiGetContractBytecode method lookupCostWith.
@Override
protected long lookupCostWith(HapiApiSpec spec, Transaction payment) throws Throwable {
Query query = getContractBytecodeQuery(spec, payment, true);
Response response = spec.clients().getScSvcStub(targetNodeFor(spec), useTls).contractGetBytecode(query);
return costFrom(response);
}
use of com.hederahashgraph.api.proto.java.Response in project hedera-services by hashgraph.
the class HapiGetAccountInfo method lookupCostWith.
@Override
protected long lookupCostWith(HapiApiSpec spec, Transaction payment) throws Throwable {
Query query = getAccountInfoQuery(spec, payment, true);
Response response = spec.clients().getCryptoSvcStub(targetNodeFor(spec), useTls).getAccountInfo(query);
return costFrom(response);
}
use of com.hederahashgraph.api.proto.java.Response in project hedera-services by hashgraph.
the class HapiGetAccountRecords method lookupCostWith.
@Override
protected long lookupCostWith(HapiApiSpec spec, Transaction payment) throws Throwable {
Query query = getRecordsQuery(spec, payment, true);
Response response = spec.clients().getCryptoSvcStub(targetNodeFor(spec), useTls).getAccountRecords(query);
return costFrom(response);
}
Aggregations