0

We need to install the ETH client in order to receive balances of different addresses using GetBalance (https://web3js.readthedocs.io/en/v1.2.11/web3-eth.html#getbalance). Please tell me, do we need to download a full node or a pruned one? How long will the sync process take and what can be the difficulties?

And which client to use?

2
0

Please tell me, do we need to download a full node or a pruned one?

Both light or full node will work if you want to get balance. However, note that if using a light node, the light node will require to connect to another full node to obtain this information, so queries will be slower and will fail if your node fails to connect to a full node.

How long will the sync process take and what can be the difficulties?

This depends on your configuration and your network. We cannot answer.

And which client to use?

As you do not provide any parameter for us to work with, there is no objective possible answer to this question.

0

If you want to run a local node I would suggest 2 options.

  1. Ganache
  2. Hardhat

Ganache: you just install it and when you open it you'll get 20 addresses with 100 ETH as balance and the url to connect to it.

Hardhat: You could run a local node with the commend npx hardhat node --fork providerURl, that url can be from a free account on Alchemy

Disclaimer: I have no affiliation to any of the mentioned solutions, this is just my personal recommendation

1
  • Hardhat is it a library that completely installs a node, like goetherium, or just gives tools?
    – Optimus
    Oct 26 at 11:57

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.