Skip to main content

Get list of tokens balances from wallet address via web3?

I'm using to get the balance of a single token/contract address within my wallet address.

If I have an array of tokens eg

[
    "0x2a9718deff471f3bb91fa0eceab14154f150a385",
    "0xad90c05bc51672eedfee36e58b3ff1a78bbc146d",
    "0x33a3d962955a3862c8093d1273344719f03ca17c",
    "0x85102c0062aa918cb9e26d94a284aafca602df13"
]

Is there a possibility to pass that array into a single call that retrieves the balance for each? Or would we need to iterate through the list one by one?

Gangrel
  • 183
  • 1
  • 2
  • 5