Interface Commit

All Superinterfaces:
Signable
All Known Subinterfaces:
SubmittedTransaction

public interface Commit extends Signable
Allows access to information about a transaction that is committed to the ledger.
  • Method Details

    • getTransactionId

      String getTransactionId()
      Get the transaction ID.
      Returns:
      A transaction ID.
    • getStatus

      default Status getStatus() throws CommitStatusException
      Get the status of the committed transaction. If the transaction has not yet committed, this method blocks until the commit occurs.
      Returns:
      Transaction commit status.
      Throws:
      CommitStatusException - if the gRPC service invocation fails.
    • getStatus

      Get the status of the committed transaction. If the transaction has not yet committed, this method blocks until the commit occurs.
      Parameters:
      options - Function that transforms call options.
      Returns:
      Transaction commit status.
      Throws:
      CommitStatusException - if the gRPC service invocation fails.
    • getStatus

      @Deprecated default Status getStatus(CallOption... options) throws CommitStatusException
      Deprecated.
      Get the status of the committed transaction. If the transaction has not yet committed, this method blocks until the commit occurs.
      Parameters:
      options - Call options.
      Returns:
      Transaction commit status.
      Throws:
      CommitStatusException - if the gRPC service invocation fails.