Blocks
Blocks are an important concept in Ethereum. Blocks are containers for a transaction. A block contains multiple transactions. Each block has a different number of transactions based on gas limit and block size. Gas limit will be explained in detail in later sections. The blocks are chained together to form a blockchain. Each block has a parent block and it stores the hash of the parent block in its header. Only the first block, known as the genesis block, does not have a parent.
A typical block in Ethereum is shown in the following screenshot:

There are a lot of properties associated with a block, providing insights and metadata about it, and following are some of important properties along with their descriptions:
- The
difficultyproperty determines the complexity of the puzzle/challenge given to miners for this block. - The
gasLimitproperty determines the maximum gas allowed. This helps in determining how many transactions can be part of the block. - The
gasUsedproperty refers to the actual gas used for this block for executing all transactions in it. - The
hashproperty refers to the hash of the block. - The
nonceproperty refers to the number that helps in solving the challenge. - The
minerproperty is the account identifier of the miner, also known as coinbase or etherbase. - The
numberproperty is the sequential number of this block on the chain. - The
parentHashproperty refers to the parent block's hash. - The
receiptsRoot,stateRoot, andtransactionsRootproperties refer to Merkle trees discussed during the mining process. - The
transactionsproperty refers to an array of transactions that are part of this block. - The
totalDifficultyproperty refers to the total difficulty of the chain.