Author

Topic: Bitcoind - Getbalance command (Read 159 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
February 06, 2018, 11:02:00 AM
#2
You can't do it with bitcoind/Bitcoin Core. In order to find the balance of an address, an address index is required. But maintaining an address index is expensive and not that useful since the node does not need it to operate, so one is not maintained. There is no code in Bitcoin Core to build such an address index.

It is important to note that addresses and balances do not exist on a technical level. It requires significant computation to produce balances for all addresses, and requires a lot of additional storage space to store that data.
legendary
Activity: 1568
Merit: 1031
February 06, 2018, 10:58:39 AM
#1
I searched a lot and apparently, this command is only able to retrieve the balance If you control the address. I want to know how the blockexplorer etc. do it then? I don't necessarily need the code behind it, just want to know what's the trick here?
Jump to: