vaultAddress needed by getVaultAPY and getVaultTVL.
Import
Usage
Parameters
Return Type
Returns the matchingAmplifyVault, or null if no account matches.
vault.boringVaultAddress (pass as vaultAddress to display helpers) and name (pass as vaultName to transaction functions).
Example: Account Discovery → APY Display
Example: React Component
Error Handling
Returns
null (not an error) when no account matches the given parameters. Always check the return value before accessing account properties.
Related
- getVaultAPY - Fetch account APY (requires account address)
- getVaultTVL - Fetch account TVL (requires account address)
- getSupportedAssets - Discover supported tokens and chains