Skip to main content
Swap tokens without users needing ETH or native tokens for gas. Biconomy handles gas abstraction—users can pay fees in the token they’re swapping, or you can sponsor gas entirely.

How It Works

1

User Initiates Swap

User selects tokens and amount to swap
2

API Finds Best Route

Biconomy finds optimal route across DEXs and bridges
3

User Signs Once

Single signature approves the entire swap—no separate gas transaction
4

MEE Executes

Biconomy relayers execute and pay gas, deducting fee from swap or your sponsorship

Quick Example

Swap 100 USDC on Base to USDT on Optimism—completely gasless:

Two Ways to Go Gasless

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:

Next Steps

Cross-Chain Swaps

Deep dive into multi-chain swap mechanics

Full API Tutorial

Learn the complete quote → sign → execute flow