use of com.hederahashgraph.api.proto.java.ScheduleGetInfoQuery in project hedera-services by hashgraph.
the class HapiGetScheduleInfo method getScheduleInfoQuery.
private Query getScheduleInfoQuery(HapiApiSpec spec, Transaction payment, boolean costOnly) {
var id = TxnUtils.asScheduleId(schedule, spec);
ScheduleGetInfoQuery getScheduleQuery = ScheduleGetInfoQuery.newBuilder().setHeader(costOnly ? answerCostHeader(payment) : answerHeader(payment)).setScheduleID(id).build();
return Query.newBuilder().setScheduleGetInfo(getScheduleQuery).build();
}
Aggregations