get_best_route
Fetch the full swap book from every configured venue at one pinned block, ranked first-to-last, so you can see what the chain would actually pay. Excludes aggregators and unconfigured DEXs.
Instructions
Ask verify402 what the chain would ACTUALLY pay for a swap: the full book from every configured venue (direct and WETH-routed) at one pinned block, best first. Aggregators and unconfigured DEXs are not included. Costs $0.03 per call.
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": {
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amountIn": "<amountIn>",
"chainId": "<chainId>"
},
"name": "get_best_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | Yes | REQUIRED. 1 Ethereum, 42161 Arbitrum, 8453 Base. There is no default; omitting it returns 400 missing_chain. | |
| tokenIn | Yes | Token symbol (e.g. USDC) or 0x address | |
| amountIn | Yes | RAW base units of tokenIn, wei-scale, as a string | |
| tokenOut | Yes | Token symbol (e.g. WETH) or 0x address |