Events
Container for Soroban events emitted during transaction execution or simulation.
Events provide insight into smart contract execution, including diagnostic information, transaction-level events, and contract-specific events. Events are returned as base64-encoded XDR strings and can be parsed into typed XDR objects for detailed analysis.
This class is used by various response types including SimulateTransactionResponse, GetTransactionResponse, and GetEventsResponse to encapsulate event data.
See also
Constructors
Properties
Nested list of contract events in base64-encoded XDR format. The outer list corresponds to operations in the transaction, and the inner lists contain events emitted by each operation. Contract events are explicitly emitted by smart contracts using the events SDK functions. Can be parsed using parseContractEventsXdr.
List of diagnostic events in base64-encoded XDR format. Diagnostic events are emitted by the runtime for debugging purposes and include detailed information about contract execution. Can be parsed using parseDiagnosticEventsXdr.
List of transaction-level events in base64-encoded XDR format. These events are associated with the transaction as a whole. Can be parsed using parseTransactionEventsXdr.
Functions
Parses the contractEventsXdr field from a nested list of base64-encoded XDR strings to a nested list of typed ContractEvent objects.
Parses the diagnosticEventsXdr field from a list of base64-encoded XDR strings to a list of typed DiagnosticEvent objects.
Parses the transactionEventsXdr field from a list of base64-encoded XDR strings to a list of typed TransactionEvent objects.