Bitcoin Forum
December 12, 2018, 08:57:07 AM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: UTXO amount decrease  (Read 626 times)
senanahmedli
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
July 20, 2017, 01:39:57 PM
 #1

Hello,

There is point that I can not understand, It would be great if someone could explain it. As we know UTXO is amount of unspent transactions. In my opinion, the amount of UTXOs should be always increasing. For example, If userA has 10 BTC and he sends 7 BTC to userB. In this case, unspent transaction for userA would be 3 BTC and for userB UTXO would be 7 BTC. as a total value, the amount of unspent transaction output will be always same which 10 BTC in my case. As long as we know that miners get 12.5 btc for every validation.By the help of this fact, the amount of UTXO in blockchain should always be increased in every 10 minutes. However when I check the blockchain.info I see the amount of UTXOs decreased in some extent. Maybe the time while validating transaction could be the reason for this but i am not sure about that. Could you please explain it to me.

Thank you.
1544605027
Hero Member
*
Offline Offline

Posts: 1544605027

View Profile Personal Message (Offline)

Ignore
1544605027
Reply with quote  #2

1544605027
Report to moderator
1544605027
Hero Member
*
Offline Offline

Posts: 1544605027

View Profile Personal Message (Offline)

Ignore
1544605027
Reply with quote  #2

1544605027
Report to moderator
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1544605027
Hero Member
*
Offline Offline

Posts: 1544605027

View Profile Personal Message (Offline)

Ignore
1544605027
Reply with quote  #2

1544605027
Report to moderator
1544605027
Hero Member
*
Offline Offline

Posts: 1544605027

View Profile Personal Message (Offline)

Ignore
1544605027
Reply with quote  #2

1544605027
Report to moderator
1544605027
Hero Member
*
Offline Offline

Posts: 1544605027

View Profile Personal Message (Offline)

Ignore
1544605027
Reply with quote  #2

1544605027
Report to moderator
mocacinno
Legendary
*
Offline Offline

Activity: 1428
Merit: 1275


https://unblur.ninja =>lightning network testsite


View Profile WWW
July 20, 2017, 01:45:53 PM
 #2

Hello,

There is point that I can not understand, It would be great if someone could explain it. As we know UTXO is amount of unspent transactions. In my opinion, the amount of UTXOs should be always increasing. For example, If userA has 10 BTC and he sends 7 BTC to userB. In this case, unspent transaction for userA would be 3 BTC and for userB UTXO would be 7 BTC. as a total value, the amount of unspent transaction output will be always same which 10 BTC in my case. As long as we know that miners get 12.5 btc for every validation.By the help of this fact, the amount of UTXO in blockchain should always be increased in every 10 minutes. However when I check the blockchain.info I see the amount of UTXOs decreased in some extent. Maybe the time while validating transaction could be the reason for this but i am not sure about that. Could you please explain it to me.

Thank you.

I could also consolidate unspent outputs.
For example, i have received 1000 payments of 0.001 BTC in the past. I'm able to spend 1000 unspent outputs.
If i decided to purchase a 0.999 BTC item, i would use all 1000 unspent outputs as an input, and i would generate one new unspent output (and 0.001 as a fee, which will likely not be enough).

If my transaction was the only one that made it into the last block, the utxo set would have decease by 999, since i have used 1000 unspent outputs, and only created one new unspent output Smiley

tspacepilot
Legendary
*
Offline Offline

Activity: 1456
Merit: 1017


I may write code in exchange for bitcoins.


View Profile
July 20, 2017, 07:59:18 PM
 #3

Right, OP seems to be confusing the BTC value of unspent outputs with the count of unspent outputs.

OP: UTXO db is there to keep track of spendable outputs, irrespective of their combined value.  I think your intuition is correct that the value of UTXO should be increasing over time because of the block reward (it is possible to "burn" bitcoins by sending them to unusable addresses, but I think you're right about the trend).

However, you have to consider the way transactions actually work (in the simple case): they assign a number of Satoshis to a script which specifies spending conditions.  In the case of sending N Satoshi's to address A, what you're doing is creating a script which says that a good signature from the private key corresponding to address A is good enough to spend N Satoshi's.  These N Satoshis are then in an unspent output waiting for someone with the private key for address A to send them elsewhere.  Now, imagine this, someone else sends M Satoshis to address A in the same fashion, there are now N+M spendable satoshis for the person with the private key for address A, but there are two outputs in the UTXO db that represent them (the two transactions which funded address A).  If the person with address A now sends those M+N satoshis to address B, We just got one less unspent output in the UTXO.  The value M+N is still there, but it's now stored in a single unspent output instead of two.

You can find out more about this stuff by looking at raw transactions and how they work.  You'll see that when your wallet sends a transaction to spend X, that transaction might have any number of inputs and may have more than one output as well (change addresses, etc).

Have fun!
DannyHamilton
Legendary
*
Offline Offline

Activity: 2198
Merit: 1385



View Profile
July 20, 2017, 09:54:03 PM
 #4

OP, are you asking about QUANTITY of UTXO, or are you asking about VALUE of UTXO?

Theoretically, for example, if someone had access to the private keys then all of the value could all be sent to a single UTXO.  The QUANTITY of unspent transaction outputs would be 1.  But the VALUE would still be more than 16,000,000 BTC.

Quantity can be reduced by creating transactions that spend multiple transaction outputs (which removes them from the UTXO), and which create less new unspent outputs than they spend.

Total UTXO value can be reduced by miners if they choose to reward themselves with less than the maximum amount of BTC they are entitled to.

Coding Enthusiast
Sr. Member
****
Offline Offline

Activity: 529
Merit: 422


Novice C♯ Coder


View Profile WWW
July 23, 2017, 05:26:32 PM
 #5

However when I check the blockchain.info I see the amount of UTXOs decreased in some extent.

If you are looking at this chart on blockchain.info, try including a screenshot so we also see what you see and can give a more accurate answer.

For example if you are looking at the sharp rise of early 2015 followed by a smaller but still sharp drop a couple of months after then that is because of the spam attack of 2015 which they called "Stress Testing". Some call this particular method "Fan Out" because it splits input(s) into many outputs which occupies a bigger size on blocks and also increases the UTXO set.
That particular drop indicates the end of this Spam Attack and indicates the "cleanup" afterwards when they spent all those small new UTXOs and created much smaller number of new outputs.

Projects List+Suggestion box
Donation link using BIP21
Bech32 Donation link!
BitcoinTransactionTool (0.9.2):  Ann - Source Code
Watch Only Bitcoin Wallet (supporting SegWit) (3.1.0):  Ann - Source Code
SharpPusher (broadcast transactions) (0.10.0): Ann - Source Code

senanahmedli
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
July 24, 2017, 06:51:37 AM
 #6

Thank you all,

I have understood everything
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!