Swap a stablecoin across chains
quote_swapBest of Relay and NEAR Intents for a token-to-token swap, e.g. USDT:tron → USDC:base. With executable: true and the user's addresses, also returns the transaction or deposit address to execute it from the user's own wallet.
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": "<amount>"
},
"name": "quote_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | e.g. "USDC:base" | |
| from | Yes | e.g. "USDT:tron" | |
| user | No | Sender address on the origin chain | |
| amount | Yes | Amount of `from` | |
| refundTo | No | Refund address on the origin chain | |
| recipient | No | Receiver address on the destination chain | |
| executable | No | ||
| depositOnly | No | Only routes funded by sending to an address, for senders that cannot sign, like exchange withdrawals | |
| slippageBps | No |