Author

Topic: How bitcoins are spent from different addresses, official bitcoin client (Read 1077 times)

legendary
Activity: 1072
Merit: 1178
Bitcoin-the-system does not keep balances per address, that's just an authentication layer on top. The only thing that exists are coins, each potentially assigned to an address, and each transaction explicitly referring to the coins it consumes.

So, given that you have a 2 BTC coin and a 1 BTC coin (assigned to separate addresses, or to the same, doesn't matter), and you send 2 BTC somewhere, it will just take the 2 BTC coin, as that suffices. If you'd send 2.1 BTC somewhere, it will use both coins, and send 0.9 BTC back to a change address of yourself.

The GUI does not allow you to select inputs specifically, although the 0.7 release will allow you to do so when using the RPC interface.
legendary
Activity: 1014
Merit: 1001
You can do it with electrum.

is it easy to transfer my keys from one client to another ?
Yes it is quite easy. You dont need to transfer the keys, you just import your private keys into the electrum wallet. You can have the same keys in different clients/wallets.
http://dre.redmartian.org/elecwin.htm
Of course you should read the "howto" first.
full member
Activity: 188
Merit: 100
You can do it with electrum.

is it easy to transfer my keys from one client to another ?
legendary
Activity: 1014
Merit: 1001
You can do it with electrum.
hero member
Activity: 728
Merit: 500
165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
It uses the oldest and smallest coins available.  There is no way to select specific coins in the standard client, but you can with the coderr patch:
http://coderrr.wordpress.com/2011/06/30/patching-the-bitcoin-client-to-make-it-more-anonymous/
newbie
Activity: 29
Merit: 0
While in that case it probably will, you can't really rely on it.  It's some behind the scenes black magic.
full member
Activity: 188
Merit: 100
Hello there. I'm using the official bitcoin client and i have a question.

Say i have 1 btc in address A and 2 btc in address B, in my wallet.
Then i want to make a payment of 2 btc to a friend of mine.

Will the client take the 2 btc in address B, and spend them? Is it possible to take 1 btc from both address A and B?

Thanks!

ps : hope this is the appropriate board for my question. if not, moderators please take care.
Jump to: