The Pattern
Every Supertransaction follows the same four steps:Build Your Flow
Define what you want to do using
composeFlows—swap tokens, bridge chains, call contractsWhat 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:
| Type | Use Case | Example |
|---|---|---|
/instructions/intent-simple | Token swaps (same or cross-chain) | Swap USDC → ETH |
/instructions/intent | Complex multi-token operations | Rebalance portfolio |
/instructions/build | Custom contract calls | Deposit into Aave |
/instructions/build-raw | Pre-encoded calldata | Advanced integrations |
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
| Endpoint | Purpose |
|---|---|
POST /v1/quote | Get execution quote and signable payload |
POST /v1/execute | Submit signed quote for execution |
GET /v1/explorer/{hash} | Track execution status |
https://api.biconomy.io