January 2019
Beginner to intermediate
372 pages
11h 17m
English
A transaction input references UTXOs whenever a user wishes to make a Bitcoin transaction. The transaction input uses an unlocking script to claim the UTXO. A valid transaction input proves the ownership of the UTXO with the help of this unlocking script.
A transaction input can have multiple inputs pointing to multiple UTXOs. The transaction input makes sure that there are enough UTXOs to enable the transaction to take place. In the earlier example, the transaction input had a single input pointing to a UTXO:
"vin": [ { "txid": "e9a78b3c3fd060c561530b3340ef706ca242ec204c8edee8e590fa374ad71b0e", "vout": 0, "scriptSig": { "asm": "304402201a62b24dcbeba9ec65478be8a12ccd31c3c9849813782d1ca0bcab657a88762402204897f9c9e5e99de969fd5d076d80aebbaef19493f5e273663d4727864a67295b[ALL] ...