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.
ExampleI 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.infoInputs: 2.23112154 BTC
1BHZhpjnCxUj7YZ5p7vZx7tYgYZ2Bvyb8V (0.378 BTC)
161Y2giMmSNhHQAXEqCiVr8np3baJSSTkt (1.68874132 BTC)
18aypyA5EtqMPYqkv1gk7XVHbqJtgk6Q6o (0.16438022 BTC)
Outputs: 2.23062154 BTC (fee: 0.0005 BTC)
1NmzZpXDVASPXBRfh2kXNCWwFEtacLmAGU - 0.10062154 BTC
18r2UXXWHHUXfjAdAfvpinNfBhLSpXyDq7 - 2.13 BTC
See also:
Change article on bitcoin.it