Quote Swap
quote_swapCalculate how much output you would receive when swapping one asset for another. Use this tool to answer questions like 'how much ETH would I get for 100 RUNE?' Returns expected output amount, fees, slippage, estimated time, and a memo for executing the swap.
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_asset": "<from_asset>",
"to_asset": "<to_asset>",
"amount": "<amount>"
},
"name": "quote_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The amount in base units (1e8 for most assets) | |
| to_asset | Yes | The target asset (e.g. ETH.ETH) | |
| affiliate | No | The affiliate address or THORName | |
| from_asset | Yes | The source asset (e.g. BTC.BTC) | |
| destination | No | The destination address for the swap output | |
| affiliate_bps | No | The affiliate fee in basis points (0-1000; protocol caps total affiliate fees at 1000 bps) |