get_quote
Get an on-chain DEX aggregator quote (computed by the Quoter contract, not an off-chain API). Returns route, expected output, price impact and the enforced minimum. The checks object carries the Phoenix Check verdicts — priceImpact (against a 20% hard line), the on-chain Iron Law floor, and a cross-check note — with an overall verdict that fails closed (blocked/danger/caution/ok): quote these when a user asks whether a swap is safe. Add recipient to also receive signable transaction calldata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| in | Yes | input token — symbol (ETH, USDC, BZPX…) or 0x address | |
| out | Yes | output token — symbol or 0x address | |
| rpc | No | optional https RPC endpoint of YOUR OWN node — when set, the read is made through it instead of our shared pool. The service stays free either way; this simply keeps your volume off our quota (and off everyone else's). | |
| chain | Yes | base | eth | optimism | arbitrum | robinhood (or a chain id) | |
| amountIn | Yes | input amount in the token's smallest units (wei-style integer string) | |
| recipient | No | optional 0x address; when set, the response includes signable tx calldata |