<p>It is possible to an account balance to be negative.</p>

<p>Accounts do not correspond to on-chain transactions 1:1. They are a separate layer within Bitcoin Core. Non-obvious functionality like allowing accounts to go into negative is why they entire account system has been deprecated and will soon be removed.</p>

<p>You should either track separate accounts at an application layer, or use the new multiple wallet system in Bitcoin Core 0.17.0 to create a separate wallet for each account.</p>

CC BY-SA 4.0
2018-10-16T21:52:01.430Z
2018-10-16T21:52:01.430Z
Raghav Sood
<p>I am running: bitcoin-cli getbalance username 1</p>

<p>It is returning -37.01</p>

<p>How is it possible for an account to be negative? Is this a bug or do I need to add stricter security when performing a send to prevent accounts from going negative?</p>

<p>I am running this in daemon mode on debian.</p>

<bitcoin-cli>
Bitcoin-cli getbalance returning negative value
mocode10
# Bitcoin-cli getbalance returning negative value

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

I am running: bitcoin-cli getbalance username 1

It is returning -37.01

How is it possible for an account to be negative? Is this a bug or do I need to add stricter security when performing a send to prevent accounts from going negative?

I am running this in daemon mode on debian.

**Tags:** bitcoin-cli


---

## 1 answers

### Answer by username_1 on 2018-10-16. Score: 1

It is possible to an account balance to be negative.

Accounts do not correspond to on-chain transactions 1:1. They are a separate layer within Bitcoin Core. Non-obvious functionality like allowing accounts to go into negative is why they entire account system has been deprecated and will soon be removed.

You should either track separate accounts at an application layer, or use the new multiple wallet system in Bitcoin Core 0.17.0 to create a separate wallet for each account.


---

