evm_swap_order
evm_swap_orderBest-price quote and ready-to-sign transaction for a token swap on Base (default), Ethereum, Arbitrum, Optimism, Polygon, BSC or Avalanche, routed by the KyberSwap aggregator across every major DEX. Tokens by symbol (ETH, WETH, USDC, USDT, DAI, cbBTC, AERO, DEGEN, VIRTUAL on Base) or contract address; amount in human units. With taker you get the exact transaction (to, data, value, gas) plus whether an ERC-20 approval is needed and the spender. Non-custodial. Price: $0.002 USDC per call (x402).
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": {
"input": "<input>",
"output": "<output>"
},
"name": "evm_swap_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | base (default), ethereum, arbitrum, optimism, polygon, bsc or avalanche | |
| input | Yes | Token to sell: symbol or contract address | |
| taker | No | Wallet that signs and pays; omit for a quote only | |
| amount | No | Amount to sell in human units, e.g. 0.05 (or use amount_raw) | |
| output | Yes | Token to buy: symbol or contract address | |
| receiver | No | Wallet that receives the output token (default taker) | |
| amount_raw | No | Amount to sell in wei / base units | |
| slippage_bps | No | Max slippage in basis points, 0-2000 (default 50) |