Interface: TxEventHandler

fabric-network. TxEventHandler

Handler used to wait for commit events when a transaction is submitted.

Methods


cancelListening()

Called if submission of the transaction to the orderer fails.
Returns:
Type
void

<async> startListening()

Resolves when the handler has started listening for transaction commit events. Called after the transaction proposal has been accepted and prior to submission of the transaction to the orderer.
Returns:
Type
Promise.<void>

<async> waitForEvents()

Resolves (or rejects) when suitable transaction commit events have been received. Called after submission of the transaction to the orderer.
Returns:
Type
Promise.<void>