Welcome to 0x’s Gasless API!
Gasless API leverages the 0x relayer network to enable developers to build gasless approvals & swaps into their App & workflows.
“Gasless swaps have helped us create a simpler trading experience, where users can focus more on trading and less on network fees. Network fees have been a top pain point for the past few years, and giving users more flexibility around network fees is a huge UX unlock”. - Claudia Haddad, Coinbase Wallet Product Manager.
A major source of friction in web3 is the need for users to hold and maintain balances for each chain’s native token in order to pay for transactions. Before today, users had to overcome this hurdle by preloading wallets, moving balances across apps, and sending tokens between addresses to complete transactions.
This is not only a significant barrier to more widespread adoption, as well as a major source of friction for existing DeFi users when gas spikes, exploring new chains and ecosystems, or trying to make a mobile trade on the go.
The Gasless API allows developers to create the smoothest trading experience in DeFi by abstracting away the complexities related to approvals, allowances, and swaps for their users.
Build more intuitive user interfaces and user flows in your applications, improve your conversion funnel drop-offs due to insufficient gas, and set yourself up to easily onboard the next wave of users into web3.


TIP
Want to see a production-level implementation? 👉 Try out the composed Gasless API + Swap API flow live in Matcha Auto at https://matcha.xyz/
Want to see a demo app? 👉 Check out Gasless API Demo App
Run this curl request to see a live quote response for selling 100 USDC to buy WETH:
You will receive a response that looks like this:
Gasless API supports multiple blockchain networks. Refer to the Supported Chains page for the full list of currently supported networks and chain IDs.
Gasless API Explained + Code + Next.js Demo App
Top 10 Gasless API Commonly Asked Questions