Get a swap quote
get_quoteQuote a swap on-chain via your RPC to see net output, enforced minimum, price impact, and Phoenix Check verdict; use exact=true for an execution-grade dry-run.
Instructions
Quote a swap on-chain through YOUR RPC: net output after the fee, the minimum the Router enforces, price impact and the Phoenix Check verdict (ok / caution / danger / blocked; it fails closed). Set exact=true for an execution-grade dry-run of every leg.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | base | eth | optimism | arbitrum | robinhood, or a numeric chain id. Optional when your RPC has a single chain. | |
| exact | No | true: previewPlanExact, every concentrated leg dry-run | |
| amount | No | input amount in human units, for example "1.5" | |
| tokenIn | Yes | input token: a 0x address, or a symbol such as ETH, WETH, USDC, BZPX | |
| version | No | protocol version: latest (default) | 1 | 2 | 2.0.0 | |
| amountIn | No | input amount in base units, as an integer string | |
| tokenOut | Yes | output token: a 0x address, or a symbol such as ETH, WETH, USDC, BZPX | |
| userMinOut | No | optional explicit minimum output, in base units of tokenOut |