Skip to content

Augment getTransaction response to include events emitted during the transaction #16

Description

@tamirms

What problem does your feature solve?

There is no easy way to get events for a transaction. If you have a failed transaction in particular, it would be nice to be able to debug why the tx failed by viewing the diagnostic events that were emitted during the transaction.

What would you like to see?

Include events in the getTransaction response so we can see what events where emitted during the transaction.

What alternatives are there?

Manually decoding the tx meta xdr in the getTransaction response and then extract the events from the tx meta.

You could also find events for a tx using two rpc calls:

  1. Call getTransaction to get the ledger and tx index for the transaction in question.
  2. Call getEvents with the cursor set appropriately so that includes the ledger and tx index

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions