I have a set of addresses (20K +) and a set of tokens (3K+) in my database.`
I want to store their token holdings current state based on an interval lets say every 30 minutes. I got an Infura Enterprise subscription but I dont know what is the most efficient way doing this using web3.
The only way I know which results in way too many requests would be:
for token in tokens web3 contract instance for token for address in addresses token.balanceof(address)
Is there any other way to do this? Like is there a possibility I didnt notice where I could send an array of addresses to a contract instance balanceof function instead of just a single one per request?
Regards