Skip to main content

listYieldVaults

Lists the Earn vaults available to the current environment, which is your Dynamic project, identified by the environment ID in Developer Settings → SDK & API Keys, and unrelated to which blockchain network a vault runs on. Public vaults are returned for every caller; private vaults (provisioned for a specific environment) are included only when they’re scoped to the caller’s environment. Each vault is enriched with live netApy and tvlUsd on a best-effort basis, and either field may be omitted if that data is temporarily unavailable.
Earn vaults run on EVM chains and on Solana. Read chainName to tell which, and pass the matching kind of wallet account to the other Earn functions. chainId is an EVM chain ID for an EVM vault and a Solana network ID for a Solana vault.

Usage

Parameters

Returns

Promise<YieldVaultSummary[]> - The vaults accessible to this environment.

Examples

List vaults and pick one by asset

React

useListYieldVaults is a query hook that fetches on mount and returns the vaults in data.
Last modified on October 20, 2026