Bitcoin Forum
May 03, 2024, 03:36:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Negative balance on wallet  (Read 357 times)
AmirSolo (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
May 05, 2019, 08:15:43 AM
 #1

hi, sorry if i made the post in wrong topic. i've seen some bitcoin address's on blockchain.info airpone.com and  that has negative balance like -1.2 btc or -0.05
how it work's like this?


for example :
https://apirone.com/btc/address/1GqcMJn3xsJ1yboigQ4gbHopN4EMTYDrsK
1714750564
Hero Member
*
Offline Offline

Posts: 1714750564

View Profile Personal Message (Offline)

Ignore
1714750564
Reply with quote  #2

1714750564
Report to moderator
1714750564
Hero Member
*
Offline Offline

Posts: 1714750564

View Profile Personal Message (Offline)

Ignore
1714750564
Reply with quote  #2

1714750564
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714750564
Hero Member
*
Offline Offline

Posts: 1714750564

View Profile Personal Message (Offline)

Ignore
1714750564
Reply with quote  #2

1714750564
Report to moderator
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5583


Self-proclaimed Genius


View Profile
May 05, 2019, 09:08:49 AM
 #2

Probably a bug in their (apirone.com) system.
Blockchain.com/info doesn't show negative balance from that address: https://www.blockchain.com/btc/address/1GqcMJn3xsJ1yboigQ4gbHopN4EMTYDrsK

Probably, it has something to do with their node(s),
blockchain.com reads that the address was used in 331 transactions while in apirone, it has only 299.
I didn't dig-up more info but that should explain the inconsistency in the balance.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
bitmover
Legendary
*
Offline Offline

Activity: 2296
Merit: 5917


bitcoindata.science


View Profile WWW
May 05, 2019, 12:22:38 PM
Merited by OgNasty (1)
 #3

As far as I know, it's not possible to have a negative balance in your Bitcoin address.
If you search in a more reliable block explorer the balance is zero.

This idea of negative balance is a nonsense in blockchain, because you can just create a new address.

Banks can give you a negative balance, but blockchain can't.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Heisenberg_Hunter
Legendary
*
Offline Offline

Activity: 1583
Merit: 1276


Heisenberg Design Services


View Profile WWW
May 06, 2019, 10:15:18 AM
Merited by bones261 (2), RapTarX (1)
 #4

To be quite true, the bitcoins are stored in the blockchain. In order to spend those coins, you need to sign with your private keys. The wallet and block explorers are just a graphical user interface which helps you to view the balances as they get updated over the nodes.

Whenever you are trying to spend the coins, the outputs and inputs will be checked and verified by the nodes before the transactions are being added to the blockchain. If the input value is less than output value, the transaction is rejected. Hence you can never have a negative balance.

Negative balances can be created only when the inputs are less than output value and such transactions are being confirmed which isn't really possible.

Here is the code to prevent transactions that has negative balances

Code:
const CAmount value_out = tx.GetValueOut();
    if (nValueIn < value_out) {
        return state.Invalid(ValidationInvalidReason::CONSENSUS, false, REJECT_INVALID, "bad-txns-in-belowout",
            strprintf("value in (%s) < value out (%s)", FormatMoney(nValueIn), FormatMoney(value_out)));
    }
RapTarX
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 850



View Profile
May 06, 2019, 03:25:54 PM
 #5

Like as Heisenberg_Hunter said, an address can have negative balance when they send more bitcoin than they hold on the address. This transaction will never be confirmed. Similar issue can be found here- https://bitcoin.stackexchange.com/questions/53562/negative-bitcoin-balance

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!