Why This Matters
Save gas and reduce user friction by combining actions. The problem: Traditional DeFi requires separate transactions for each action. Swap ETH to USDC? One transaction. Deposit USDC into a vault? Another transaction. Each requires a signature, gas payment, and confirmation wait. Users drop off at every step. What Compass enables: Bundle multiple actions into a single atomic transaction. Users sign once, and all actions execute together. UX example: User wants to Earn on USDC venue, but only holds ETH. Without bundle: swap tokens and deposit into a vault. With bundling: 1 transaction, 1 signature.How It Works
Example: Swap and deposit in one transaction- Call /earn/bundle with a list of actions
- API returns a single transaction that executes all actions in order
- User signs once
- All actions execute atomically.
Supported Actions
The bundle endpoint supports these action types:
Actions execute in the order provided. This matters when one action depends on another (e.g., swap first, then deposit the swapped tokens).
Missing an action? We can add it!
Combining with Other Features
With Gas Sponsorship
Setgas_sponsorship=true to get EIP-712 typed data. The owner signs off-chain, and a sender broadcasts the transaction paying gas.
Then submit the signature to /gas_sponsorship/prepare.
With Embedded Fees
Add fees to individualV2_MANAGE actions (coming soon - for now, use individual endpoints for fee collection).
Next Steps
Start building bundled transactions:Earn
Explore vaults and Aave markets you can bundle actions for.
Gas Sponsorship
Combine bundling with gas sponsorship for the best UX.
Product Accounts
Bundling requires an Earn Account: learn how to create one.