Class ScheduleInfo

java.lang.Object
com.hedera.hashgraph.sdk.ScheduleInfo

public final class ScheduleInfo extends Object
A query that returns information about the current state of a scheduled transaction on a Hedera network.

See Hedera Documentation

  • Field Details

    • scheduleId

      public final ScheduleId scheduleId
      The ID of the schedule transaction
    • creatorAccountId

      public final AccountId creatorAccountId
      The Hedera account that created the schedule transaction in x.y.z format
    • payerAccountId

      public final AccountId payerAccountId
      The Hedera account paying for the execution of the schedule transaction in x.y.z format
    • signatories

      public final KeyList signatories
      The signatories that have provided signatures so far for the schedule transaction
    • adminKey

      @Nullable public final Key adminKey
      The Key which is able to delete the schedule transaction if set
    • scheduledTransactionId

      @Nullable public final TransactionId scheduledTransactionId
      The scheduled transaction
    • memo

      public final String memo
      Publicly visible information about the Schedule entity, up to 100 bytes. No guarantee of uniqueness.
    • expirationTime

      @Nullable public final Instant expirationTime
      The date and time the schedule transaction will expire
    • executedAt

      @Nullable public final Instant executedAt
      The time the schedule transaction was executed. If the schedule transaction has not executed this field will be left null.
    • deletedAt

      @Nullable public final Instant deletedAt
      The consensus time the schedule transaction was deleted. If the schedule transaction was not deleted, this field will be left null.
    • transactionBody

      final SchedulableTransactionBody transactionBody
      The scheduled transaction (inner transaction).
    • ledgerId

      @Nullable public final LedgerId ledgerId
      The ledger ID the response was returned from; please see HIP-198 for the network-specific IDs.
    • waitForExpiry

      public final boolean waitForExpiry
      When 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 id
      creatorAccountId - the creator account id
      payerAccountId - the payer account id
      transactionBody - the transaction body
      signers - the signers key list
      adminKey - the admin key
      scheduledTransactionId - the transaction id
      memo - the memo 100 bytes max
      expirationTime - the expiration time
      executed - the time transaction was executed
      deleted - the time it was deleted
      ledgerId - the ledger id
      waitForExpiry - the wait for expiry field
  • Method Details

    • fromProtobuf

      static ScheduleInfo fromProtobuf(ScheduleInfo info)
      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

      public Transaction<?> getScheduledTransaction()
      Extract the transaction.
      Returns:
      the transaction
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toBytes

      public byte[] toBytes()
      Create the byte array.
      Returns:
      the byte array representation