1

How can I get the balance of all the accounts in my Go Ethereum node? I have about 1000 accounts and it is too slow to use eth_getBalance to get balance for each address. Are there any ways to use curl and rpc?

0

Any library or other script you use will ultimately end up at eth_getBalance.

You could feasibly put together a script that can check multiple addresses in paraller via eth_getBalance, since your bottleneck is unlikely to be the actual balance call.

Alternatively, you could consider using multiple nodes via providers such as infura or etherscan to spread out your queries.

0

Ethereum address balances are public information, so you don't have to obtain them from your own node. There are publicly accessible databases storing them. One example is etherscan.io. Another is Google BigQuery. Both are able to handle thousands on requests per second.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy