Search…
XDR
In the Bantu network, transactions are encoded using a standardized protocol called External Data Representation (XDR).
In Expansion, you will only encounter XDR when posting and getting transactions and in the ledger header.
When you post a transaction, a client will encode the transaction as XDR before submitting it to Expansion.
When you request a transaction, Expansion returns some data about the transaction in human-readable JSON. The full canonical data about the transaction is encoded in machine-readable XDR, available in XDR attributes at the end of the response.
You can decode this XDR in the Bantu Laboratory’s XDR Viewer.
ATTRIBUTE TYPE DESCRIPTION
  • envelope_xdrstring
    The XDR encoded transaction as stellar-core sees it.
  • result_xdrstring
    The effects of a transaction encoded in XDR.
  • result_meta_xdrstring
    The details about the effects of a transaction encoded in XDR.
  • fee_meta_xdrstring
    The fees associated with the transaction encoded in XDR.
1
{
2
// Response truncated to highlight XDR-related attributes
3
"envelope_xdr": "AAAAAPewD+/6X8o0bx3bp49Wf+mUhG3o+TUrcjcst717DWJVAAAAyAFvzscADTkNAAAAAAAAAAAAAAACAAAAAAAAAAYAAAACWE1BVEsAAAAAAAAAAAAAAAPvNOuztX4IjvV8pztsEc1/ZnTz0G3p5Cx4vcf04+xUAAONfqTGgAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAD2NyeXB0b21hcmluZS5ldQAAAAAAAAAAAAAAAAF7DWJVAAAAQK3vfUCZ8mbjW3ssMd0n1tJTF9Fv6EbuJ6cWKkYXBqG5itqanPbFzIQoZEHbPS8nr2vo4dROvKI0uQzNcfExKwM=",
4
"result_xdr": "AAAAAAAAAMgAAAAAAAAAAgAAAAAAAAAGAAAAAAAAAAAAAAAFAAAAAAAAAAA=",
5
"result_meta_xdr": "AAAAAQAAAAIAAAADAZU3mQAAAAAAAAAA97AP7/pfyjRvHdunj1Z/6ZSEbej5NStyNyy3vXsNYlUAAAAABlxskAFvzscADTkMAAAAAgAAAAAAAAAAAAAAD2NyeXB0b21hcmluZS5ldQABAAAAAAAAAAAAAAAAAAAAAAAAAQGVN5kAAAAAAAAAAPewD+/6X8o0bx3bp49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AAAAAAAAAA"
7
// Response truncated to highlight XDR-related attributes
8
}
Copied!
Last modified 8mo ago
Copy link