How It Works
Quick Example
Swap 100 USDC on Base to USDT on Optimism—completely gasless:Two Ways to Go Gasless
- Sponsored (You Pay)
- User Pays in Token
Best for: Onboarding flows, premium users, promotional campaignsOmit the
feeToken parameter—gas is paid from your sponsorship account:Requires an API key with sponsorship enabled. Get one at dashboard.biconomy.io
Works with Any Wallet
Smart Accounts
Use
mode: 'smart-account' for Nexus or ERC-4337 accounts. Native gas abstraction.EOA Wallets
Use
mode: 'eoa' for MetaMask, Rabby, etc. Requires fundingTokens parameter.EOA Example (MetaMask, Rabby, etc.)
Understanding the Response
The quote response tells you exactly what will happen:| Field | What It Means |
|---|---|
fee.amount | How much gas costs (in fee token units) |
outputAmount | Expected tokens user will receive |
minOutputAmount | Minimum after slippage protection |
route.summary | Which DEXs/bridges will be used |