0x's next-gen pricing engine is now live

Built for serious onchain apps, 0x v2 offers the most seamless swap experience at the best all-in prices.

September 25, 2024

News

As Web3 continues to evolve, projects are growing into more serious businesses, requiring swaps that fit into their business holistically, from security and reliability to monetization and compliance. 

In July, we introduced our next-gen pricing engine in beta to meet the needs of serious onchain apps. Redesigned from the ground up, 0x v2 offers the most seamless swap product for developers with optimal trade execution, powerful monetization controls, and enhanced security baked in at the ground level.

Over $1B in volume has already been routed through 0x v2 via our beta partners, including Matcha, DODO, Definitive, Abracadabra, Furucomobo, Notional, Ramses, Oku, Kinto, and Ethos. 

Today, we’re excited to announce the official launch of 0x v2 with support for three new chains (Linea, Scroll, and Blast) and all-new features, including state-of-the-art buy/sell tax support, regulatory compliance built-in, and native smart wallet support.

Now that’s serious.

0x v2 is available now to all integrators:

  • Live on Linea, Scroll, Blast + 7 other chains: Tap into 7M+ tokens with unrivaled liquidity from 140+ AMMs across 10 chains - all with a single API.
  • State-of-the-art Buy/Sell Tax support: Real-time buy/sell tax detection and intelligent trade routing for the most reliable onchain execution in DeFi, minimizing error rates and enhancing the swap experience for your users.
  • Regulatory compliance built-in: Built-in address screening effectively detects and blocks addresses connected to illicit activity.
  • Advanced routing at the best all-in prices: 0x v2 was built to optimize for execution quality - identifying the route expected to yield the best all-in price. v2 outperforms the competition at every trade size.
  • Secure by design: v2’s all-new set of smart contracts take security to the next level, fully eliminating allowance risk and baking in protection at the ground level by leveraging Permit2.
  • Powerful monetization controls: Take control of your balance sheet and say goodbye to dust sweeping at the end of each month. v2 saves you time and money on your journey towards building a sustainable Web3 business.

Now live on Linea, Scroll, and Blast

0x v2 is now live on Linea, Scroll, and Blast, expanding coverage to 10 chains in total, including Ethereum, Base, Arbitrum, Optimism, Avalanche, Binance Smart Chain, and Polygon. And more are on the way!

We’ve also enabled v2’s completely revamped RFQ system on Ethereum, Base, and Arbitrum, unlocking exclusive CEX-like liquidity from sophisticated market makers and opening up slippage-free trade routes for optimal trade execution.

With the widest swap coverage in the space, 0x v2 enables you to tap into 7M+ tokens with unrivaled liquidity from 140+ AMMs across 10 chains - at the best all-in prices in DeFi.

Regulatory compliance built-in with Address Screening

A downside of DeFi’s permissionless nature is that any entity can use decentralized platforms for trading funds from illicit activities, such as money laundering and terrorist financing. According to Elliptic, over $7 billion in illicit funds have been laundered through decentralized exchanges.

For growing Web3 businesses, this presents a very real regulatory risk. Teams face legal and compliance liability for the trades executed on their platforms, including regulatory scrutiny, steep fines, or even criminal charges for facilitating trades from illicit entities.

0x v2 now features multi-layer Address Screening built-in, safeguarding you from bad actors and minimizing compliance risk.

Multi-layer screening: v2 utilizes multi-layer screening via Chainalysis and our own internal blocklist to effectively detect and block addresses connected to illicit activity, ensuring that all addresses interacting with your application are screened for ties to terrorist funding, sancions, hacks, money laundering, and more.

Seamless protection: No engineering required. 0x APIs provide seamless protection with Address Screening automatically built-in for all integrators.

Zero-cost compliance: Access to screening APIs can be a significant expense, up to thousands of dollars a month, for Web3 applications. 0x offers protection at no additional cost.

We believe this added layer of security is a crucial step forward, enabling you to continue to serve your users permissionlessly while deterring bad actors from your platform. Rest easy knowing 0x has your back.

State-of-the-art Buy/Sell Tax support

The rise of memecoins has led to an explosion of tokens with a buy or sell tax, also known as fee-on-transfer tokens (FoT), with ~25% of DEX users now trading these tokens on Ethereum.

