Bitcoin Forum
November 04, 2024, 10:28:50 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [EXPLANATION] Unknown output - Missing money - Change  (Read 1707 times)
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1280


May Bitcoin be touched by his Noodly Appendage


View Profile
July 02, 2013, 08:20:24 AM
 #1


I tried to make something that would be worth stickying so that people stop wondering about change
Please report any typo/unclear thing/precisions to add/etc



First, you need to know that in Bitcoin you can't use only a part of an incoming transaction.

When you create a transaction with a client, there's little probability that you have inputs whose sum is equal to the sum of outputs.
In those cases, your client needs to gather more funds than necessary, then send you back the remaining money.
That remaining money is sent to a newly created 'hidden' address in your wallet.

Example
I sent 2.13 BTC to 18r2UXXWHHUXfjAdAfvpinNfBhLSpXyDq7
I did't have any incoming transactions that is exactly 2.13 BTC though.
So my client:
  • used 3 different incoming transactions (inputs) to have a balance>2.13 BTC
  • then sent the 2.13 BTC to my friend
  • finally sent me back (using a new address, 1NmzZ...) the remaining money

The transaction on blockchain.info
Inputs: 2.23112154 BTC
Quote
1BHZhpjnCxUj7YZ5p7vZx7tYgYZ2Bvyb8V (0.378 BTC)
161Y2giMmSNhHQAXEqCiVr8np3baJSSTkt (1.68874132 BTC)
18aypyA5EtqMPYqkv1gk7XVHbqJtgk6Q6o (0.16438022 BTC)

Outputs: 2.23062154 BTC (fee: 0.0005 BTC)
Quote
1NmzZpXDVASPXBRfh2kXNCWwFEtacLmAGU - 0.10062154 BTC
18r2UXXWHHUXfjAdAfvpinNfBhLSpXyDq7 - 2.13 BTC


See also:
Change article on bitcoin.it

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
July 03, 2013, 10:06:39 AM
 #2

Great article!

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
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!