Bitcoin Forum
June 29, 2024, 02:13:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Question about change address  (Read 149 times)
bitmover (OP)
Legendary
*
Offline Offline

Activity: 2352
Merit: 6085


bitcoindata.science


View Profile WWW
April 16, 2018, 07:36:22 PM
 #1

I was studying about transaction fees and how are they calculated. I have a doubt about transactions and change addresses.

In my understanding (correct me if I am wrong please), if someone make only 1 transaction and send 1 bitcoin to your wallet, it will generate one UTXO (unspent transaction output) that can be spent with one of your private key.

If you want to transfer 0.1 bitcoin associated with that private key to another address, this would result in a Change address for the remaining 0.9 btc, otherwise the difference between the inputs and the outputs would return to the miners as a fee. Is it correct?

But why I don't see a lot of change addresses when I make my transactions? I saw this change address only once, when I made a conversion using shapeshift. Usually if I have 1 btc and I make a transfer of 0.1 btc to another wallet, this operation does not create a change address.

What am I missing?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
April 16, 2018, 08:11:54 PM
 #2

In my understanding (correct me if I am wrong please), if someone make only 1 transaction and send 1 bitcoin to your wallet, it will generate one UTXO (unspent transaction output) that can be spent with one of your private key.
yes, this is correct.

Quote
If you want to transfer 0.1 bitcoin associated with that private key to another address, this would result in a Change address for the remaining 0.9 btc, otherwise the difference between the inputs and the outputs would return to the miners as a fee. Is it correct?
Yes, that is if you do not specify an output for the change address -- there is no field in a bitcoin transaction for the fees; they are implied as the difference between the inputs and outputs.
However you can use the "from" address as the change address.
So if you're spending 0.1 BTC of a UTXO of 1BTC, you can have two outputs: output 1 is the destination address 1Destination and you can use the same "from" address to receive the change  (1FromAddress)
Quote
But why I don't see a lot of change addresses when I make my transactions? I saw this change address only once, when I made a conversion using shapeshift. Usually if I have 1 btc and I make a transfer of 0.1 btc to another wallet, this operation does not create a change address.

What am I missing?
I don't understand what you mean.
Perhaps you're using just one address and the change address is being sent back to the original address (terrible for privacy)
Can you post a sample TX ID?
For example, this transaction the change goes back to the "from" address.
DooMAD
Legendary
*
Offline Offline

Activity: 3836
Merit: 3162


Leave no FUD unchallenged


View Profile
April 16, 2018, 09:20:53 PM
 #3

It depends on your wallet software.  I recall MultiBit never generated change addresses (but no one should be using MultiBit anymore since it's no longer supported).  But I wouldn't expect your software to not normally use a change address if it has used them on at least one occasion.  Did you update your wallet recently to a newer version?  

Or is it possible those previous transactions you mentioned were from addresses with multiple outputs and perhaps didn't need change for the amount you sent?  If, for example your 1 BTC was made up of three received transactions of 0.5, 0.3 and 0.2 and you wanted to spend exactly 0.3, you don't need any change.
bitmover (OP)
Legendary
*
Offline Offline

Activity: 2352
Merit: 6085


bitcoindata.science


View Profile WWW
April 16, 2018, 11:54:30 PM
 #4

Or is it possible those previous transactions you mentioned were from addresses with multiple outputs and perhaps didn't need change for the amount you sent?  If, for example your 1 BTC was made up of three received transactions of 0.5, 0.3 and 0.2 and you wanted to spend exactly 0.3, you don't need any change.

Thanks for answers, this is what happened. In very few transactions i needed a change address, and they were there when I looked closely.
I  will lock this thread, thanks for replies and sorry for my confusion.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!