java.lang.Object
com.hedera.hashgraph.sdk.ScheduleInfo
A query that returns information about the current state of a scheduled
transaction on a Hedera network.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal KeyThe Key which is able to delete the schedule transaction if setfinal AccountIdThe Hedera account that created the schedule transaction in x.y.z formatfinal InstantThe consensus time the schedule transaction was deleted.final InstantThe time the schedule transaction was executed.final InstantThe date and time the schedule transaction will expirefinal LedgerIdThe ledger ID the response was returned from; please see HIP-198 for the network-specific IDs.final StringPublicly visible information about the Schedule entity, up to 100 bytes.final AccountIdThe Hedera account paying for the execution of the schedule transaction in x.y.z formatfinal TransactionIdThe scheduled transactionfinal ScheduleIdThe ID of the schedule transactionfinal KeyListThe signatories that have provided signatures so far for the schedule transaction(package private) final SchedulableTransactionBodyThe scheduled transaction (inner transaction).final booleanWhen set to true, the transaction will be evaluated for execution at expiration_time instead of when all required signatures are received. -
Constructor Summary
ConstructorsConstructorDescriptionScheduleInfo(ScheduleId scheduleId, AccountId creatorAccountId, AccountId payerAccountId, SchedulableTransactionBody transactionBody, KeyList signers, Key adminKey, TransactionId scheduledTransactionId, String memo, Instant expirationTime, Instant executed, Instant deleted, LedgerId ledgerId, boolean waitForExpiry) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduleInfofromBytes(byte[] bytes) Create a schedule info object from a byte array.(package private) static ScheduleInfofromProtobuf(ScheduleInfo info) Create a schedule info object from a protobuf.Transaction<?> Extract the transaction.byte[]toBytes()Create the byte array.(package private) ScheduleInfoCreate the protobuf.toString()
-
Field Details
-
scheduleId
The ID of the schedule transaction -
creatorAccountId
The Hedera account that created the schedule transaction in x.y.z format -
payerAccountId
The Hedera account paying for the execution of the schedule transaction in x.y.z format -
signatories
The signatories that have provided signatures so far for the schedule transaction -
adminKey
The Key which is able to delete the schedule transaction if set -
scheduledTransactionId
The scheduled transaction -
memo
Publicly visible information about the Schedule entity, up to 100 bytes. No guarantee of uniqueness. -
expirationTime
The date and time the schedule transaction will expire -
executedAt
The time the schedule transaction was executed. If the schedule transaction has not executed this field will be left null. -
deletedAt
The consensus time the schedule transaction was deleted. If the schedule transaction was not deleted, this field will be left null. -
transactionBody
The scheduled transaction (inner transaction). -
ledgerId
The ledger ID the response was returned from; please see HIP-198 for the network-specific IDs. -
waitForExpiry
public final boolean waitForExpiryWhen set to true, the transaction will be evaluated for execution at expiration_time instead of when all required signatures are received. When set to false, the transaction will execute immediately after sufficient signatures are received to sign the contained transaction. During the initial ScheduleCreate transaction or via ScheduleSign transactions. Note: this field is unused until Long Term Scheduled Transactions are enabled.
-
-
Constructor Details
-
ScheduleInfo
ScheduleInfo(ScheduleId scheduleId, AccountId creatorAccountId, AccountId payerAccountId, SchedulableTransactionBody transactionBody, KeyList signers, @Nullable Key adminKey, @Nullable TransactionId scheduledTransactionId, String memo, @Nullable Instant expirationTime, @Nullable Instant executed, @Nullable Instant deleted, LedgerId ledgerId, boolean waitForExpiry) Constructor.- Parameters:
scheduleId- the schedule idcreatorAccountId- the creator account idpayerAccountId- the payer account idtransactionBody- the transaction bodysigners- the signers key listadminKey- the admin keyscheduledTransactionId- the transaction idmemo- the memo 100 bytes maxexpirationTime- the expiration timeexecuted- the time transaction was executeddeleted- the time it was deletedledgerId- the ledger idwaitForExpiry- the wait for expiry field
-
-
Method Details
-
fromProtobuf
Create a schedule info object from a protobuf.- Parameters:
info- the protobuf- Returns:
- the new schedule info object
-
fromBytes
public static ScheduleInfo fromBytes(byte[] bytes) throws com.google.protobuf.InvalidProtocolBufferException Create a schedule info object from a byte array.- Parameters:
bytes- the byte array- Returns:
- the new schedule info object
- Throws:
com.google.protobuf.InvalidProtocolBufferException- when there is an issue with the protobuf
-
toProtobuf
ScheduleInfo toProtobuf()Create the protobuf.- Returns:
- the protobuf representation
-
getScheduledTransaction
Extract the transaction.- Returns:
- the transaction
-
toString
-
toBytes
public byte[] toBytes()Create the byte array.- Returns:
- the byte array representation
-