The Best Method for Bulk Fetching ERC20 Token Balances
Too Long; Didn't Read
Fetching token balances for one or more addresses (at a specific point in time) is a super common task, regardless of what it is that you’re building. It isn’t exactly obvious from just scrolling through the list of available JSON-RPC endpoints. The other issue is figuring out how to do this for multiple addresses across different time periods in a reasonable amount of time. I’ll go over the different methods available (and their issues), starting with the “naive approach” and ending with the best approach.