The Pattern
Every Supertransaction follows the same four steps:1
Build Your Flow
Define what you want to do using
composeFlows—swap tokens, bridge chains, call contracts2
Get a Quote
POST to
/v1/quote → receive execution costs, routing info, and a payload to sign3
Sign the Payload
User signs once (the format depends on wallet type)
4
Execute
POST to
/v1/execute → Biconomy handles all the blockchain complexityWhat You Can Build
Token Swaps
Same-chain or cross-chain swaps with automatic routing
DeFi Actions
Deposit, withdraw, stake across any protocol
Multi-Step Flows
Chain operations: swap → bridge → deposit in one tx
Custom Contracts
Call any smart contract function
Instruction Types
ThecomposeFlows array supports four instruction types:
Account Modes
Choose the mode that matches your users’ wallets:- smart-account
- eoa
- eoa-7702
For: Biconomy Nexus accounts, ERC-4337 smart accounts
- Native gas abstraction
- Single signature always
- Funds stay in smart account
Gas Options
Sponsored (Gasless)
Omit
feeToken—gas is paid from your sponsorship accountUser Pays in Token
Set
feeToken to deduct from user’s balanceAPI Reference
Base URL:
https://api.biconomy.io
Tutorials
1. Get Quote
Build your first quote request
2. Sign Payload
Handle different signature types
3. Execute
Submit and track your transaction