The Enso Bundle API turns an ordered list of actions your product specifies into one same-chain, signer-ready transaction. Use it when you need a custom sequence, dynamic outputs, checks, or actions a single Route request does not cover.
Definition
Bundle is POST /shortcuts/bundle. The request body is the action array itself. Each action has a protocol, an action, and args. Enso simulates the list and returns one transaction. Same-chain steps in that transaction succeed or revert together.
How it works
Confirm Route cannot, or should not, express the flow — for example harvest, borrow, repay, leverage, claim, checks, or a custom post-bridge sequence.
Build the ordered action list. Later steps can consume an earlier output with
useOutputOfCallAt.Choose a routing strategy (
routerfor a typical EOA flow,delegatewhen required).Review the quote and any
preTransactions, then submittxas-is.If the bundle includes a bridge, track destination delivery separately.
How Enso does this
Call POST https://api.enso.build/api/v1/shortcuts/bundle with a Developer Portal key. Do not wrap the array in { "bundle": [...] }. See the Bundle API and the actions reference. Inside a bundle, protocol: "enso", action: "route" is the enso:route action, not the standalone Route API.
FAQ
Are bundled actions atomic across chains?
Same-chain bundle steps are atomic. A destination callback cannot revert a finalized source-chain bridge.
When should I use Route instead?
When the product can express the outcome as a path from one input into one destination, Route is the standard starting point.
Related articles
What is the Enso Route API?
When should I use the Bundle API instead of Route?
How do I bundle multiple DeFi actions into one transaction?
What is a DeFi Action?
How do I debug a failed bundle?
