Search in sources :

Example 1 with ScheduleGetInfoQuery

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

Aggregations

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