parseDiagnosticEventsXdr

Deprecated

stellar-rpc does not send diagnosticEventsXdr in events, so use parseDiagnosticEventsXdr() on the transaction response instead.

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

Diagnostic events contain detailed runtime information useful for debugging contract execution, including:

  • Contract function calls and returns

  • Authorization checks

  • Resource consumption metrics

  • Error conditions

Return

A list of parsed DiagnosticEvent XDR objects, or null if diagnosticEventsXdr is null.

Throws

if any XDR string is malformed or cannot be decoded.