Introducing gasless swaps and approvals with Gasless API

Today, we’re excited to introduce gasless swaps to enable developers to improve user conversion and retention with a frictionless trading experience.

January 22, 2024

News

The smoothest trading experience in DeFi has arrived.

Today, we’re excited to introduce gasless swaps to enable developers to improve user conversion and retention with a frictionless trading experience.

Since we launched 0x Swap API in 2020, we have enabled 500+ teams to easily tap into 100+ exchanges across 9 chains, facilitating over $139 billion in volume across 65 million trades from 7 million end users.

Expanding upon 0x’s core platform offering, Gasless API takes the next step in combining decentralized trading with a frictionless experience for users.

Simplify the DEX experience

As the space heats back up, a major question still facing developers is how to onboard the next wave of users to Web3. Reducing the complexity of using crypto and improving the experience of interacting with blockchains will be key.

Still today, a major source of friction for users is gas and the complexities it adds to daily Web3 life - gas spikes, trades get stuck, token balances drop too low. All of these scenarios create obstacles for users trying to do what should be a simple thing: make a trade.

And this frustration doesn’t just impact users, insufficient gas hurts product conversion funnels. According to Coinbase Wallet, one of our beta partners, 69% of Ethereum swaps encounter a "not enough gas" error when the user starts the trade, a large impediment to conversion.

While Account Abstraction holds promise for enabling more user-friendly experiences in the future, Gasless API makes this possible today.

Gasless swaps eliminate the burden on users of maintaining sufficient balances of multiple native tokens across wallets. Simplify user flows by offering gasless swaps in your app and allow your users to start trading with any token that’s in their wallet.

When a gasless trade is made, Gasless API covers the gas fee up front and token approvals are combined into the transaction. This cost is then wrapped into the trade and paid by the user in the form of the token they’re trading, eliminating the #1 cause of incomplete trades.

The result? Utilizing Gasless API, Matcha was able to improve conversion and significantly simplify the DEX experience - reducing failed trades by 85% compared to competitors, confirming transactions on chain by an average of 1 block earlier, and protecting thousands of trades from MEV attacks. Following the release of gasless swaps, Matcha saw a 7% increase in the number of trades QoQ, while the number of daily active traders grew by 20%. Try gasless swaps with Matcha Auto.

Gasless API is also composable with Swap API for the ultimate solution in execution optionality. Coinbase Wallet leverages Gasless API to supplement its existing trading experience powered by Swap API. When a user has insufficient gas, Coinbase Wallet automatically switches to a gasless experience, allowing them to quickly complete the trade.

Together with Swap API, gasless swaps enable you to build the most flexible and seamless trading flows for users in Web3.

The benefits of Gasless API

⛽ Gasless swaps and approvals

Simplify user flows for your app and allow your users to start trading with any token that’s in their wallet. Users won’t be confronted with upfront requests for approvals and network fees, these are abstracted away into the backend. Gasless embeds gas fees into the trade and covers re-submission costs, so users don’t have to worry about failed transactions or holding native tokens in their wallet to make a trade - improving conversion and retention.

⚡Faster trade confirmation

Sometimes just a few cents in gas fees can be the difference between a transaction going through quickly and one getting stuck in the mempool awaiting confirmation. Gasless API dynamically adjusts gas fees in real time by simulating transactions and optimizing for speed, making trades 2x more likely to land in the next block.

✅ Improved trade reliability

Trading on DEXs can be unreliable. On average, 8-10% of DEX transactions fail, and during periods of network congestion that can spike to as high as 20%. Gasless API performs a simulation of transactions before submitting so it can stop potentially bad transactions before they’re even sent, saving users gas fees and headaches.

💧 Deep liquidity

Gasless API comes with access to deep liquidity from 100+ AMMs and professional market makers. On a technical level, Gasless wraps Swap API’s world-class smart order routing into a highly optimized meta-transaction to ensure the best prices. All trades are automatically routed through the deepest liquidity, including exclusive RFQ liquidity, for easy access to over 4 million tokens.

🛠️ Built for developers

Built by developers for developers. You can implement gasless swaps and get real-time quotes with just a few lines of code. 0x offers a comprehensive set of tutorials, demo apps, and API references to make building with Gasless a breeze.

Start building today

Gasless API is currently available on Ethereum, Optimism, Base, Arbitrum, and Polygon.

Join over a dozen teams, including Robinhood, Coinbase, and Matcha, already building with Gasless API. Check out our quick guide to get started today.

New to 0x? Sign-up for a free account on the 0x Dashboard.

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

Fundamentals: Smart Contract Wallets

Oct 15, 2024

Compliance made easy with 0x Address Screening

Sep 26, 2024

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

Sep 25, 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

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

0x Swap API is now available on Polygon

May 31, 2021