Interface Status


public interface Status
Information about a transaction that is committed to the ledger.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get the block number in which the transaction committed.
    org.hyperledger.fabric.protos.peer.TxValidationCode
    Get the committed transaction status code.
    Get the transaction ID.
    boolean
    Check whether the transaction committed successfully.
  • Method Details

    • getTransactionId

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

      long getBlockNumber()
      Get the block number in which the transaction committed.

      Note that the block number is an unsigned 64-bit integer, with the sign bit used to hold the top bit of the number.

      Returns:
      A block number.
    • getCode

      org.hyperledger.fabric.protos.peer.TxValidationCode getCode()
      Get the committed transaction status code.
      Returns:
      Transaction status code.
    • isSuccessful

      boolean isSuccessful()
      Check whether the transaction committed successfully.
      Returns:
      true if the transaction committed successfully; otherwise false.