Build a catalog from token and protocol data, read the user’s balances, route into the selected destination, apply a portal-configured fee if you use one, then refresh balances after confirmation.
Definition
An Earn tab is an in-product yield surface: the user stays in your wallet or app, picks a destination, and signs a transaction that moves their existing tokens into that position. You own the interface; the execution API supplies discovery, quotes, and calldata.
How it works
Load a catalog of destinations from token and protocol metadata, including underlying assets and yield data.
Read the user’s balances so you can default
tokenInto what they already hold.When the user selects a destination, request a route, show the quote, and collect any required token approval first.
Submit the returned transaction as-is, then refresh balances and position metadata after confirmation.
Support exit and migration later with the same Route (or Bundle) pattern in the other direction.
How Enso does this
Follow the Enso Earn path: GET https://api.enso.build/api/v1/tokens for the catalog, GET /api/v1/wallet/balances for holdings, POST /api/v1/shortcuts/route for entry and exit, and GET /api/v1/wallet/approve when needed. Configure a partner fee in the Developer Portal Fees tab if you want a fee applied automatically to quotes from your API key. See Enso Earn. Public Earn docs also name specific venues; this article does not list them.
FAQ
Do I need the Bundle API to launch an Earn tab?
Not for a single path into one destination. Use Route first. Use Bundle when you must fix action order or call harvest or redeem yourself.
Does adding Earn mean I take custody of user funds?
No. The user signs in their own wallet. Enso does not take custody of those funds.
Related articles
What is Enso Earn?
What is yield-as-a-service?
How do I let users deposit into yield from any token?
How do I set a partner fee on user trades?
How do I get wallet balances and DeFi positions?
