build_transaction
Build unsigned Stellar/Soroban transaction XDR for payments, trustline changes, and contract calls, with automatic sequence lookup and safety inspection.
Instructions
Build an unsigned Stellar/Soroban TransactionEnvelope XDR (payment, change_trust, or invoke_contract) with automatic sequence lookup and safety inspection.
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": {
"source_account": "<source_account>",
"operations": "<operations>"
},
"name": "build_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | Optional text memo (max 28 bytes) | |
| network | No | Optional network override (defaults to configured STELLAR_NETWORK). | |
| operations | Yes | Array of operations (payment, change_trust, invoke_contract) | |
| fee_stroops | No | Optional fee in stroops (defaults to BASE_FEE) | |
| source_account | Yes | Source account public key (G...) | |
| timeout_seconds | No | Transaction timeout in seconds (default 300) |