/intent
endpoint. It will:
- Unwind the users AAVE USDC position on Optimism (represented by
aUSDC
) - Bridge the received
USDC
from Optimism to Base - Supply to AAVE on Base (represented by
aUSDC
)
Choose Your Execution Mode
Select the mode that matches your application architecture: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: aUSDC Optimism → Base
Step 1: Build Intent Instructions
First, we’ll use the/intent
endpoint to create instructions for moving aUSDC from Optimism to Base:
Step 2: Generate Quote
Now generate a quote using your chosen execution mode:Step 3: Sign Payloads
Sign the required payloads based on your quote type:Step 4: Execute Transaction
Submit the signed quote for execution:Decision Tree
Next Steps
EOA Execution
Deep dive into EOA mode implementation
EIP-7702 Execution
Learn about delegation-based execution
Smart Account
Explore smart account capabilities
API Reference
Complete endpoint documentation
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