Skip to main content
Returns an array of AmplifyVault objects matching the provided filter criteria. All parameters are optional — omitting all filters returns every account accessible with your API key. Use getVaultsByConfig() as the primary way to discover account names before calling transaction functions.

Import

Usage

Parameters

All parameters are optional. Results are filtered client-side from the account cache and scoped to your organization by API key.

Return Type

Each AmplifyVault object includes:

Examples

Relationship to Other Discovery Functions

getVaultsByConfig() and getVaults() share the same underlying cache. Results are automatically scoped to your organization by the API key used in initAmplifySDK().

Cache Behavior

getVaultsByConfig() uses the account cache:
  • On first call, fetches from the Amplify API and populates the cache
  • Subsequent calls within the TTL (10 minutes) return cached data
  • Expired cache is automatically refreshed on access
  • Call waitForCacheReady() at startup to ensure the cache is pre-populated

Error Handling