Whats the best way to get all the erc20 on my wallet?
I’m currently fetching all the coingecko erc20 one by one, but I get request timeout because I make too many requests per seconds, if I add a settimeout on each await contract.methods.balanceOf(account[0]).call() it works, but it takes too much time to complete… is it possible to check all my erc20 balance in one batch without having the problem to reach the calls limit?
Then I get the following error:
(node:55383) UnhandledPromiseRejectionWarning: Error: Returned error: execution reverted
at Object.ErrorResponse (/Users//node_modules/web3-core-helpers/src/errors.js:29:16)
at /Users/nicobuechel/node_modules/web3-core-requestmanager/src/index.js:140:36
It might be something wrong with that contract, check the contract call failed transaction on etherscan, you might see a more meaningful message about the failure.