Buy/sell taxes throw a wrench into well built swap products, leading to not only high error and revert rates, causing headaches for developers, but also inaccurate quotes, leading to poor user experiences. They are the #1 cause of custom token related errors and revert rates for trades that include tokens with buy/sell taxes on top aggregators can reach as high as 30%.

Until now, there hasn’t been a reliable way to get accurate, real-time information needed to properly support buy/sell taxes, leaving apps to rely on hacky workarounds, such as dynamically adjusting slippage tolerance, that don’t always work.

0x v2 solves this problem with real-time buy/sell tax detection and intelligent trade routing for the most reliable onchain execution in DeFi, minimizing error rates and enhancing the swap experience for your users. 0x v2 also enables you to accurately surface the precise tax for a given trade to your users.

And that's not all...

  • Smart Contract Wallet Support: Native support for Smart Contract Wallets in v2’s Permit2 flow.
  • Enhanced error validation: Quotes that just work. No more onchain reverts due to quotes that can’t be validated and less dev time devoted to figuring out how to estimate gas when users don’t have a balance or allowance set.
  • Swap Typescript SDK: Designed to make it easier than ever for you to integrate with 0x API v2, our new SDK provides seamless access to the "Swap" and "Gasless" endpoints, offering a robust, type-safe client built on tRPC. Whether you're working with Node.js, Next.js, or React Query, the SDK simplifies interactions with the API, ensuring streamlined development and improved error handling.

Ready to get started?

0x v2 is now available to all integrators. Migrate from v1 to v2 today with our quick-start guide, or book a v2 onboarding session.

Important Notice: We will be deprecating v1 on December 18, 2024.

New to 0x? Sign-up for a free account and get started building with our all-new Swap TypeScript SDK, the easiest way to integrate v2 into your app.

Contents

Subscribe to newsletter

By submitting you're confirming that you agree with our Terms and Conditions.
Yay! You’re signed up.
Oops! Something went wrong, but it's not your fault.

Up next

Unlock powerful onchain insights with 0x Trade Analytics API

Nov 5, 2024

Fundamentals: Smart Contract Wallets

Oct 15, 2024

Compliance made easy with 0x Address Screening

Sep 26, 2024

Introducing state-of-the-art Buy/Sell Tax support

Sep 4, 2024

Take control of your balance sheet with 0x v2

Aug 15, 2024

0x v2 bug bounty program

Jul 30, 2024

What does the "best price" in DeFi really mean?

Jul 23, 2024

Eliminate allowance risk with Permit2

Jul 17, 2024

Introducing 0x's next-gen pricing engine

Jul 15, 2024

0x Dev Digest: May 2024

May 31, 2024

Frame spotlight: Paycaster

May 21, 2024

Frame spotlight: Airstack

May 9, 2024

Power up your Farcaster Frames with 0x swaps

May 2, 2024

0x Dev Digest: April 2024

Apr 30, 2024

Introducing 0x Trade Analytics

Mar 12, 2024

Coinbase Case Study

Jan 30, 2024

Introducing gasless swaps and approvals with Gasless API

Jan 22, 2024

Bitcoin ETFs have arrived

Jan 12, 2024

Building in the open: 0x pricing update

Dec 11, 2023

Matcha leverages Gasless API to bring users the most frictionless trading experience in DeFi

Nov 30, 2023

0x Dev Digest: October 2023

Nov 2, 2023

Monetize crypto trading in your app with Swap API

Oct 26, 2023

0x Dev Digest: September 2023

Oct 3, 2023

A comprehensive analysis of RFQ performance

Sep 26, 2023

Unlock optimal trades in Swap API with 0x RFQ liquidity

Sep 20, 2023

0x Dev Digest: August 2023

Aug 31, 2023

Portal launches swaps in its white label MPC wallet powered by 0x

Aug 16, 2023

0x Swap API is now live on Base

Aug 9, 2023

Introducing paid plans for Swap API

Jul 24, 2023

Decreasing Frictions in DeFi hackathon recap

Jul 12, 2023

0x's pricing principles

Jul 3, 2023

0x Dev Digest: June 2023

Jun 30, 2023

App spotlight: tastycrypto

Jun 27, 2023

App spotlight: 31Third

