A bundle is simulated as a whole. If the request fails, or the later on-chain transaction reverts, check the action order, token addresses, useOutputOfCallAt indexes, callback limits, and whether the delegate strategy is required. Do not submit a bundle the API did not successfully simulate.
Definition
The Bundle API turns an ordered list of actions into one same-chain, signer-ready transaction. A failure in simulation means Enso would not return executable calldata. A failure after a quote is a later execution problem (funds, allowance, stale quote, or destination-stage issues).
How it works
Confirm each token address and protocol action is valid on that chain.
Check action order. Later steps that consume an earlier output must use
useOutputOfCallAtwith the correct index.Use
delegatewhen the list includes actions such asharvest,borrow, orrepay, or when you are executing from a smart wallet.If the bundle includes a
bridgeaction, respect callback limits and start each destination callback with abalanceaction.If a quote was returned but execution failed, rebuild the quote after fixing funds or allowance. Do not edit
tx.
Documented callback limits: 50 top-level actions, 100 total actions including callbacks, 10 actions per callback, and a nesting depth of 5. Some bridges also have payload or gas limits.
How Enso does this
Call POST https://api.enso.build/api/v1/shortcuts/bundle and read the error or simulated quote. See the Bundle API, Actions reference, and FAQ. For destination failures after a source bridge, use Bridge Status.
FAQ
Why did Route work but Bundle fail?
Route chooses the path. Bundle runs the exact list you sent. A wrong index, missing balance in a callback, or a router strategy on an action that requires delegate will fail the bundle.
Are same-chain bundle steps atomic?
Yes. If you add a cross-chain bridge action, destination execution is a later stage and cannot revert a finalized source-chain bridge.
Related articles
How do I bundle multiple DeFi actions into one transaction?
What does “Could not build shortcuts for route” mean?
What happens if a cross-chain callback fails?
Why did the transaction fail on-chain after I got a quote?
What is the difference between routing and bundling?
