How to get balance by any address using rpc bitcoind?

1

1

How to get balance of any address using rpc bitcoind?

I mean getting by address the list of his unspent outputs in view something like this: TxHash;Value;Noutput.

D L

Posted 2017-08-17T20:33:29.497

Reputation: 478

Answers

1

There is no possible way to get balance by any address using rpc bitcoind.

You can only get balance of your's wallet adresses.

D L

Posted 2017-08-17T20:33:29.497

Reputation: 478

3

You would run the listunspent response through a loop and total up all the values from all the unspent outputs for that address.

m1xolyd1an

Posted 2017-08-17T20:33:29.497

Reputation: 3 356

listunspent working only with addresses in your walettD L 2017-08-18T08:54:32.953

1@Denis Yes, Bitcoin Core does not track the balance of every address. Only of the combined balance of your entire wallet.Pieter Wuille 2017-09-17T05:53:37.320