Wallets

Embed swaps
in your wallet

Enable swaps for 10M+ tokens across 15 chains directly in your wallet with just a few lines of code.

Get started

Why 0x?

There are multiple aggregator products out there, but the peace of mind 0x brings you wont be equal to nothing. Just plug, play and go.

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

Sid Coelho-Prabhu

Director of Product at Coinbase

Trust is important. With 0x’s long history of building and powering leading wallets in the space, we trusted their battle-tested infrastructure to provide the best swap experience for Burner users.”

Sid Coelho-Prabhu

Cameron Robertson

CEO of Burner

0x v2 enabled us to tackle one of our top user pain points - buy/sell taxes. Great support and collaboration with the 0x team made integrating v2 a smooth and seamless process.

Sid Coelho-Prabhu

Abderrahmen Hanafi

Swaps Technical Owner at Trust

The biggest driver for choosing Swap API was the ability to easily bring swaps into the Tally wallet and provide the best pricing to users.

Sid Coelho-Prabhu

Michael Haley

Tally

Seamless in-wallet trading experience

Available on all mayor

15 EVM chains

Deep Coverage

Access 9M+ tokens with unrivaled liquidity from 150+ exchanges, including industry-leading support for tokens with buy/sell taxes.

Smart Wallet Support

Native support for Smart Contract Wallets in 0x’s Permit2 flow.

Gasless Experiences

Insufficient gas is a major source of friction in DeFi with a significant impact on conversions. Enable a simplified option in your trading flow with gasless swaps and approvals.

Coinbase

Self-custody wallet

Coinbase Wallet achieves major UX unlock with gasless swaps

"Gasless swaps have helped us create a simpler trading experience, where users can focus more on trading and less about network fees."

Highlights

Eliminated

insufficient gas

Flexibility

around network fees

Unlock Revenue

Swap fees serve as a key revenue stream for self-custody wallets. 0x’s out-of-the-box monetization features make it easy to grow your business with multiple fee options.

Powerful User Insights

(Automate, Analyze, Adapt). Easily aggregate and analyze user trading behavior, revenue insights, and more with in-depth charts and data from onchain trades. Improve your orgs ability to make data-driven decision that impact your business.

Control Your Balance Sheet

Collect fees in either the buy or sell token and say goodbye to dust sweeping at the end of each month. Save time and money on your journey towards building a sustainable Web3 business.

Integrate in 5 minutes or less

Embed crypto trading in your app 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/permit2/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();

Developer Guides

Tap into a decade of onchain expertise

Developer Guides