I want to fetch the asset ID of an asset by its ERC20 contract address. One way to do this would be to hit v1/supported_assets and filter through all the contract_address fields on the client.
This is very slow given the size of the API response, so I’m wondering if there’s a more direct way to query for an asset given a specific ERC20 address?
With this you can get the AssetId, but currently we do not have a way to fetch assetids by contractAddress.
Once you have the assetId and vault accountId, you can get your address using this endpoint, it will return a paginated response of the addresses for a given vault account and asset. Get addresses (Paginated)