dex_quote
DEX swap quote (Uniswap v3). Best Uniswap v3 single-hop quote for swapping amountIn of tokenIn to tokenOut on Base, Ethereum, Arbitrum or Optimism, checking all fee tiers (0.01/0.05/0.3/1%). Returns amountOut, effective price, best fee tier, gas estimate. Tokens: ETH, USDC, USDT or 0x address. Read-only quote; no swap is executed. Deterministic, no LLM. Example output: {"chain":"base","tokenIn":"WETH","tokenOut":"USDC","amountIn":"1","amountOut":"2325.41","price":2325.41,"feeTier":500,"gasEstimate":"90000","venue":"uniswap-v3"}. Price: $0.0045 USDC on Base via x402 (pass the payment in _meta["x402/payment"]).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain: base (default), ethereum, arbitrum, optimism | |
| tokenIn | Yes | ETH, USDC, USDT or 0x address | |
| amountIn | Yes | Human amount of tokenIn, e.g. 1.5 | |
| tokenOut | Yes | ETH, USDC, USDT or 0x address |