Overview
Block represents a complete Ethereum block with header, body, hash, and metadata. Used for block validation, storage, and propagation.Type Definition
header- Block metadata and Merkle rootsbody- Transactions, uncles/ommers, withdrawalshash- Keccak256(RLP(header))size- Block size in bytes (RLP-encoded)totalDifficulty- Cumulative difficulty (pre-merge only)
Creating Blocks
from
Universal constructor from block components.Block Components
A complete block consists of:- Header - Metadata and Merkle roots for verification
- Body - Actual content (transactions, uncles, withdrawals)
- Hash - Unique block identifier computed from header
- Size - Total RLP-encoded size in bytes
Post-Merge Changes
After The Merge (September 2022):totalDifficultyis no longer relevant- Proof-of-Work fields in header are zeroed
- Beacon chain handles consensus
See Also
- BlockHeader - Block header details
- BlockBody - Block body details
- BlockHash - Block identifier
- BlockNumber - Block height

