TransactionEvent
payload is generated to communicate the outcome.Operation Handler
transmits a response containing the transaction status and any relevant events. The structure of this response is defined by the TransactionEvent
interface.
TransactionEvent
interface defines the format of the response sent after transaction completion.
status
property indicates the outcome of the transaction:
transaction
and error
properties are not set.transaction
property must be set, containing details of the processed transaction, while the error
property remains empty.error
property must be set, containing an error code and message explaining the failure reason. The transaction
property remains empty.TransactionEvent
payload.
Additionally, the TransactionEvent
payload can include an events
property. This property is an array of Event
objects that describe events emitted during successful transaction execution.
Event
interface defines the structure of individual event objects: