7
1
Why do transactions have multiple inputs with the same address? Is it because the amounts were obtained in the address through multiple separate transactions. Shouldn't the amounts be clubbed to a single input since the addresses are the same. An example is this one.
Shouldn't the inputs be 1LS1h8UJFgAFqRsw8WqjszBdJWDQg3hj6d with 0.01580432 BTC instead of repeating the same address with 0.00396188 BTC and 0.01184244 BTC.
Thank you.
2
While the question is different, my answer here explains why the inputs don't collapse: Can receiving money make a transaction fail?
– Murch – 2016-06-15T07:55:45.553@Murch From your answer, UTXOs having the same address don't merge together since they are still distinct on their transaction indices. – Ni9elF – 2016-06-16T06:10:55.447
Yeah, they are tuples of (txid, vout), where the first refers to the transaction the UTXO originated from, and the latter gives the position in the output list. The address isn't part of the UTXO identity. It only defines who will be able to spend the UTXO as it restrains what signature would be valid. – Murch – 2016-06-16T06:24:06.730
On second thought, I made this an answer. :) – Murch – 2016-06-16T06:27:52.063