Quote a swap
quote_swapPrice a swap without committing to it. Read-only. Works for the native coin (use its address from list_chains), across EVM chains (buyChainId) and on Solana (base58 mints, case intact).
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": {
"chainId": "<chainId>",
"sellToken": "<sellToken>",
"buyToken": "<buyToken>",
"sellAmount": "<sellAmount>"
},
"name": "quote_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | Yes | ||
| buyToken | Yes | ||
| sellToken | Yes | ||
| buyChainId | No | ||
| sellAmount | Yes |