token.swap_quote
Right before an on-chain swap ($0.002): 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.
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) | base |
| amount | Yes | Sell amount in whole units, e.g. 1000 | |
| slippageBps | No | Slippage tolerance for the minimum received, in basis points |