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