Swap quote
token.swap_quoteRight before an on-chain swap ($0.10): how much you get now on the best route (Uniswap v2/v3/v4, Aerodrome, direct or through WETH) on Base, Ethereum, Arbitrum, Optimism or Polygon, with price impact, minimum received at your slippage and alternatives. Simulated, nothing executed.
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": {
"sell": "<sell>",
"buy": "<buy>",
"amount": "<amount>"
},
"name": "token.swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buy | Yes | ETH, WETH, USDC or a 0x token address | |
| sell | Yes | ETH, WETH, USDC or a 0x token address | |
| chain | No | Chain of the token or pool: base (default), ethereum, arbitrum, optimism or polygon (solana where listed). Not the payment network | base |
| amount | Yes | Sell amount in whole units, e.g. 1000 | |
| slippageBps | No | Slippage tolerance for the minimum received, in basis points |