0x is used to power token swaps in wallets and dApps: its Swap API finds liquidity across automated market maker pools and professional market makers, and its contracts settle the chosen trade on-chain.
The original 0x Protocol launched in 2017 with orders arranged off-chain and settled on-chain. Today, when a swap interface says it uses 0x, it usually means a broader stack: the Swap API prepares a trade, and 0x contracts execute it. That is why a wallet can offer swaps without building its own connections to every exchange.
How Does 0x Turn a Swap Request Into a Trade?
0x turns a request for a sell token, buy token, amount and taker address into a route the taker can execute. The taker is the wallet making the trade. The Swap API checks prices from automated market maker pools, where liquidity sits in smart contracts, and RFQ market makers, who respond to a request for quote with an offer.
Matcha swap is 0x’s own decentralized trading interface for exchanging one token for another; a user’s quote comes from the same 0x Swap API that third-party apps embed. For a trade that also moves assets between networks, matcha cross-chain adds the chain-to-chain part of the picture.
Say you sell USDC for WETH. The app passes your tokens, amount and wallet address to the API. 0x compares available offers and may combine liquidity from several sources. It returns an executable quote with the expected output and transaction data. You sign the swap transaction; the on-chain contracts follow its route to exchange the tokens. A token approval, when needed, is a separate transaction before that swap.
This setup appears in wallet swap screens and trading dApps because one integration reaches many liquidity sources. It also explains why two apps using 0x can show different amounts for the same trade: an integrator can add its own swap fee to a quote. Compare the amount you will receive, including fees, before signing.
Which Contract Should You Approve?
In 0x Swap API v2, approve the allowance target named in the quote: AllowanceHolder or Permit2, depending on the flow the app uses. An allowance lets that contract spend the approved sell token on your behalf. The quote’s allowance spender tells the app which address needs approval; the transaction destination tells it where to send the swap.
With AllowanceHolder, the token approval goes to AllowanceHolder. It also receives the swap transaction and passes execution into Settler. With Permit2, the token approval goes to Permit2, while Settler is the swap transaction’s entry point. Permit2 can use more limited, time-bound permissions, but its signing flow has more steps. For an ordinary integration, 0x recommends AllowanceHolder.
Never approve Settler as a token spender. Settler executes trades but does not need a standing token allowance, and its address can change as new versions are deployed. An approval is a permission that can persist after one trade, so the distinction matters beyond the transaction you are about to sign. 0x’s contract documentation identifies the correct allowance target and transaction destination for each flow.
When your wallet asks for approval, read the spender and amount before confirming. The spender should match the app’s 0x quote for AllowanceHolder or Permit2. Then review the separate swap transaction’s expected output and fees.
Related Questions
Do you need the ZRX token to use 0x?
You do not need ZRX to make a swap through 0x. ZRX is associated with the earlier protocol’s governance and staking; it is not the token a wallet must hold to request a Swap API quote or execute a standard swap. You still need the token you are selling and, for a standard on-chain transaction, the network’s native token to pay gas.
How is 0x different from Uniswap?
Uniswap provides liquidity pools that a trader can use directly; 0x can consider Uniswap alongside other pools and RFQ market makers when building a route. Choose a direct pool interaction when you want that specific pool. Choose a 0x-powered interface when you want a quote that compares multiple sources, then verify its approval spender before you trade.