Interface Status
public interface Status
Information about a transaction that is committed to the ledger.
-
Method Summary
Modifier and TypeMethodDescriptionlongGet the block number in which the transaction committed.org.hyperledger.fabric.protos.peer.TxValidationCodegetCode()Get the committed transaction status code.Get the transaction ID.booleanCheck whether the transaction committed successfully.
-
Method Details
-
getTransactionId
-
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:
trueif the transaction committed successfully; otherwisefalse.
-