Bitcoin Forum

Other => Beginners & Help => Topic started by: BRules on November 13, 2012, 01:46:34 AM



Title: why deepbit address sends btc to himself?
Post by: BRules on November 13, 2012, 01:46:34 AM
like: http://blockchain.info/tx/75a8373b98892ef09181bf66fd924bdc72348b3badf411635c7837f5f2b861b6

why not only send the 0.01 BTC to the other address?


Title: Re: why deepbit address sends btc to himself?
Post by: DannyHamilton on November 13, 2012, 04:16:36 AM
This is how bitcoin works.  Anytime you spend/send bitcoin you have to spend previous outputs in their entirety as inputs.  If the total of the inputs ends up being more than you want to spend, then you have to send the extra back to yourself as a new output.

If at the time of that transaction deepbit happened to have an output valued at 0.01 BTC, then they could perhaps have simply spent that one output.  Instead they spent an output that was valued at 3.25397458 BTC.  Having used that output as the input to their transaction, they created 2 new outputs sending 0.01 BTC to an address, and the remaining change back to the original address as a new output.


Title: Re: why deepbit address sends btc to himself?
Post by: BRules on November 13, 2012, 04:43:47 AM
again, thank you very much for the info