# Best way to fetch an ERC20 asset ID by its contract address

**URL:** <https://community.fireblocks.com/t/best-way-to-fetch-an-erc20-asset-id-by-its-contract-address/1257>\
**Category:** Support\
**Tags:** docs, help-center\
**Created:** [July 31, 2024, 6:08pm UTC](https://community.fireblocks.com/t/best-way-to-fetch-an-erc20-asset-id-by-its-contract-address/1257 "2024-07-31T18:08:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkraut](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jkraut](https://community.fireblocks.com/u/jkraut)\
**Post date:** [July 31, 2024, 6:08pm UTC](https://community.fireblocks.com/t/best-way-to-fetch-an-erc20-asset-id-by-its-contract-address/1257/1 "2024-07-31T18:08:34Z")

</div>

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?

Thanks!

---

<div class="post-metadata">

**Author:** ![Mohammed](https://sea1.discourse-cdn.com/flex015/user_avatar/community.fireblocks.com/mohammed/32/511_2.png) [@Mohammed](https://community.fireblocks.com/u/Mohammed)\
**Post date:** [July 31, 2024, 7:04pm UTC](https://community.fireblocks.com/t/best-way-to-fetch-an-erc20-asset-id-by-its-contract-address/1257/2 "2024-07-31T19:04:00Z")

</div>

Hi @jkraut  
Welcome to the Fireblocks developer community!

If you have added the ERC20 into your vault account use this endpoint to get all vault wallets of the vault accounts in your workspace.

A vault wallet is an asset in a vault account.

This method allows fast traversal of all account balances. [Get vault wallets (Paginated)](https://developers.fireblocks.com/reference/getassetwallets)

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)](https://developers.fireblocks.com/reference/getvaultaccountassetaddressespaginated)
