parseTransactionEventsXdr

Parses the transactionEventsXdr field from a list of base64-encoded XDR strings to a list of typed TransactionEvent objects.

Transaction events are associated with the transaction as a whole rather than individual contract invocations. Each TransactionEvent contains:

  • stage: The stage at which the event occurred (e.g., during execution or finalization)

  • event: The actual ContractEvent data

Return

A list of parsed TransactionEvent XDR objects, or null if no transaction events exist.

Throws

if any XDR string is malformed or cannot be decoded.