Onchain Orchestration Explained
What is onchain orchestration?
What is onchain orchestration?
Onchain orchestration is the coordination of multiple blockchain operations across one or more chains into a unified, atomic execution flow. Instead of manually executing a series of transactions, orchestration handles:
- Sequencing: Execute operations in the correct order
- Dependencies: Ensure step B uses the output of step A
- Atomicity: All-or-nothing execution (no partial failures)
- Cross-chain coordination: Bridge assets and execute on destination chains
Why do I need onchain orchestration?
Why do I need onchain orchestration?
Modern DeFi operations often require multiple steps:Example: Deposit USDC into a yield vault on another chain
- Approve USDC spending
- Swap USDC → bridgeable asset
- Bridge to destination chain
- Swap back to destination USDC
- Approve vault contract
- Deposit into vault
- ❌ Execute 6+ separate transactions
- ❌ Wait for each to confirm
- ❌ Handle failures manually
- ❌ Pay gas 6 times
- ❌ Risk price slippage between steps
- ✅ One signature, one transaction
- ✅ Atomic execution
- ✅ Automatic dependency handling
- ✅ Optimal gas efficiency
How does Biconomy's orchestration work?
How does Biconomy's orchestration work?
Biconomy’s Supertransaction system orchestrates complex workflows:The orchestration layer:
- Builds optimal execution paths
- Quotes total costs across all operations
- Executes with guaranteed ordering
- Tracks progress across chains
What is a Supertransaction?
What is a Supertransaction?
A Supertransaction is Biconomy’s abstraction for orchestrated blockchain operations. It combines:
- Instructions: Individual operations (swaps, bridges, contract calls)
- Runtime values: Dynamic values computed during execution
- Conditions: Logic to control execution flow
- Fee configuration: How gas is paid (sponsored, token, etc.)
What operations can be orchestrated?
What operations can be orchestrated?
Biconomy supports orchestrating any EVM operation:
Operations can be:
| Category | Operations |
|---|---|
| DeFi | Swaps, bridges, lending, borrowing, staking, LP provisioning |
| NFTs | Minting, transfers, marketplace interactions |
| Gaming | In-game purchases, asset transfers, crafting |
| DAOs | Voting, delegation, treasury management |
| Custom | Any smart contract interaction |
- Intent-based: “Swap 1 ETH to USDC” (solver finds best route)
- Explicit: Specific contract call with exact parameters
- Conditional: Execute only if certain conditions are met
How does cross-chain orchestration work?
How does cross-chain orchestration work?
Cross-chain orchestration coordinates operations across multiple blockchains:The orchestrator handles:
- Source chain execution: Execute initial operations
- Asset bridging: Move tokens to destination chain
- Destination execution: Complete operations on target chain
- Bridge selection and routing
- Waiting for bridge confirmation
- Gas on destination chain
- Failure recovery
What are runtime values in orchestration?
What are runtime values in orchestration?
Runtime values allow later instructions to reference outputs from earlier ones. This enables truly composable workflows:Without runtime values, you’d have to estimate outputs, leading to failed transactions or leftover tokens.
How does orchestration handle failures?
How does orchestration handle failures?
Orchestration provides different failure modes:
| Mode | Behavior | Use Case |
|---|---|---|
| Atomic | All operations succeed or all revert | Critical multi-step operations |
| Partial | Continue after failures, collect results | Non-critical batch operations |
| Conditional | Skip steps based on conditions | Complex branching logic |
What's the difference between orchestration and aggregation?
What's the difference between orchestration and aggregation?
| Aspect | Aggregation | Orchestration |
|---|---|---|
| Scope | Finding best single route | Coordinating multiple operations |
| Example | DEX aggregator finds best swap | Bridge + swap + deposit in one flow |
| Complexity | Single operation optimization | Multi-step workflow management |
| Cross-chain | Usually single chain | Native multi-chain support |
How do I get started with orchestration?
How do I get started with orchestration?
Using AbstractJS SDK:Using Supertransaction API: