Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode XDR structures wherever possible. #128

Closed
6 tasks done
Shaptic opened this issue Aug 14, 2023 · 0 comments · Fixed by #157
Closed
6 tasks done

Decode XDR structures wherever possible. #128

Shaptic opened this issue Aug 14, 2023 · 0 comments · Fixed by #157

Comments

@Shaptic
Copy link
Contributor

Shaptic commented Aug 14, 2023

Is your feature request related to a problem? Please describe.
It's annoying to decode base64-encoded XDR that comes from the raw JSON responses because:

(a) you don't necessarily know what the type is without referencing the documentation
(b) you need to actually write the decoding code and error-check it

Describe the solution you'd like
This should be part of Servers request methods: they should wrap and decode the raw responses wherever possible:

  • simulateTransaction
  • getTransaction
  • sendTransaction
  • getLedgerEntries
  • getLatestLedger
  • getEvents

Additional context
The work for this has been started in #127 and #129.

Please 👍 or 👎 as feedback for continuing this feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants