This page covers the concept. For the working integration — quotes, authorization modes,
execution and status handling — see the Gasless cookbook recipe.
Why it matters
- No gas tokens needed. Users can trade USDC on Arbitrum even if their ETH balance is zero.
- Trade full balances. Users can swap their entire token holdings without leaving dust for gas.
- Better UX. Removes the friction of acquiring native tokens before trading.
- Multi-chain ready. The same flow works across all supported EVM chains.
How it works
1
Authorize the token
The user permits the DZap router to move the source token — by signing an EIP-2612 permit, by a
one-time ERC-20 allowance, or by a one-time Permit2 approval.
2
Quote the trade
Quotes requested with
gasless: true route the trade normally and price the relayer’s gas into
the output.3
Sign the intent
The user signs an EIP-712 intent binding their address, the exact trade data, a nonce and a
deadline. That signature authorizes this trade and no other.
4
DZap executes and settles the fee
DZap submits the transaction and pays gas. The equivalent is deducted from the output in the
source token.
Nothing in this flow gives DZap open-ended access to funds. The intent is bound to a single
transaction, carries a deadline, and is consumed by a per-user nonce, so it cannot be replayed.
Authorization modes
Which mode you use determines whether the user needs gas now or not at all.Fees
The gasless fee is charged in the source token and deducted from what the user receives. For trades with multiple source tokens, it is split proportionally by USD value. Quotes carry an estimate; the build response carries the authoritative amount. See Fees for the exact fields and how to surface them. Because the fee has to be covered by the trade itself, gasless has a $1 minimum per pair.Requirements
- EVM chains only. Gasless runs on DZap’s v2 EVM router.
- ERC-20 source tokens only. Native tokens cannot be traded gaslessly.
- Every source token must be gasless-listed. The list is per chain and per token; destination tokens are unconstrained.
When to use gasless
Next steps
Gasless recipe
The full integration: quotes, all three authorization modes, execution and status handling.
Example app
A runnable Vite + wagmi app with a working gasless trade component.