Author

Topic: How does a transfer work ? (Read 1203 times)

sr. member
Activity: 252
Merit: 251
August 18, 2011, 05:29:55 PM
#9
Then it transfers them as a whole 25 BTC to an address you specify (owned by a wallet).
Maybe I don't understand what you meant but why talking about one wallet?
The address can be in 100000, 1 or even 0 wallet

Gavin has written a simple explanation.

Quote from: Gavin Andresen
There is no ledger, there are just transactions with inputs and outputs.  
Your bitcoin balance is the sum of all the outputs to addresses that you own

A wallet is just a collection of your addresses.
The addresses themself do not 'contain' anything, you only have a balance which is the total of all inputs you have received into addresses you own
(which someone else has output from their balance)
legendary
Activity: 873
Merit: 1000
August 18, 2011, 03:35:47 PM
#8
fastest and easiest way to understand it?  use the client to receive and then send a transaction (different amounts) and see the results in the blockchain: http://www.blockexplorer.com
legendary
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
August 18, 2011, 09:54:22 AM
#7
Then it transfers them as a whole 25 BTC to an address you specify (owned by a wallet).
Maybe I don't understand what you meant but why talking about one wallet?
The address can be in 100000, 1 or even 0 wallet
legendary
Activity: 1092
Merit: 1001
August 18, 2011, 09:43:00 AM
#6
There is no ledger, there are just transactions with inputs and outputs.  Your bitcoin balance is the sum of all the outputs to addresses that you own that haven't yet been used as input to another transaction.

I think a comma is helpful to disambiguate that last sentence. (though It's still potentially confusing)
"Your bitcoin balance is the sum of all the outputs to addresses that you own, that haven't yet been used as input to another transaction."


I wouldn't know how to phrase it any better.. but for someone trying to get to grips with the concepts it could read as either:

Your bitcoin balance is the sum of all the outputs to:  "addresses that you own that haven't yet been used as input to another transaction"   (wrong interp)
vs
Your bitcoin balance is the sum of all the outputs (to addresses that you own) that haven't yet been used as input to another transaction  (correct interp)

full member
Activity: 126
Merit: 100
August 18, 2011, 09:14:21 AM
#5
Thank you. Question fully answered. Was not expecting an answer from you Gavin or Jack of Diamonds. And thanks BookLover.

This one line helps me to understand how Bitcoins work.
Quote
There is no ledger, there are just transactions with inputs and outputs.  Your bitcoin balance is the sum of all the outputs to addresses that you own that haven't yet been used as input to another transaction.
legendary
Activity: 1652
Merit: 2301
Chief Scientist
August 18, 2011, 09:09:22 AM
#4
Transactions have multiple inputs and outputs.

If you have 0.5BTC inputs, then 50 of them will be bundled together and a transaction with 50 inputs and one output will be created.

... but that's not what will actually happen. A 50-input-transaction will be over the "small enough to be free" transaction size limit, so 51 will be bundled together and a transaction with 51 inputs and two outputs (one to the destination, one back to you for any change leftover after paying the transaction fee) will be created.

There is no ledger, there are just transactions with inputs and outputs.  Your bitcoin balance is the sum of all the outputs to addresses that you own that haven't yet been used as input to another transaction.
hero member
Activity: 533
Merit: 500
^Bitcoin Library of Congress.
August 18, 2011, 08:50:22 AM
#3
I'm fairly sure this is incorrect, your addresses are not linked together in an "account" in the eyes of the network.  It is true the addresses don't actually contain the coins but that's getting more technical than necessary.

I'm not positive, but I believe you would send the coins as a 25 coin clump made up from the coins in 50 of the addresses.

Hope this answers your question,
BookLover
sr. member
Activity: 252
Merit: 251
August 18, 2011, 08:37:17 AM
#2
Sending fresh funds worth 25 BTC that you recieved by 50 different 0.5btc transactions will be slower than sending 25 BTC you recieved as a lump sum 30 days ago, unless you use a fee.

Quote
I know that their client will show 25BTC but under the hood how does it work.

The network (i.e. miners) verify you have a right to spend the coins (legitimate sources) & that they have not been spent before.
Then it transfers them as a whole 25 BTC to an address you specify (owned by a wallet).
full member
Activity: 126
Merit: 100
August 18, 2011, 08:18:27 AM
#1
Ok, I know I could read through the source code and bang my head against the wall for a bit. But I though that I would ask here, because someone already knows the answer to this simple question.

Let's say that my bitcoin client has 100 bitcoins addresses and each of them received 0.5 BTC (50BTC in total, ignoring transfer fees)

Now If I send 25 BTC from my bitcoin client to someone else's address, do they receive 25 BTC or 50 x 0.5 BTC I know that their client will show 25BTC but under the hood how does it work.
Are my 50 x 0.5 BTC marked as negative on the double entry ledger and replaced with 1 x 25 BTC
Or is it something else ?

Thanks for reading the post, probably a dumb question, but it is puzzling me.
Jump to: