I've set up a private network and generated around 100 addresses. Exactly 80 of those addresses have a balance of 10 or more ETH, while the rest of the addresses have balances of 0. I've also preallocated 10,000 ETH to a separate address (let's call it base) in genesis.json.
I would like to send 5 ETH from base address to every address that has a balance >= 10 ETH. I've seen examples for ERC20 tokens around but couldn't find anything using the actual currency of a chain instead of a token.
Also, is it possible to check balances and send the desired amount to all the addresses created on the network without me having to save every one addresses in a separate file and load them up when sending?
Any help would be greatly appreciated. Thank you!