53 - Block Header
Blocks contain block header, transactions and ommers’ block headers. Block header contains
-
parentHash: The Keccak 256-bit hash of the parent block’s header, in its entirety
-
ommersHash: The Keccak 256-bit hash of the ommers list portion of this block
-
beneficiary: The 160-bit address to which all fees collected from the successful mining of this block be transferred
-
stateRoot: The Keccak 256-bit hash of the root node of the state trie, after all transactions are executed and finalisations applied
-
transactionsRoot: The Keccak 256-bit hash of the root node of the trie structure populated with each transaction in the transactions list portion of the block
-
receiptsRoot: The Keccak 256-bit hash of the root node of the trie structure populated with the receipts of each transaction in the transactions list portion of the block
-
logsBloom: The Bloom filter composed from indexable information (logger address and log topics) contained in each log entry from the receipt of each transaction in the transactions list
-
difficulty: A scalar value corresponding to the difficulty level of this block. This can be calculated from the previous block’s difficulty level and the timestamp
-
number: A scalar value equal to the number of ancestor blocks. The genesis block has a number of zero;
-
gasLimit: A scalar value equal to the current limit of gas expenditure per block
-
gasUsed: A scalar value equal to the total gas used in transactions in this block
-
timestamp: A scalar value equal to the reasonable output of Unix’s time() at this block’s inception
-
extraData: An arbitrary byte array containing data relevant to this block. This must be 32 bytes or fewer
-
mixHash: A 256-bit hash which, combined with the nonce, proves that a sufficient amount of computation has been carried out on this block
-
Nonce: A 64-bit value which, combined with the mixhash, proves that a sufficient amount of computation has been carried out on this block
- Block -> Header, Txs, Ommers' Headers
- Block Header -> parentHash, OmmersHash, Beneficiary address, stateRoot, - TransactionsRoot, receiptsRoot, logsBloom, difficulty, number, gasLimit, gasUsed, extraData, timestamp (unix time), mixhash, none
- root hashes -> modified patricia-tree -> stateRoot, TransactionsRoot, receiptsRoot
- block number -> number of blocks mined so far
- timestamp -> time block was mined