Appearance
Block
A block as eth_getBlockByNumber and eth_getBlockByHash return it.
Fields
| Field | Type | Meaning |
|---|---|---|
hash | 32-byte hash | The hash of the block header. |
parentHash | 32-byte hash | The hash of the previous block. |
number | hex number | The block number. |
timestamp | hex number, seconds | The Unix time of the block. |
miner | address | The fee recipient of the block. |
gasLimit | hex number | The most gas that the block can use. |
gasUsed | hex number | The gas that the transactions of the block used. |
baseFeePerGas | hex number, wei | The EIP-1559 base fee of the block. |
stateRoot | 32-byte hash | The root of the state trie after the block. |
transactionsRoot | 32-byte hash | The root of the transaction trie. |
receiptsRoot | 32-byte hash | The root of the receipt trie. |
logsBloom | 256-byte hex data | The bloom filter of all logs in the block. |
extraData | hex data | Free data that the block builder set. |
mixHash | 32-byte hash | Since the merge: the prevRandao value of the block. |
difficulty | hex number | 0x0 since the merge. |
nonce | 8-byte hex data | Zero since the merge. |
sha3Uncles | 32-byte hash | The hash of the empty uncle list since the merge. |
uncles | list | Always empty. |
size | hex number, bytes | The size of the RLP-encoded block. |
transactions | list | The transaction hashes. With true as the second parameter, the full Transaction objects. |
withdrawals | list of | The validator withdrawals (since Shanghai). amount is in gwei. |
withdrawalsRoot | 32-byte hash | The root of the withdrawal trie (since Shanghai). |
blobGasUsed | hex number | The blob gas of the block (since Cancun). |
excessBlobGas | hex number | The excess blob gas (since Cancun). It sets the blob base fee. |
parentBeaconBlockRoot | 32-byte hash | The root of the parent beacon block (since Cancun). |
requestsHash | 32-byte hash | The hash of the execution layer requests (since Prague). |
Used by
eth_getBlockByHash, eth_getBlockByNumber, eth_getHeaderByHash, eth_getHeaderByNumber, eth_simulateV1.