How to get tokenBalance for an address?

Hi there.
Etherscan’s API offers a getTokenBalance call:

Does Infura? I have not been able to locate.
Thank you.

Hey Tucker, it can be done using the eth_call method if the token’s contract includes a function to check the balance of an address. You will need to include the encoded contract function and parameters in the “data” field.

You can use to encode the function and parameters and test it out.

1 Like