A same-chain bundle is an ordered list of DeFi actions executed in one transaction on a single chain. Those actions succeed or revert together.
Definition
Bundling composes actions such as approve, swap, deposit, redeem, or harvest into a single transaction you submit once. When every action runs on the same chain, the bundle is atomic: if a later step fails, earlier steps in that transaction revert with it.
How it works
The app specifies the actions, their order, and how later amounts depend on earlier outputs.
The service encodes that list into one transaction and simulates it before returning signer-ready data.
The user signs once. On-chain, the actions run in order in that transaction.
Atomicity applies to that same-chain transaction. It does not extend across a bridge: a later destination-chain callback cannot undo a finalized source-chain transfer.
How Enso does this
Call POST https://api.enso.build/api/v1/shortcuts/bundle with chainId, fromAddress, and the action list, and submit the returned tx unchanged. Use useOutputOfCallAt to chain amounts. For one path into a single destination, the Route API can build the bundle for you. Cross-chain destination steps belong in a bridge callback, which is a later transaction. See the Bundle API and Core Concepts.
FAQ
Are bundled DeFi actions always atomic?
They are atomic when they execute in one same-chain transaction. A cross-chain bundle splits into source settlement and a later destination callback, and those stages are not atomic together.
When should I use a bundle instead of a route?
Use Bundle when you must fix the action order or call actions such as harvest or redeem yourself. Use Route when you only need a path from one asset or position to one destination.
Related articles
How do I bundle multiple DeFi actions into one transaction?
What is the Enso Bundle API?
Are cross-chain transactions atomic?
What is a bridge callback?
Route API vs Bundle API: which should I use?
