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 that token into the destination position token.
Definition
A zap combines the swap (if one is 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. A swap lands in a token; a zap lands in a position.
How it works
Choose a tokenized destination position.
Request a path from the user’s current token and amount into that position token, with slippage protection.
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 a single route does not cover. If the position is not represented by a token, that is a non-tokenized flow, typically with the delegate strategy — not a standard Route zap.
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. Use GET https://api.enso.build/api/v1/tokens for catalog metadata. See DeFi and Swap Routing.
FAQ
Is a zap the same as a same-chain swap?
No. A swap’s destination is a token. A zap’s destination is a position, and the path may include a swap.
Can a zap be cross-chain?
Yes. Add a destination chain to the request and track delivery as a separate stage.
Related articles
How do I add a one-click zap into a vault?
How do I let users deposit into yield from any token?
What is a DeFi routing and execution layer?
What is the difference between routing and bundling?
How do I add a same-chain swap to my app?
