Send an ordered list of actions to a bundling API and execute them in one same-chain transaction, so the steps succeed or revert together. Enso’s Bundle API turns that list into signer-ready transaction data.
Definition
Bundling composes protocol operations — for example a swap, a deposit, a harvest, or a check — into a single transaction. That is different from routing, where the execution layer chooses the path into one destination.
How it works
Decide the exact action order your product needs.
Request a bundle with those actions and any constraints, such as slippage checks or chained amounts.
Review the simulated quote (expected output, gas, and required approvals).
Submit approvals if needed, then submit the returned transaction as-is.
Refresh balances after confirmation.
Use a bundle when you need a fixed sequence, dynamic outputs, checks, flashloans, or actions a single route does not cover, such as harvest, borrow, or repay.
How Enso does this
Create an API key in the Developer Portal.
Call
POST https://api.enso.build/api/v1/shortcuts/bundlewith the ordered action array. See the Bundle API and Actions reference.For a typical EOA flow, use
routingStrategy: "router". Some actions, including harvest, borrow, and repay, needdelegate.Submit any required approvals, then sign
tx.to,tx.data, andtx.valueunchanged.
Actions in one same-chain bundle are atomic. If you add a cross-chain bridge action, destination execution is a later stage and cannot revert a finalized source-chain bridge.
FAQ
Should I use Route or Bundle?
Use Route when Enso should find the path into one destination. Use Bundle when your product must specify the action order or use actions Route does not cover.
How do I pass one action’s output into the next?
Use useOutputOfCallAt so a later action consumes an earlier output instead of a fixed amount.
Related articles
What is Enso?
What is intent-based execution in DeFi?
How do I add a one-click zap into a vault?
How do I add cross-chain swaps to my app?
Alternatives to building my own swap router
