decode_xdr
Decode base64-encoded Stellar XDR into readable JSON to inspect transactions, contract values, ledger data, and diagnostic events.
Instructions
Decode base64-encoded Stellar XDR (TransactionEnvelope, ScVal, LedgerKey, LedgerEntryData, DiagnosticEvent, or SorobanTransactionData) into readable JSON.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"xdr": "<xdr>",
"type": "<type>"
},
"name": "decode_xdr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xdr | Yes | Base64-encoded XDR string | |
| type | Yes | XDR type to decode | |
| network | No | Optional network override (defaults to configured STELLAR_NETWORK). |