• Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

Where is the change from the output stored in?

Started by Bitcoin, Mar 23, 2022, 04:13 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

Where is the change from the output stored in?

I'm learning that Bitcoin doesn't have a way to represent the account balance, but it's, rather, a sum of UTXO owned by the users of the private key.  Then where is the change from the output stored?



What I mean is, when the output of a transaction is used as the input of another transaction, it must be spent in its entirety. Sometimes the coin value of the output is higher than what the user wishes to pay. In this case, the client generates a new Bitcoin address, and sends the difference back to this address.



Does the change get stored back in UTXO?


Source: Where is the change from the output stored in?