How do I get a list of a given ERC20 token holders?
I use QuickNode + ethers.js or web3.js and I have SC address for the ERC20 token.
Is there a short way to get a list of token holders or do I have to look through transactions?
I've tried Covalent's endpoint for that, but they are not reliable --> 90% of requests are 504. I need to use a provider that gives me access to multiple chains so polygonscan API doesn't work in my case.
There is no straightforward way to get a list of token holders from the network. However, there are few workarounds: