Bitcoin Forum
March 28, 2024, 09:43:41 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Question regarding Bitcoin client: "receiving" addresses in Address Book  (Read 875 times)
m0w3r (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 100


View Profile
June 21, 2011, 07:47:52 PM
 #1

I created 3 Receiving addresses (that I labeled) in my Address Book, but it appears 4 more were created somehow (they don't have a label).    What is the reason for the client creating these extra addresses?
If you want to be a moderator, report many posts with accuracy. You will be noticed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1711662221
Hero Member
*
Offline Offline

Posts: 1711662221

View Profile Personal Message (Offline)

Ignore
1711662221
Reply with quote  #2

1711662221
Report to moderator
Rob P.
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
June 21, 2011, 07:54:33 PM
 #2

Once you've labeled them, it creates new ones for you to label.

The behavior is a little erratic, but not too bad.  Just label them as you use them.

--

If you like what I've written here, consider tipping the messenger:
1GZu4CtHa6ai8iWoWiVFxV5VVoNte4SkoG

If you don't like what I've written, send me a Tip and I'll stop talking.
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1024



View Profile
June 21, 2011, 08:17:47 PM
 #3

Also, if you send, it will create a new address to receive the change.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
m0w3r (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 100


View Profile
June 21, 2011, 11:57:44 PM
 #4

Appreciate your replies, I did some sending, but am still a bit confused with these addresses showing up:

Why does it create a new address when I send?

How do I know which specific address in the wallet has the bitcoins, all I see is a total balance?

kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1024



View Profile
June 22, 2011, 12:12:23 AM
 #5

The client simplifies and automates your wallet.  Beyond curiosity, you really don't want to have to deal with the nuts and bolts.

When you send coins, you aren't sending from your balance, and you aren't sending from your addresses, you are sending from previous transactions that have been sent to keys in your wallet.  That part is critical, because a transaction can only be redeemed once, and always in full.

Say, you have received three transactions for 1.3, 4.6 and 0.5 BTC, for a total of 6.4 BTC.  You want to send 6.1 BTC to someone.  The client will create a transaction that redeems all three inputs, because it needs all three to reach the desired spend amount.  But that is 6.4 BTC, not 6.1 BTC, so it creates a new key and address to accept the "change", and finishes the transaction with two outputs, one for 6.1 BTC to the address you wanted to send to, and one of 0.3 BTC back to your wallet via the newly generated change address.

That is why spending coins can (and usually does) generate new addresses in your address book.  The GUI doesn't really show how your balance is distributed amongst your addresses, but I think you can get it on the command line, or by punching the addresses into the block explorer.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
Rob P.
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
June 22, 2011, 12:37:11 AM
 #6

The client simplifies and automates your wallet.  Beyond curiosity, you really don't want to have to deal with the nuts and bolts.

When you send coins, you aren't sending from your balance, and you aren't sending from your addresses, you are sending from previous transactions that have been sent to keys in your wallet.  That part is critical, because a transaction can only be redeemed once, and always in full.

Say, you have received three transactions for 1.3, 4.6 and 0.5 BTC, for a total of 6.4 BTC.  You want to send 6.1 BTC to someone.  The client will create a transaction that redeems all three inputs, because it needs all three to reach the desired spend amount.  But that is 6.4 BTC, not 6.1 BTC, so it creates a new key and address to accept the "change", and finishes the transaction with two outputs, one for 6.1 BTC to the address you wanted to send to, and one of 0.3 BTC back to your wallet via the newly generated change address.

That is why spending coins can (and usually does) generate new addresses in your address book.  The GUI doesn't really show how your balance is distributed amongst your addresses, but I think you can get it on the command line, or by punching the addresses into the block explorer.

kjj, this is the absolutely best explanation I've read anywhere.  Nicely done.

--

If you like what I've written here, consider tipping the messenger:
1GZu4CtHa6ai8iWoWiVFxV5VVoNte4SkoG

If you don't like what I've written, send me a Tip and I'll stop talking.
BitcoinPorn
Hero Member
*****
Offline Offline

Activity: 630
Merit: 500


Posts: 69


View Profile WWW
June 22, 2011, 01:53:01 AM
 #7

Seriously well written, thanks for that.

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!