Interface: TransactionEvent

fabric-network. TransactionEvent

Event representing a transaction processed within a block.
Properties:
Name Type Argument Description
transactionId string The ID of the transaction this event represents.
status string The status of this transaction.
isValid boolean Whether this transaction was successfully committed to the ledger. true if the transaction was commited; otherwise false. The status will provide a more specific reason why an invalid transaction was not committed.
transactionData FilteredTransaction | any The raw transaction event protobuf.
privateData any <optional>
Private data read/write sets associated with this transaction. Only present if listening to private events and there is private data associated with the transaction.

Methods


getBlockEvent()

Get the parent block event for this event.
Returns:
A block event.
Type
module:fabric-network.BlockEvent

getContractEvents()

Get the contract events emitted by this transaction.
Returns:
Contract events.
Type
Array.<module:fabric-network.ContractEvent>