SwappingBeginner

Gasless Swaps: Trade Without Holding ETH for Gas

How gasless swaps work with signed orders, which tokens and networks support them, what the fee covers, and when a regular swap is cheaper.

ChainBridge ResearchUpdated 4 min read

On this page5 sections

Key takeaways

  • A gasless swap is a signed order: the 0x relayer sends the transaction and recovers its gas cost from the trade, so you do not need ETH or another gas token.
  • Gasless does not mean free: the gas cost is in the quote, which competes with regular routes on net amount.
  • It works on Ethereum, Arbitrum, Base, Optimism, Polygon, BNB Chain and Avalanche, not on Linea.
  • You cannot sell the native gas token gaslessly, and smart contract wallets such as Safe cannot sign these orders.

What a gasless swap is

Every on-chain transaction needs gas, paid in the network's native token: ETH on Ethereum and most layer 2s, BNB on BNB Chain, AVAX on Avalanche, POL on Polygon. If you hold USDC but no ETH, a regular swap is stuck.

A gasless swap removes that requirement. Instead of sending a transaction, you sign a message that says “sell this amount of token X for at least Y of token Z before this time”. ChainBridge hands the signed order to 0x, whose relayer submits the transaction and pays the gas. The relayer's gas cost is taken out of the trade, in the token you sell, and is already counted in the amount you are quoted.

How it works on ChainBridge

  1. Request a quote

    With your wallet connected, the router asks 0x Gasless alongside 0x, KyberSwap and ParaSwap. The gasless quote is ranked on net amount like the others; if it wins, it is the route shown.

  2. Sign the approval, if needed

    The first time you sell a token, 0x may include a gasless approval for tokens that support signed permits (EIP-2612). Tokens without that feature need an ordinary on-chain approval first, which does cost gas.

  3. Sign the trade

    Your wallet shows a typed EIP-712 message with the trade details. Before you sign, ChainBridge checks that the contract named in it is the current 0x settlement contract.

  4. 0x executes

    ChainBridge submits the signatures to 0x, and the relayer sends the transaction on-chain with its own gas.

  5. Track the result

    The order is tracked across the app until it fills or its deadline passes. If it expires, nothing left your wallet.

What you are signing

EIP-712 is a standard for signing structured data. Instead of an unreadable hex string, your wallet shows named fields you can check:

Fields of a gasless swap order
FieldMeaning
Sell token and amountExactly what leaves your wallet.
Buy token and minimum amountThe least you accept. The order cannot fill below it.
DeadlineAfter this time the signature is worthless.
NonceA one-time number, so the same signature cannot be used twice.
Spender contractThe 0x settlement contract allowed to execute the order.

The signature only authorizes that exact trade. The relayer cannot change the tokens, raise the amount sold or lower the minimum received.

Where gasless is available

  • Networks: Ethereum, Arbitrum, Base, Optimism, Polygon, BNB Chain and Avalanche. Not on Linea.
  • Tokens: you sell an ERC-20 token. Selling the native gas token itself (ETH, BNB, AVAX, POL) needs a regular swap.
  • Wallets: a regular wallet (EOA) that can sign typed messages. Smart contract wallets such as Safe cannot provide this signature; ChainBridge points them to an on-chain route. See smart contract wallets.
  • Trade size: 0x may decline to quote when a trade is too small to cover the relayer's gas, or when it has no route for the pair.

Gasless vs regular swaps

Gasless swap compared with a regular swap
 GaslessRegular
Who sends the transaction0x relayerYou
Native token needed for gasNoYes
How gas is paidDeducted from the tradeFrom your native token balance
What you signOne or two typed messagesA transaction (plus a Permit2 message on 0x)
If it cannot executeOrder expires, nothing is spentRevert, gas used is still paid
Sell the native token (ETH, BNB...)NoYes
Smart contract walletsNot supportedSupported on on-chain routes
LineaNot availableAvailable

You do not have to pick one by hand. Because the gasless quote already includes its gas cost and the regular quotes are ranked after their gas, the router shows whichever leaves you more. Gasless tends to win when mainnet gas is high or you hold no native token; on layer 2, a regular route often comes out ahead. More on costs in gas fees explained.

See if gasless wins your trade

When a gasless route leaves you more after costs, it appears as the best quote. Otherwise a regular route does.

Open the swap