A zap lets a user start from the token they already hold and end in a vault, LP, or other position in one flow, instead of swapping and then depositing in two steps. With Enso, request a Route from the user’s token into the destination position token.
Definition
A zap combines the swap (if needed) and the deposit into a single path the user signs once on that chain. The destination is the position token — for example a vault share — not only an intermediate swap token.
How it works
Choose the destination position and confirm it is a tokenized position your catalog can show.
Request a route from the user’s current token and amount into that destination token, with slippage set in basis points.
Show the quote (expected output, minimum output, gas, and any approval).
Submit required approvals, then the returned transaction as-is.
Refresh balances and position metadata after confirmation.
Use a bundle only if you need a custom action order, or actions such as redeem or harvest that Route does not cover.
How Enso does this
Create a key in the Developer Portal. Call POST https://api.enso.build/api/v1/shortcuts/route with tokenIn (what the user holds), tokenOut (the vault or position token), amountIn, and slippage. Submit tx unchanged. For catalog metadata such as underlying assets, use GET https://api.enso.build/api/v1/tokens. See DeFi and Swap Routing.
FAQ
Is a zap the same as a swap?
No. A swap lands in a token. A zap lands in a position, and may include a swap as part of the path.
What if the position is not represented by a token?
That is a non-tokenized position. Use the nontokenized route path and, typically, the delegate strategy with a smart wallet — not a standard one-click Route zap.
Related articles
How do I let users deposit into yield from any token?
How do I bundle multiple DeFi actions into one transaction?
What is a DeFi routing and execution layer?
What is Enso?
What is intent-based execution in DeFi?
