3

I'm wondering how to find the balance a wallet for a full node on a command-line only linux box. bitcoin-cli doesn't seem to help here, and I'm not sure what else to try.

2

There is a simple RPC call getbalance. So bitcoin-cli getbalance should give you the number.

4
  • When I try bitcoin-cli getbalance I get error: {"code":-32601,"message":"Method not found"} – erikvold Apr 5 '16 at 21:36
  • 1
    That means your bitcoind is compiled without wallet support. – Pieter Wuille Apr 5 '16 at 22:40
  • how about how to get balance of another public address? – Aryeh Armon Oct 28 '18 at 11:56
  • Bitcoin Core has no support for querying the balance of an address individually. You can add the addresses you care about to a wallet using importaddress or importmulti, and then query the wallet's balance after rescanning. – Pieter Wuille Oct 28 '18 at 16:46

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.