'How to get all tokens from Ethereum Chain
I want to know how to get a list of all existing erc20 tokens in the ethereum blockchain. Because I want to get a list of all coins what a users holds in his wallet.
Solution 1:[1]
You'll have to write an indexer that can go through each block and filter ERC20 contract deployments. There is an example for something similar (with some handy features like writing progress to a file) in the web3 documentation.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Govind Mohan |