2

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.

2 Answers 2

4

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

2
  • listunspent working only with addresses in your walett Commented Aug 18, 2017 at 8:54
  • 1
    @Denis Yes, Bitcoin Core does not track the balance of every address. Only of the combined balance of your entire wallet. Commented Sep 17, 2017 at 5:53
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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