Combine multiple actions into a single atomic transaction.
Bundle swaps and venue deposits/withdrawals into one transaction executed through the Earn Account. This saves gas compared to executing actions separately and ensures all actions succeed or fail together.
Example: Swap AUSD to USDC, then deposit USDC into a vault - all in one transaction.
Gas sponsorship: Set gas_sponsorship=true to receive EIP-712 typed data. Owner signs the typed data, then submit to /gas_sponsorship/prepare.
Request to execute multiple earn actions in a single atomic transaction.
To include a transfer from EOA in your bundle, follow these steps:
One-time setup: Approve Permit2 to spend the token by calling
POST /v2/gas_sponsorship/approve_transfer and executing the returned transaction.
Get Permit2 signature: Call POST /v2/earn/transfer with:
action: "DEPOSIT"gas_sponsorship: truespender: omit this field (defaults to Safe address for bundle use)This returns EIP-712 typed data. Sign it with the owner's wallet.
Include in bundle: Add a V2_TRANSFER_FROM_EOA action with the signature and nonce/deadline from the typed data.
The bundle will atomically: pull tokens from EOA → execute subsequent actions.
To transfer tokens from the Earn Account back to the owner's EOA, simply add a V2_TRANSFER_TO_EOA action to your bundle. No signature is required since the Safe already owns the tokens.
Use amount: "ALL" to transfer the entire token balance.
The owner's wallet address that controls the Earn Account.
Target blockchain network where the bundled actions will execute.
base, ethereum, arbitrum List of actions to bundle. Actions are executed in order.
1If true, returns EIP-712 typed data for gas sponsorship. The owner must sign this data and submit to /gas_sponsorship/prepare.
Successful Response
Number of individual transactions bundled in this execution.
Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false.
EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship=true. Owner must sign and submit to /gas_sponsorship/prepare.