stellar_xdr_encode
Convert JSON data into base64-encoded XDR for any Stellar type, enabling roundtrip compatibility with schema validation and decoding tools.
Instructions
Encode JSON into base64 XDR for a named type (roundtrip with stellar_xdr_json_schema + decode tools).
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": {
"type": "<type>",
"json": "<json>"
},
"name": "stellar_xdr_encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | ||
| type | Yes | Stellar XDR type name (see stellar_xdr_types), e.g. TransactionEnvelope |