Skip to content

Decode XDR structures wherever possible. #128

Closed
@Shaptic

Description

@Shaptic

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!

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status

    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions