getYieldDetails
Gets full details for one Earn vault: fixed info like its contract address and curator, plus live numbers like netApy and tvlUsd. The live numbers are best-effort and may be missing (undefined) if that data is temporarily unavailable — always check for that before displaying them.
Usage
Parameters
Returns
Promise<YieldVaultDetails> - The vault’s full details.
getYieldDetails throws if vaultId doesn’t match a vault available to your environment. This looks identical whether the ID is simply wrong or points to a vault scoped to a different environment — treat any error here as “vault not found.”
Examples
React