getVaultsByConfig() and getSupportedAssets().
GraphQL API (Recommended)
The GraphQL API returns all contract addresses needed for direct integration in a single request. This is the same API the Amplify SDK uses internally.Endpoint
Headers
Query
Variables (all optional)
Example Request
Response
Response Types
Multiple configs can reference the same account (one per deposit token).
Deduplicate by
vault.id — each account has a single set of contract addresses
and a supportedAssets array listing all tokens.Contract Address Mapping
The GraphQL field
communityCodeDepositorModuleId is a legacy name. The contract it points to is the DistributorCodeDepositor. Use this address wherever the documentation refers to the distributorCodeDepositorAddress.Available Yield Types
REST API (Simpler Alternative)
If you only need to list account–asset pairs without full contract addresses, you can use the REST endpoint.Endpoint
Query Parameters
Example Request
Response
Response Types
Withdraw-Eligible Assets
Filter bywithdrawable: true in either API:
- GraphQL: Filter
vault.supportedAssetswherewithdrawable == true - REST:
GET /v2/amplify/vaultAssets?filter=withdrawable%3Dtrue&pageSize=100