Skip to main content

XDR to JSON

info

Learn more about XDR to JSON conversion tools here.

To access the XDR to JSON page, select "View XDR" from the left-hand navigation menu, then choose the "XDR to JSON" option from the submenu.

Lab: XDR to JSON page

Inputting XDR Data

On this page, you can enter a base-64 encoded XDR into the input field located at the top. Alternatively, you can get a sample XDR by selecting the "fetch the latest transaction" link positioned below the input field.

Understanding the Output

After loading a valid XDR (for example, by fetching the latest transaction), the interface displays three key components:

  1. Transaction Hash – A read-only field containing the transaction hash, which can be copied for use in other tools, such as retrieving transaction details via API Explorer > RPC Methods > getTransaction.
  2. XDR Type – The identified type of XDR data, with an automatically pre-selected value. If the suggested type appears incorrect, you can select an alternative from the dropdown menu. A search function is available to help locate the appropriate type. Lab: XDR type dropdown
  3. JSON Output – A JSON object generated based on the selected XDR type. You can copy this object by clicking the "Copy JSON" button located below the output.

Lab: XDR to JSON output