Same-chain bundles are atomic: every action succeeds or reverts together. A cross-chain flow is a source transaction and a later destination stage, even if you start from Route or from a Bundle bridge action. A bundle cannot replace that destination stage with same-chain atomicity.
Definition
Atomicity is the usual reason to choose a same-chain Bundle. Cross-chain delivery is asynchronous. A destination callback failure cannot undo a finalized source-chain bridge.
How to choose
Use a same-chain Bundle when the steps must happen in one transaction on one chain — for example harvest then swap, or borrow then repay.
Use a cross-chain Route (with
destinationChainId) when the user should sign on the source chain and receive tokens or a position on another chain.Use a Bundle
bridgeaction with a callback only when you must specify the destination actions yourself.After the source transaction is submitted, poll bridge status. Source confirmation is not destination delivery.
How Enso does this
The Bundle API states that same-chain actions succeed or revert together, and that cross-chain delivery is a later destination stage. See also Crosschain Routing and Are cross-chain transactions atomic?
FAQ
Can I put a full cross-chain swap inside one atomic bundle?
The source transaction can include the bridge send. Destination execution still happens later and is not undone if a callback fails.
Should I use Route or Bundle for a simple cross-chain swap?
Use Route when Enso can select the path. Use Bundle when you must attach a callback or fix the destination action list.
Related articles
Are cross-chain transactions atomic?
When should I use Route vs Bundle for a cross-chain flow?
What is a same-chain bundle?
What is destination-chain delivery?
What is a bridge callback?
