Class TransactionResponse

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

public final class TransactionResponse extends Object
When the client sends the node a transaction of any kind, the node replies with this, which simply says that the transaction passed the pre-check (so the node will submit it to the network) or it failed (so it won't). To learn the consensus result, the client should later obtain a receipt (free), or can buy a more detailed record (not free).
See Hedera Documentation
  • Field Details

    • nodeId

      public final AccountId nodeId
      The node ID
    • transactionHash

      public final byte[] transactionHash
      The transaction hash
    • transactionId

      public final TransactionId transactionId
      The transaction ID
    • scheduledTransactionId

      @Nullable @Deprecated public final TransactionId scheduledTransactionId
      Deprecated.
      The scheduled transaction ID
  • Constructor Details

    • TransactionResponse

      TransactionResponse(AccountId nodeId, TransactionId transactionId, byte[] transactionHash, @Nullable TransactionId scheduledTransactionId, Transaction transaction)
      Constructor.
      Parameters:
      nodeId - the node id
      transactionId - the transaction id
      transactionHash - the transaction hash
      scheduledTransactionId - the scheduled transaction id
  • Method Details