Jun 22, 2023

0x 101: Intro to gasless API

Jun 13, 2023

Inspiration for building with Swap API

Jun 8, 2023

0x Dev Digest: May 2023

May 31, 2023

Fundamentals: What are gas fees?

May 25, 2023

Decreasing Frictions in DeFi Hackathon

May 12, 2023

Swap API liquidity management

May 18, 2023

0x 101: Getting started with Swap API

May 16, 2023

0x 101: Intro to Swap API

May 9, 2023

0x 101: Intro to 0x Orders

May 4, 2023

0x 101: Intro to 0x Protocol

Apr 27, 2023

A new home for 0x Protocol

Apr 24, 2023

Say hi to the new 0x

Apr 20, 2023

0x Year in Review 2022

Jan 5, 2023

0x Swap API expands to Arbitrum

Sep 22, 2022

Managed liquidity

Apr 23, 2020

0x Smart Order Routing

May 19, 2020

App spotlight: Taho

Mar 8, 2022

Fundamentals: What is a Layer 2 chain?

Apr 19, 2023

Fundamentals: What is the difference between quoted, executed, and adjusted prices?

Apr 19, 2023

Fundamentals: What is price impact?

Apr 19, 2023

Fundamentals: What is slippage?

Apr 19, 2023

Fundamentals: What is an automated market maker (AMM)?

Apr 19, 2023

Fundamentals: What is market making?

Apr 19, 2023

Fundamentals: What is a DEX aggregator?

Apr 19, 2023

Fundamentals: What is liquidity?

Apr 19, 2023

Fundamentals: What is a decentralized exchange (DEX)?

Apr 19, 2023

0x at ETHDenver 2023

Mar 21, 2023

The 0x Mission and Values

Jun 7, 2018

Announcing support for new testnets

Aug 10, 2022

0x Swap API expands to Binance Smart Chain

Mar 17, 2021

Scaling DeFi — Layer One

Sep 1, 2021

Introducing Slippage Protection

Jul 14, 2022

San Francisco Blockchain Week 2022 Recap

Nov 21, 2022

0x Swap API adds new liquidity sources

Jul 11, 2022

Review of slippage performance

Sep 14, 2022

Phuture case study

Oct 20, 2022

Measuring the impact of hidden DEX costs

Apr 14, 2022

Market making in DeFi

Aug 12, 2021

Introducing 0x Labs

Jun 22, 2020

Introducing 0x Explorer

Oct 26, 2022

Growing DeFi with professional market makers

Aug 26, 2020

0x 101: How to Access 0x Data

Apr 25, 2023

GameStop chooses 0x Swap API

Jul 8, 2022

Build on Base with 0x

Feb 23, 2023

A comprehensive analysis on DEX liquidity aggregators’ performance

Oct 1, 2020

Announcing 0x Swap API v1

Oct 1, 2020

Access all DEX liquidity through 0x Swap API

Jan 28, 2020

Announcing the 0xpo Summit 2022

Aug 24, 2022

0x Protocol, a preview of what’s to come

Mar 16, 2023

Update to our Privacy Policy

Mar 14, 2023

Price Impact Protection has arrived

Dec 14, 2022

0x Limit Orders Go Multi-Chain

Dec 23, 2021

0x Labs raises $70M Series B led by Greylock to continue expanding Web3’s core exchange infrastructure

Apr 26, 2022

0x launches Tx Relay API in beta, with Robinhood Wallet as first partner

Mar 1, 2023

0x Labs raises $15M Series A to bring decentralized exchange markets to a global audience

Feb 5, 2021

App spotlight: Zerion

Jun 22, 2022

App spotlight: Matcha

Nov 24, 2021

App spotlight: DexGuru

Jun 17, 2021

App spotlight: DEXTools

Sep 23, 2021

App spotlight: DODO

Aug 10, 2021

App spotlight: DappRadar

Dec 16, 2021

App spotlight: DeFi Saver

Jul 20, 2021

0x + Brave partner to make crypto and DeFi more accessible to everyone

Jul 7, 2021

0x Swap API now supports 0x Protocol v4

Mar 1, 2021

0x Swap API is now available on Fantom

Oct 26, 2021

0x Swap API is now live on Optimism

Jan 11, 2022