Take the token the user already holds and route it into the chosen yield destination in one request, then refresh balances. Enso’s Route API is the standard path for that zap-style deposit; your product still chooses which destinations to show.
Definition
An “any token in” yield deposit is a zap into a yield position. The user does not have to acquire the exact vault or market asset first. The execution layer finds a path from their current asset into the destination position.
How it works
Build a catalog of yield destinations from token and protocol data, and filter it to what your product is willing to offer.
Read the user’s balances to show what they can deposit.
Request a route from the selected source token into the destination position, with slippage protection.
Show the quote, collect any required approval, and submit the returned transaction as-is.
Refresh balances and destination metadata after confirmation.
If the user is on a different chain from the destination, add a destination chain to the request and track delivery as a separate stage. If you need a fixed action sequence, use a bundle instead of a single route.
How Enso does this
Create a key in the Developer Portal. Use GET https://api.enso.build/api/v1/tokens (and balances) to populate the catalog and wallet view, then POST https://api.enso.build/api/v1/shortcuts/route with the user’s tokenIn and the destination position as tokenOut. Optional partner fees are configured in the Developer Portal, not as ad-hoc request parameters. See Enso Earn.
FAQ
Does Enso decide which vaults my users can see?
No. Enso provides destination data and execution. Your product owns the catalog, policy, and UX.
Is this the same as a one-click zap?
Yes in mechanism: one Route into a position token. This article is the yield-deposit version of that flow.
Related articles
How do I add a one-click zap into a vault?
What is Enso?
What is a DeFi routing and execution layer?
How do I add cross-chain swaps to my app?
How do I avoid integrating every DeFi protocol separately?
