Skip to main content

How do I discover tokens, vaults, and protocols from the API?

Use GET /v1/tokens, /v1/protocols, /v1/standards, and /v1/actions for the live catalog and metadata. Do not hardcode coverage from a static list.

J
Written by Javier Diaz

Use GET /v1/tokens, /v1/protocols, /v1/standards, and /v1/actions for the live catalog and metadata. Do not hardcode coverage from a static list.

Definition

Discovery is how an app learns which chains, tokens, vaults, and protocol actions it can show or route into. The catalog should come from the API so new destinations appear without a product release that hardcodes them.

How it works

  • List protocols to show names, logos, and supported chains.

  • List tokens to build a destination catalog, including pricing, composition, and yield metadata when you request it.

  • List standards and actions to see which operations a protocol supports for bundling.

  • Filter the token list by chain, protocol, token type, or underlying assets when you are building a specific Earn or zap surface.

How Enso does this

Authenticate with a Developer Portal key and call GET https://api.enso.build/api/v1/protocols, GET /api/v1/tokens, GET /api/v1/standards, and GET /api/v1/actions. The token API supports filters such as chainId, protocolSlug, type (defi or base), and underlying assets. See Get Protocol Data and Supported Networks. This article does not name individual protocols; use the live responses.

FAQ

Can I cache the catalog indefinitely?

You can cache for performance, but refresh it. Coverage changes, and a static list will drift from the API.

Which endpoint should I use for an Earn destination list?

Start with GET /api/v1/tokens (typically type=defi) and enrich it with protocol data. Confirm a destination is actually routable with a Route quote.

Related articles

  • How do I see which chains and protocols Enso supports?

  • How do I add an Earn tab to a wallet or app?

  • How do I get wallet balances and DeFi positions?

  • How do I request support for a new token or protocol?

  • What types of DeFi operations does Enso support?

Sources

Did this answer your question?