<p>The issue that you are experiencing is not really an issue. Rather it is a fundamental misunderstanding of how the accounts system works. Because it is so unintuitive and behaves in an unexpected way, the accounts system has been removed from Bitcoin Core.</p>

<p>The behavior that you see is completely expected. Accounts are not involved in the sending of Bitcoin except for the internal account values are decreased. The association of addresses to accounts is a receiving only thing. Account balances are only updated when addresses for the account receive money. Sending money "from" those addresses will not update the balance. The account balance will be decreased only if you use the <code>send*</code> RPC commands which allow you to specify an account to decrement the amounts from.</p>

<p>It is also important to note that "sending from" an account does not mean that coins associated with the addresses in that account will be the only ones chosen for the transaction. Any coins can be chosen, and then the account's balance will be decremented. Because of this, it is also possible to have accounts with a negative balance.</p>

<p>In general, you should stop using the accounts system. Not only is it being removed, but it also has strange and unexpected behavior.</p>

CC BY-SA 4.0
2018-10-08T17:53:43.487Z
Thank you so much this, I couldn't find this information anywhere! Looking at the new API it doesn't appear that its possible to get a balance of a particular label or a particular address? Is it now only possible to get the balance of an entire wallet? If so is it possible to have multiple wallets with a single 0.17 node?
noone392
CC BY-SA 4.0
2018-10-08T22:21:59.700Z
Yes, you cannot get the balance of a label that doesn't really make sense because a label is not an account. Bitcoin Core has supported having multiple wallet loaded for a few versions now. With 0.17, you can dynamically create and load them. You will want to use createwallet and loadwallet.
Ava Chow
CC BY-SA 4.0
2018-10-07T01:58:23.247Z
2018-10-07T01:58:23.247Z
Ava Chow
<blockquote>
  <p>(bitcoin-cli getbalance XXXX 1) ... getbalance of my correct address never goes down</p>
</blockquote>

<p>XXXX there is an <em>account</em> name for <a href="https://bitcoin.org/en/developer-reference#getbalance" rel="nofollow noreferrer">getbalance</a>.</p>

<p>As JBaczuk commented</p>

<blockquote>
  <p>The accounts feature is very confusing and has been removed in the latest <a href="https://bitcoin.org/en/release/v0.17.0#label-and-account-apis-for-wallet" rel="nofollow noreferrer">version v0.17.0</a>.</p>
</blockquote>

<p>(strictly speaking it is deprecated in 0.17 and expected to be fully removed in 0.18.)</p>

CC BY-SA 4.0
2018-10-05T10:30:41.133Z
2018-10-05T10:30:41.133Z
RedGrittyBrick
<p>So I have ubuntu 16x running bitcoin core. Its a full node and fully synched. Run with bitcoind --daemon as suggested. Using a particular address from my wallet, whenever I send money to the address getblanace works fine (bitcoin-cli getbalance XXXX 1). Whenever I send money from the address, (on a completely different system using a web based wallet), it shows that the bitcoins arrive when expected, but my getbalance of my correct address never goes down. I even tried sending all the money out in 10 different transactions and saw it was failing when the the account should have been zero'd out, all the while always reporting that I had my high original balance. </p>

<p>I feel like I am missing something basic but I can't seem to figure it out. Thank you in advance</p>

CC BY-SA 4.0
2018-10-04T16:48:42.413Z
Have the transactions confirmed?
JBaczuk
CC BY-SA 4.0
2018-10-04T17:11:08.447Z
Yea all the transaction have a dozen or so confirmations at this point, and they show up in the other wallet and I can spend them in the new wallet.
noone392
CC BY-SA 4.0
2018-10-04T17:22:21.577Z
that also shows the incorrect balance.
noone392
CC BY-SA 4.0
2018-10-04T17:23:10.977Z
Does bitcoin core have all the latest blocks? `$ bitcoin-cli getblockcount`
JBaczuk
CC BY-SA 4.0
2018-10-04T17:23:30.987Z
wait there is a mysterious entry at the top of list accounts that says "" -0.00145718 which is approximately what i have sent from that address!?
noone392
CC BY-SA 4.0
2018-10-04T17:24:19.000Z
block count is 544380 which is the same number in getblockchaininfo
noone392
CC BY-SA 4.0
2018-10-04T17:24:50.120Z
The accounts feature is very confusing and has been removed in the latest version `v0.17.0`. https://bitcoin.org/en/release/v0.17.0#label-and-account-apis-for-wallet
JBaczuk
CC BY-SA 4.0
2018-10-04T17:26:22.610Z
aww shoot. Thank you for that. I guess its back to the drawing board for my development.
noone392
<bitcoin-core><bitcoind><balance>
Bitcoin core incorrect balance?
noone392
# Bitcoin core incorrect balance?

