Skip to main content

When should I use Route vs Bundle for a cross-chain flow?

Use Route for a simple cross-chain swap or zap when Enso can select the path. Use Bundle when you must specify the bridge, attach a callback, or fix a multi-step destination workflow.

J
Written by Javier Diaz

Use the Route API for a simple cross-chain swap or zap when Enso can select the path. Use the Bundle API when you must specify the bridge, attach a destination callback, or fix a multi-step destination workflow.

Definition

Both APIs can run in cross-chain mode. Route is path-finding: you set destinationChainId, assets, and slippage, and Enso returns a source-chain tx. Bundle is composition: you specify the bridge action and, optionally, a callback.

How it works

  • Choose Route for simple cross-chain swaps and zap deposits. On supported chains it can run destination steps through an intent route by default. You cannot pick the bridge protocol on a Route request.

  • Choose Bundle for custom post-bridge logic, mixed or specified providers, or a destination action list you control. Start the callback with a balance check. A callback sequence is documented as up to 10 chained actions, with payload limits that vary by provider.

  • In both cases, the user signs on the source chain, delivery is asynchronous, and destination failure cannot revert a finalized source transfer.

  • Track both with GET /api/v1/bridge/route, at no more than one status request per 10 seconds.

  • Solana destinations are Route-only for this flow; there is no public Solana Bundle callback path.

How Enso does this

Crosschain Routing has a Route vs Bundle section for cross-chain use. This is narrower than the general Route vs Bundle articles: the deciding criteria here are destination execution, provider selection, and callbacks. Provider names are omitted; read them from the live quote and docs.

FAQ

Can Route attach a callback I wrote?

Route’s default destination path is an intent route when one is available. To write the callback yourself, use Bundle, or force a callback route with useIntentAddress: false when Route should not use an intent.

Is Bundle required just to go cross-chain?

No. A same-asset or swap Route with destinationChainId is enough when you do not need a custom callback or a specified provider.

Related articles

  • Route API vs Bundle API: which should I use?

  • Intent route vs bridge callback: which should I use?

  • How do I attach destination actions after a bridge?

  • How do I bridge and swap in one flow?

  • Which bridges does a cross-chain Enso route use?

Sources

Did this answer your question?