Choose Your Execution Mode
Select the mode that matches your application architecture:- EOA
- EIP-7702
- Smart Account
When to Use: External wallets (MetaMask, WalletConnect)Key Benefit: One-click flow without smart account depositsPerfect for applications where users already have their assets in external wallets and want a simple transaction flow.
Integration Flexibility
The Supertransaction API only requires payload signing, making it compatible with:- Frontend applications - Direct wallet integration
- Backend services - Programmatic execution
- Mobile apps - Native or React Native
- Any platform that can make API calls and sign messages
Complete Flow: Cross-Chain Swap
Step 1: Create Quote with ComposeFlows
Use the/v1/quote endpoint with embedded composeFlows to create the swap:
- EOA Mode
- EIP-7702 Mode
- Smart Account Mode
Step 2: Sign Payloads
Sign the required payloads based on your quote type:Step 3: Execute Transaction
Submit the signed quote for execution:Expected Results
After execution completes, you’ll see: EOA Mode:- 10 USDC deducted from Arbitrum (plus ~$0.1 for fees, depending on gas price)
- ~10 USDT received on Optimism
- Same balance changes as EOA
- EOA is now delegated (persistent for future transactions)
- Nexus balance on Arbitrum: 10 USDC deducted (plus fees)
- Nexus balance on Optimism: ~10 USDT received
- USDT remains in Nexus until withdrawn
Decision Tree
Quick Tips
Frontend Integration: Use EOA mode for the simplest user experience with MetaMask
Backend Automation: Use EIP-7702 mode when you control the private keys
Mobile Apps: Any mode works - choose based on your wallet infrastructure