stellar_xdr_encode
Encode JSON into base64 XDR for any Stellar type using the type's JSON schema, enabling roundtrip with decode and schema 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 |
|---|---|---|---|
| type | Yes | Stellar XDR type name (see stellar_xdr_types), e.g. TransactionEnvelope | |
| json | Yes |