Parameters
- hashstringREQUIRED
The hash (32 bytes) of the block
- transaction detail flagbooleanREQUIRED
(default: false) It returns the full transaction objects when it is true otherwise it returns only the hashes of the transactions
Returns
- objectobject | null
The block object containing metadata, state roots, and transaction references. Null if the block is not found or still pending
- baseFeePerGasstring
The base fee per gas for this block encoded as a hexadecimal string
- blobGasUsedstring
The total blob gas used by all transactions in this block encoded as a hexadecimal string
- difficultystring
The block difficulty as a hexadecimal string (0x0 on Proof-of-Authority networks)
- excessBlobGasstring
The excess blob gas for this block encoded as a hexadecimal string
- extraDatastring
Arbitrary extra data set by the block proposer encoded as a hex string
- gasLimitstring
The maximum gas allowed in this block encoded as a hexadecimal string
- gasUsedstring
The total gas used by all transactions in this block encoded as a hexadecimal string
- hashstring | null
The hash of the block, null if the block is pending
- logsBloomstring | null
The bloom filter for logs generated in this block, null if pending
- mainBlockGeneralGasLimitstring
The general gas limit for the main block encoded as a hexadecimal string
- minerstring
The address of the block proposer or beneficiary
- mixHashstring
Legacy 256-bit hash used for PoW; typically 0x…00 on PoA networks
- noncestring
Legacy PoW nonce; typically 0x0000000000000000 on PoA networks
- numberstring | null
The block number encoded as a hexadecimal string, null if pending
- parentBeaconBlockRootstring
The root hash of the parent beacon block
- parentHashstring
The hash of the parent block
- receiptsRootstring
The root hash of the receipts trie of this block
- requestsHashstring
The hash of the requests list associated with this block
- sha3Unclesstring
The Keccak-256 hash of the uncles list in this block
- sharedGasLimitstring
The gas limit shared between main and side blocks encoded as a hexadecimal string
- sizestring
The block size in bytes encoded as a hexadecimal string
- stateRootstring
The root hash of the final state trie after processing this block
- timestampstring
The Unix timestamp when the block was produced encoded as a hexadecimal string
- timestampMillisstring
The block timestamp in milliseconds encoded as a hexadecimal string
- timestampMillisPartstring
Additional millisecond precision component of the block timestamp encoded as a hexadecimal string
- transactionsarray
Array of transaction hashes (32-byte hex strings) included in this block
- transactionsRootstring
The root hash of the transaction trie of this block
- unclesarray
Array of uncle block hashes referenced by this block (often empty on PoA networks)
- withdrawalsarray
Array of withdrawal entries included in this block or empty if there are none
- withdrawalsRootstring
The root hash of the withdrawals trie of this block
1{2"jsonrpc": "2.0",3"id": 1,4"result": null5}
1{2"jsonrpc": "2.0",3"id": 1,4"result": null5}