Skip to main content

Intent-based execution vs specifying every transaction step

Intent-based execution states the desired outcome and lets the execution layer find the path. Specifying every step means the product sends the exact action sequence.

J
Written by Javier Diaz

Intent-based execution states the desired outcome and lets the execution layer find the path. Specifying every transaction step means the product sends the exact action sequence. Enso supports both: the Route API for the intent-shaped path, and the Bundle API for the explicit list.

Definition

An intent is a requested result, such as “arrive in this destination token or position.” A hand-built path is a list of protocol operations in order. Neither pattern moves funds by itself; both still return transaction data for your signer to submit.

How they compare

  • Who chooses the hops? Intent-based routing does. An explicit sequence uses the list you provide.

  • When the intent-shaped path is enough: swaps, zaps, simple withdrawals, migrations, and cross-chain routes into one destination.

  • When you specify the steps: harvest, borrow, repay, checks, dynamic outputs, or a custom post-bridge callback.

  • Failure modes: a Route failure often means no path could be built. A Bundle failure often means an action, index, or strategy in your list is wrong.

How Enso does this

Docs describe Enso as turning product intent into signer-ready transaction data. Use POST https://api.enso.build/api/v1/shortcuts/route when the product can state one destination. Use POST /api/v1/shortcuts/bundle when it must control the Actions. See Get Started and the developer documentation home.

FAQ

Is Bundle “not intent-based”?

Bundle is the specify-the-steps pattern. You can still include an enso:route action inside a bundle for a segment Enso should pathfind.

Does the user sign something different in each model?

In both cases Enso returns a signer-ready tx. The difference is how that transaction was constructed.

Related articles

  • What is a DeFi intent?

  • What is intent-based execution in DeFi?

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

  • What is the difference between routing and bundling?

  • What is Enso?

Sources

Did this answer your question?