Check for a token balance

Could someone please point me in the right direction. I want to be able to check a wallet address to see if it has an ETH balance or any ERC-20 tokens in the wallet. Is this something I could do with Infura? I have read docs and see how I could get the actual balance of ETH, but I need to check both ETH balance and ERC-20 tokens. I don’t need the actual balances but just to check if any ERC-20 tokens exist in the wallet. Thanks.

1 Like

Hi @Tempest777, the below tutorials show how to retrieve the ERC-20 token balance for a particular address, one is using the web3js library while the other is using ethers.js

This topic was automatically closed after 30 days. New replies are no longer allowed.