Skip to main content

What is the difference between routing and bundling?

Routing lets the execution layer choose the path into one destination. Bundling lets the product specify the exact action sequence.

J
Written by Javier Diaz

Routing lets the execution layer choose the path into one destination. Bundling lets the product specify the exact action sequence. Enso exposes both: the Route API for routing, and the Bundle API for bundling.

Definition

A route starts from an outcome — tokenIn to tokenOut — and the router selects the hops. A bundle starts from an ordered list of Actions the product already chose. Both can return one same-chain, signer-ready transaction. They answer different questions: “find a path” versus “run this list.”

How it works

  • Use routing for a swap, a zap into one position, a withdraw or redeem of one position, a migration, or a simple cross-chain path into one destination.

  • Use bundling for harvest, borrow, repay, leverage, claim, checks, dynamic outputs, or a custom post-bridge sequence.

  • You can still include a route step inside a bundle (enso:route). That is a Bundle action, not the standalone Route API.

Same-chain steps in one transaction are atomic. Cross-chain delivery is a later stage.

How Enso does this

See the Route vs Bundle table in Get Started. Route is POST https://api.enso.build/api/v1/shortcuts/route. Bundle is POST /api/v1/shortcuts/bundle. Start with Route when the product can express the outcome as one destination.

FAQ

Can I do a swap with Bundle?

Yes, but Route is the standard path for a swap or zap into one destination. Use Bundle when the surrounding sequence must be explicit.

Is bundling the same as a multi-transaction workflow?

No. A same-chain bundle is one transaction. Approvals may still run first as separate transactions.

Related articles

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

  • What is the Enso Route API?

  • What is the Enso Bundle API?

  • When should I use the Bundle API instead of Route?

  • What is a Shortcut in DeFi?

Sources

Did this answer your question?