Skip to main content

What is a DeFi routing and execution layer?

A DeFi routing and execution layer turns a desired outcome into signer-ready transaction data so your app does not integrate every protocol itself. Enso is that layer.

J
Written by Javier Diaz

A DeFi routing and execution layer turns a desired outcome — a swap, a zap, a vault deposit, or a cross-chain landing — into transaction data your user can sign. Your product keeps custody, policy, and UX, instead of integrating every protocol and bridge itself. Enso is that layer for the integrating app.

Definition

Without an execution layer, a wallet or app has to build and maintain a separate integration for each venue: the swap path, the deposit call, the approval, and any bridge. A routing and execution layer maps those operations to a shared set of actions and returns a signer-ready transaction for the path it selects or the sequence you specify.

How it works

  1. You describe the source asset, the destination asset or position, and any constraints such as slippage.

  2. The layer finds a path (routing) or composes the actions you listed (bundling).

  3. It simulates the transaction and returns the data to sign, plus a quote (expected output, gas, and related fields).

  4. Your app submits that transaction as-is, then refreshes balances. Cross-chain delivery is tracked as a later stage.

How Enso does this

Enso exposes this through one API. Use the Route API when Enso should find the path into one destination. Use the Bundle API when your product must specify the action order. Create a key in the Developer Portal, then follow Get Started.

FAQ

Is a routing layer the same as a DEX aggregator?

No. A DEX aggregator focuses on finding swap liquidity. An execution layer can also enter, exit, and compose protocol actions, including after a bridge.

Do I still control the user experience?

Yes. Enso returns transaction data. Your product keeps the interface, signer, and custody stack.

Related articles

  • What is Enso?

  • What is intent-based execution in DeFi?

  • How do I avoid integrating every DeFi protocol separately?

  • Alternatives to building my own swap router

  • Bridge aggregator vs routing API: what’s the difference?

Sources

Did this answer your question?