Ngọc Thạch
Ngọc Thạch

Reputation: 27

How to get coin address balance from bitcoind server?

Im running bitcoind on my local ubuntu box.

I see that "bitcoind getbalance [account]" will get me the total balance of a user account. And thats good and that works fine.

How do I get the balance of a individual users wallet (assuming they have more than 1 wallet associated with their account). For example, I have Wallet 1 with 10 coins and Wallet 2 with 20 coins for a total balance of 30 coins. How do I check the balance of the individual wallet (wallet 1 or wallet 2)?

I dont see any commands to view an individual addresses balance.

Upvotes: -1

Views: 1652

Answers (1)

Văn Tuấn Phạm
Văn Tuấn Phạm

Reputation: 659

You may also take a look at those:

  • getreceivedbyaddress <*coinaddress> - it does display you how many *coins have been moved to this particular address. It doesn't subtract payouts, which should be handled internally.
  • getreceivedbyaccount - use this instead of above if you use accounts. Additionally, you can provide a second parameter to those being a minimal number of confirmations.

Upvotes: -1

Related Questions