(Asked by: username_0 on 2018-10-04)

So I have ubuntu 16x running bitcoin core. Its a full node and fully synched. Run with bitcoind --daemon as suggested. Using a particular address from my wallet, whenever I send money to the address getblanace works fine (bitcoin-cli getbalance XXXX 1). Whenever I send money from the address, (on a completely different system using a web based wallet), it shows that the bitcoins arrive when expected, but my getbalance of my correct address never goes down. I even tried sending all the money out in 10 different transactions and saw it was failing when the the account should have been zero'd out, all the while always reporting that I had my high original balance.

I feel like I am missing something basic but I can't seem to figure it out. Thank you in advance

**Tags:** bitcoin-core, bitcoind, balance

> **Comments:**
> **username_1**: Have the transactions confirmed?  
> **username_0**: Yea all the transaction have a dozen or so confirmations at this point, and they show up in the other wallet and I can spend them in the new wallet.  
> **username_0**: that also shows the incorrect balance.  
> **username_1**: Does bitcoin core have all the latest blocks? `$ bitcoin-cli getblockcount`  
> **username_0**: wait there is a mysterious entry at the top of list accounts that says "" -0.00145718 which is approximately what i have sent from that address!?  
> **username_0**: block count is 544380 which is the same number in getblockchaininfo  
> **username_1**: The accounts feature is very confusing and has been removed in the latest version `v0.17.0`. https://bitcoin.org/en/release/v0.17.0#label-and-account-apis-for-wallet  
> **username_0**: aww shoot. Thank you for that. I guess its back to the drawing board for my development.  

---

## 2 answers

### Answer by username_2 on 2018-10-07. Score: 1 | Accepted answer

The issue that you are experiencing is not really an issue. Rather it is a fundamental misunderstanding of how the accounts system works. Because it is so unintuitive and behaves in an unexpected way, the accounts system has been removed from Bitcoin Core.

The behavior that you see is completely expected. Accounts are not involved in the sending of Bitcoin except for the internal account values are decreased. The association of addresses to accounts is a receiving only thing. Account balances are only updated when addresses for the account receive money. Sending money "from" those addresses will not update the balance. The account balance will be decreased only if you use the `send*` RPC commands which allow you to specify an account to decrement the amounts from.

It is also important to note that "sending from" an account does not mean that coins associated with the addresses in that account will be the only ones chosen for the transaction. Any coins can be chosen, and then the account's balance will be decremented. Because of this, it is also possible to have accounts with a negative balance.

In general, you should stop using the accounts system. Not only is it being removed, but it also has strange and unexpected behavior.

> **Comments:**
> **username_0**: Thank you so much this, I couldn't find this information anywhere! Looking at the new API it doesn't appear that its possible to get a balance of a particular label or a particular address? Is it now only possible to get the balance of an entire wallet? If so is it possible to have multiple wallets with a single 0.17 node?  
> **username_2**: Yes, you cannot get the balance of a label that doesn't really make sense because a label is not an account. Bitcoin Core has supported having multiple wallet loaded for a few versions now. With 0.17, you can dynamically create and load them. You will want to use createwallet and loadwallet.  

---

### Answer by username_3 on 2018-10-05. Score: 0

> (bitcoin-cli getbalance XXXX 1) ... getbalance of my correct address never goes down

XXXX there is an *account* name for [getbalance](https://bitcoin.org/en/developer-reference#getbalance).

As username_1 commented

> The accounts feature is very confusing and has been removed in the latest [version v0.17.0](https://bitcoin.org/en/release/v0.17.0#label-and-account-apis-for-wallet).

(strictly speaking it is deprecated in 0.17 and expected to be fully removed in 0.18.)


---

