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. | |
timestamp |
Date |
<optional> |
The transaction timestamp. Note that timestamp does not exist for filtered event. |
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. -
getContractEvents()
-
Get the contract events emitted by this transaction.
Returns:
Contract events.- Type
- Array.<module:fabric-network.ContractEvent>