Build the unsigned XRP Payment
build_swap_txRe-quotes and returns ONE unsigned XRP Ledger Payment to THORChain that the caller signs and submits with its own wallet. Same checks as swap.botgraph.org: OFAC screen on both addresses, minimum enforced, memo in MemoData only, no DestinationTag, LastLedgerSequence before the quote expiry. We never sign, submit or hold funds.
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": {
"from": "<from>",
"to": "<to>",
"amount_xrp": "<amount_xrp>",
"destination": "<destination>"
},
"name": "build_swap_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | What to receive: BTC (Bitcoin), ETH (Ether) or USDC (USDC on Ethereum). | |
| from | Yes | The XRP account (r...) that will sign and pay. | |
| amount_xrp | Yes | XRP to send, e.g. "20" (up to 6 decimals). Must be at least the quote's minimum_xrp. | |
| destination | Yes | Address that receives the coins: a Bitcoin address for BTC, an Ethereum 0x address for ETH or USDC. |