March 2018
Beginner to intermediate
656 pages
20h 9m
English
A transaction at a high level contains metadata, inputs, and outputs. Transactions are combined to create a block.
The transaction data structure is shown in the following table:
|
Field |
Size |
Description |
|
Version number |
4 bytes |
Used to specify rules to be used by the miners and nodes for transaction processing. |
|
Input counter |
1-9 bytes |
The number (positive integer) of inputs included in the transaction. |
|
List of inputs |
Variable |
Each input is composed of several fields, including Previous Tx hash, Previous Txout-index, Txin-script length, Txin-script, and optional sequence number. The first transaction in a block is also called a coinbase transaction. It specifies one or more transaction ... |