Skip to main content
Looks up an account configuration by asset address, yield type, and chain ID. Use this to discover the vaultAddress needed by getVaultAPY and getVaultTVL.

Import

Usage

Parameters

Return Type

Returns the matching AmplifyVault, or null if no account matches.
The key fields are 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.