Import
Usage
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
vaultAddress | Address | Yes | Vault contract address |
chainId | number | No | Blockchain network ID (optional filter) |
Return Type
Example: APY Display Component
Error Handling
| Error Message Pattern | Description | Resolution |
|---|---|---|
"SDK not initialized" | SDK not initialized | Call initAmplifySDK() first |
"No APY data found" | No data for vault | Verify vault address |
"Failed to fetch vault APY" | Network or API error | Check connection and retry |
Related
- getVaultTVL - Fetch vault TVL
- fetchSupportedAssets - Discover available vaults