Outputs have three fields, and they contain instructions for sending bitcoins. The first field contains the amount of Satoshis whereas the second field contains the size of the locking script. Finally, the third field contains a locking script that holds the conditions that need to be met in order for the output to be spent. More information on transaction spending using locking and unlocking scripts and producing outputs is discussed later in this section.
Transaction output data structure is shown here:
Field |
Size |
Description |
Value |
8 bytes |
Total number in positive integers of Satoshis to be transferred |
Script size |
1-9 bytes |
Size of the locking script |
Locking script |
Variable |
Output script (ScriptPubKey) |
In the preceding example two outputs are shown under "OUT":[ section.