Prepare an on-chain quote
prepare_quoteRead-onlyIdempotent
Prepare an on-chain BlazePhoenix quote to run on YOUR OWN RPC. Returns the exact eth_call (Quoter address + calldata, as a ready JSON-RPC request and a curl line) plus a request object. Run the call on your node, then pass request and the result hex to decode_quote. This server performs no RPC.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| in | Yes | input token — 0x address, or ETH / WETH / USDC / BZPX | |
| out | Yes | output token — 0x address, or ETH / WETH / USDC / BZPX | |
| chain | Yes | base | eth | optimism | arbitrum | robinhood (or a chain id) | |
| exact | No | true → previewPlanExact: every leg dry-run on its pool in this block (no calldata). No tokens move from a holder, so a token that blocks or taxes its own transfer still quotes; simulate the swap from the holder to test that | |
| version | No | protocol version: latest (default) | 1 | 2 | 2.0.0 | |
| amountIn | Yes | input amount in base units (wei-style integer string) | |
| recipient | No | optional 0x address; with it, decode_quote returns signable calldata | |
| userMinOut | No | optional explicit minimum output, base units | |
| deadlineSec | No | deadline horizon in seconds, 10–3600 (default 120) | |
| slippageBps | No | 0–5000 (default 50); never below the on-chain floor |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false: see code, error | |
| call | No | ||
| code | No | ||
| curl | No | ||
| mode | No | ||
| note | No | ||
| error | No | ||
| decode | No | ||
| chainId | No | ||
| request | No | ||
| contracts | No | ||
| rpcRequest | No | ||
| protocolVersion | No |