Skip to main content
The Supertransaction API lets you build complex blockchain operations—swaps, bridges, DeFi deposits—without writing smart contracts. Users sign once, and Biconomy handles everything.

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 contracts
2

Get a Quote

POST to /v1/quote → receive execution costs, routing info, and a payload to sign
3

Sign the Payload

User signs once (the format depends on wallet type)
4

Execute

POST to /v1/execute → Biconomy handles all the blockchain complexity
// The complete flow in 20 lines
const quote = await fetch('https://api.biconomy.io/v1/quote', {
  method: 'POST',
  body: JSON.stringify({
    mode: 'smart-account',
    ownerAddress: userAddress,
    composeFlows: [{
      type: '/instructions/intent-simple',
      data: { srcChainId: 8453, dstChainId: 10, srcToken: USDC, dstToken: USDT, amount: '100000000', slippage: 0.01 }
    }]
  })
}).then(r => r.json());

const signature = await wallet.signMessage(quote.payloadToSign[0]);

const result = await fetch('https://api.biconomy.io/v1/execute', {
  method: 'POST',
  body: JSON.stringify({ ...quote, payloadToSign: [{ ...quote.payloadToSign[0], signature }] })
}).then(r => r.json());

What 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

The composeFlows array supports four instruction types:
TypeUse CaseExample
/instructions/intent-simpleToken swaps (same or cross-chain)Swap USDC → ETH
/instructions/intentComplex multi-token operationsRebalance portfolio
/instructions/buildCustom contract callsDeposit into Aave
/instructions/build-rawPre-encoded calldataAdvanced integrations
Start with intent-simple for swaps—it handles routing, bridging, and DEX selection automatically.

Account Modes

Choose the mode that matches your users’ wallets:
For: Biconomy Nexus accounts, ERC-4337 smart accounts
{ mode: 'smart-account', ownerAddress: '0x...' }
  • Native gas abstraction
  • Single signature always
  • Funds stay in smart account

Gas Options

Sponsored (Gasless)

Omit feeToken—gas is paid from your sponsorship account
{ mode: 'smart-account', ownerAddress: '0x...' }
// No feeToken = sponsored

User Pays in Token

Set feeToken to deduct from user’s balance
{ 
  feeToken: { address: USDC, chainId: 8453 }
}

API Reference

EndpointPurpose
POST /v1/quoteGet execution quote and signable payload
POST /v1/executeSubmit signed quote for execution
GET /v1/explorer/{hash}Track execution status
Base URL: https://api.biconomy.io

Tutorials