Onchain routing

built for

enterprise

wallets

payments

exchanges

Settle trades and payments across 45+ million tokens and 25+ chains with liquidity from 370+ sources to deliver a smooth, reliable onchain experience.

Dashboard image with data and information about the 0x siteSwap iconGasless Icon

Battle-tested APIs for your onchain needs

Blazing fast!

<250ms

Median Response Time

Swap Icon
Swap Icon
Swap Icon
Tx Relay API

99.92%

Uptime

Historical uptime for 0x services

Lowest in DeFi

4.4%

Revert Rates

521+

Projects powered by 0x APIs

See case studies ↗

211M+

Transactions

180B+

Volume USD

14M+

Unique wallets

Swap

API

How value moves onchain

Power any crypto feature set with the deepest aggregated liquidity for any use case.

Available on

Cross-Chain

API

One resilient API for cross-chain

Keep users moving across chains with fast bridging that feels like a swap.

25 chains, 12 bridges, 1 integration

Gasless

API

Say goodbye to “insufficient gas”

Never lose a user trade because of gas. Remove the biggest challenge in the trading funnel.

Available on

Modular onchain
solutions

Composable building blocks designed to work seamlessly together, from one leading provider.

Keep track of what
matters to your business

Track revenue and usage trends

Monitor key trading and revenue metrics with in-depth charts and data from onchain transactions.

Debug faster

Quickly review API usage and spot spikes in errors.

Spin up and manage apps

Create new products in minutes and manage them all from your dashboard.

Data-driven insights and analytics

Gain actionable insights into user behavior in real-time.

Avg users swapped 3 times this month

Avg users swapped 3 times this month

Avg users swapped 3 times this month

Flexibility built-in

Add new features to each one of your apps with just one-click.

Self manage API keys

Instantly generate and manage API keys directly from the dashboard.

Seamless integration

Build your product in days, not months with a streamlined process.

Here for the tech, but also for the dev experience

Top-tier routing

Best-in-class liquidity aggregation and smart order routing. Try it live on Matcha.

Dev friendly

Fastest way to tap into 370+ exchanges.

Battle-tested since 2017

Secure and audited DEX infrastructure with 99.92% uptime.

Integrate in 5 minutes or less

Embed crypto settlement in your product with just a few lines of code.

Play


const main = async () => {

	 const sellAmount = parseUnits("1000", await usdc.read.decimals());

  	// fetch quote
  	const quoteParams = new URLSearchParams({
  		chainId: client.chain.id.toString(),
    	sellToken: usdc.address,
    	buyToken: weth.address,
    	sellAmount: sellAmount.toString(),
      taker: client.account.address,
    });

  const quoteResponse = await fetch(
    "https://api.0x.org/swap/allowance-holder/quote" + quoteParams.toString(),
    {
      headers,
    }
  );

  const quote = await quoteResponse.json();
  console.log("Quote to swap 1000 USDC for WETH: ", quote);

}
main();

Play


const main = async () => {

	 const sellAmount = parseUnits("1000", await usdc.read.decimals());

  	// fetch quote
  	const quoteParams = new URLSearchParams({
  		chainId: client.chain.id.toString(),
    	sellToken: usdc.address,
    	buyToken: weth.address,
    	sellAmount: sellAmount.toString(),
      taker: client.account.address,
    });

  const quoteResponse = await fetch(
    "http://api.0x.org/gasless/quote?" + quoteParams.toString(),
    {
      headers,
    }
  );

  const quote = await quoteResponse.json();
  console.log("Quote to swap 1000 USDC for WETH: ", quote);

}
main();

0x has one of the most extensive and reliable DEX API services in the Web3 ecosystem, backed by a professional and responsive team.

Sid Coelho-Prabhu

Coinbase Wallet

Sid Coelho-Prabhu, Sr. Director of
Product at Coinbase

Read the Coinbase case study

Frequently asked questions

How do I get started?

Get started in less than five minutes! To get started, simply create an account on the 0x Dashboard, choose a plan, set up your app, and generate your API keys.

How can I monetize my app with 0x?

0x offers two options for monetizing your order flow so you can build a sustainable Web3 business. You can set a percentage fee and a fee recipient on trades initiated within your application via Swap API requests. Additionally, you may take the positive slippage generated from your swaps. You can find details on both approaches in our API references.

What chains does 0x support?

0x supports Ethereum, Base, Arbitrum, Optimism, Polygon, Binance Smart Chain, Avalanche, Scroll, Linea, Blast, Mode, Mantle, Unichain, Berachain, Ink, Plasma, Sonic and Monad.

What plans does 0x offer?

We offer two transparent, flexible tiers for Web3 businesses of all sizes. You can get started with them here. If you are a high volume app or have a unique business model, please contact us to discuss a custom plan.