Uniswap Get a quote
uniswap_post_v1_quoteGet a quote. Uses the native public Uniswap HTTP contract. Uses the caller's OpenAny gateway credentials. Charges and authorization are determined by the gateway.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | body | |
| x-agent-info | No | x-agent-info | |
| x-api-experimental | No | Requests Guidestar routing. Requires x-universal-router-swapsteps: true. Supported for EXACT_INPUT quotes on Ethereum (1), Base (8453), and Robinhood Chain (4663); any other request, including one without the swap steps header, returns a 400 InputValidationError. A Guidestar request does not fall back to standard routing: if Guidestar cannot produce a quote, the request returns a 404. Guidestar routing is in beta and its behavior may change. Omitting the header or setting it to false keeps standard routing. | |
| x-erc20eth-enabled | No | Enable native ETH input support for UniswapX via ERC20-ETH (EIP-7914). When set to true and `tokenIn` is the native currency address (e.g. `0x0000000000000000000000000000000000000000`), the API may return UniswapX routes that spend native ETH for supported wallets. | |
| x-permit2-disabled | No | Disables the Permit2 approval flow. When set to `true`, `permitData` is returned as `null` and the header is forwarded to the routing layer for correct gas simulation against the Proxy Universal Router contract. When `false` or omitted, the standard Permit2 approval flow is used. This header is intended for integrators whose infrastructure uses a direct approval-then-swap pattern without Permit2. | |
| x-universal-router-version | No | The version of the Universal Router to use for the swap journey. *MUST* be consistent throughout the API calls. |