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:
- Call
getTransaction to get the ledger and tx index for the transaction in question.
- Call
getEvents with the cursor set appropriately so that includes the ledger and tx index
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
getTransactionresponse so we can see what events where emitted during the transaction.What alternatives are there?
Manually decoding the tx meta xdr in the
getTransactionresponse and then extract the events from the tx meta.You could also find events for a tx using two rpc calls:
getTransactionto get the ledger and tx index for the transaction in question.getEventswith the cursor set appropriately so that includes the ledger and tx index