Quote and route a token swap across every venue at once
DEX aggregation across a hundred-plus venues: price, quote and gasless swap routing on one endpoint, with no aggregator account and no per-key rate limit.
DEX aggregator API: price, quote and gasless swap routing across every venue
An indicative price and a firm quote for a Permit2 swap, the gasless variants of both — where a relayer pays gas and you sign an EIP-712 message instead of broadcasting a transaction — submit and status for that gasless flow, and chain and approval-token lists to check support before quoting. The quote returns the transaction or the typed data; your wallet signs and submits.
None of these requests carries a payment header. This is the one job on the site that is free for callers, so the sections below say what a request looks like rather than what it costs.
How to call the swap API — price, quote, gasless submit and status
One endpoint, no API key and no account — and no payment header: every request on this card is free for callers.
GET /api/v1/zerox/quote
Host: blockrun.aiDEX aggregator API pricing: free quotes, and what a swap actually costs
Swap routing for AI trading agents: from an MCP host or the SDK
In Claude Code, Claude Desktop, Cursor, Windsurf, Cline and any other MCP host, this is the blockrun_dex tool of the BlockRun MCP server — the agent calls it like any other tool and the result comes back in the conversation. In OpenClaw, Codex and Hermes, ClawRouter exposes the same catalog. In your own code, the Python and TypeScript SDKs wrap the endpoint above with types; any HTTP client works too. Every harness, with its setup →
No account, no API key and no payment header stand between an agent and the first call: every request on this card is free for callers.
DEX aggregator API vs 1inch, Jupiter, Uniswap and 0x direct
1inch, Jupiter (on Solana), Uniswap's routing API and 0x are the aggregators a developer compares. They solve the same problem — find the best route for a swap across many pools — and each needs its own key, with rate limits per key and, on some, a paid tier for volume. 0x is the router behind this page.
Here the price, quote, gasless submit and status requests are free for callers, with no key and no per-key rate limit: this is the one job on the site with no payment header. The quote returns the transaction, or the EIP-712 typed data for the gasless flow where a relayer pays gas; your wallet signs and submits.
What it does not do: hold funds or execute on your behalf. It prices and routes, and hands back something to sign. Chain and approval-token list endpoints say what is supported before you quote.
Related tools
DEX swap API questions: routing, gasless, chains, slippage, execution
What is a DEX aggregator API?
An endpoint that finds the best route for a token swap across many decentralised exchanges and pools at once, and returns a price, a firm quote and a transaction to sign — rather than a single venue's price.
Does the swap API execute the trade for me?
No. It prices and routes the swap and returns a transaction, or typed data for the gasless flow; your wallet signs and submits it. Nothing here holds funds.
What is a gasless swap and does the API support it?
A swap where a relayer pays the gas and you sign an EIP-712 message instead of broadcasting a transaction. Yes — the gasless price, quote, submit and status requests are all on this endpoint.
Which chains does the DEX aggregator API support?
The chains endpoint lists them at request time — ask it rather than assume. Approval-token lists per chain are on the same prefix.
How much does a swap quote cost?
Nothing. Price, quote, submit and status are free for callers on this endpoint — the rate card above says Free — with no key and no rate limit.
How many venues does the swap API route across?
Over a hundred DEXs and pools, routed for best execution at quote time. The route is chosen per request, not fixed.
How do I control slippage on a swap?
The price and quote requests take a slippage tolerance, and the firm quote carries the amounts it guarantees at that tolerance. The docs carry the exact parameters.
DEX aggregator API vs 1inch, Jupiter, Uniswap or 0x direct?
Each needs its own key, with per-key rate limits and a paid tier on some. This is 0x's routing reached with no key and no limit, free for callers, returning the same transaction or typed data to sign.
Can an AI trading agent quote and sign swaps through the API?
Yes. The agent quotes for free, signs the returned transaction or typed data with its own wallet, and submits — no aggregator account to provision.
Two ways to run this
Get an API key
Sign in, get a key, and call the same endpoints with usage billed to your account. For teams that want one invoice instead of one wallet.
Get an API keyOr let your agent pay per call, in USDC
No account, no API key. Three steps, and the last one is the request this page is about.
- Point your agent at BlockRun
Install ClawRouter, or add the BlockRun MCP server to Claude Code, Cursor, Codex or OpenClaw. Any OpenAI-compatible client works too — change the base URL, nothing else.
curl -fsSL https://blockrun.ai/ClawRouter-update | bash - Fund a wallet with USDC
Send USDC to a wallet on Base or Solana. There is no account to create and no API key to issue: the wallet is the account, and it pays per call.
- Call DEX Aggregator API
The first call returns HTTP 402 with the exact price, your agent signs it, and the answer comes back. Payment settles on-chain; nothing is charged if the call fails.
GET /api/v1/zerox/quote Host: blockrun.ai
Explore everything on BlockRun
- GPT-6 Astra
- GPT-6.1 Sol
- GPT-6 Sol
- GPT-6 Luna
- GPT-5.6 Sol
- GPT-5.6 Terra
- GPT-5.6 Luna
- GPT-5.6 Sol Pro
- GPT-5.6 Terra Pro
- GPT-5.6 Luna Pro
- GPT-5.5
- GPT-5.5 Pro
- ChatGPT Instant (GPT-5.5)
- GPT-5.4
- GPT-5.4 Pro
- GPT-5.1
- GPT-5.2
- GPT-5.4 Mini
- GPT-5 Mini
- GPT-5.4 Nano
- GPT-5.2 Pro
- GPT-5.3 Codex
- GPT-4.1
- GPT-4.1 Mini
- GPT-4.1 Nano
- GPT-4o
- GPT-4o Mini
- o1
- o3
- o3-mini
- All models →