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
The block object containing block metadata, state roots, and transaction references. Null if the block is not found or still pending
- difficultystring
The block difficulty as a hexadecimal string, 0x0 on proof-of-stake networks
- extraDatastring
The extra data field set by the block producer 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
The hash of the block, null if the block is pending
- logsBloomstring
The bloom filter for logs generated in this block, null if pending
- minerstring
The address of the block proposer or beneficiary of block rewards
- mixHashstring
The 256-bit hash used for validating proof-of-work, typically zeroed on proof-of-stake networks
- noncestring
The block nonce value used in proof-of-work, zeroed or null on proof-of-stake networks
- numberstring
The block number encoded as a hexadecimal string, null if pending
- parentHashstring
The hash of the parent block
- receiptsRootstring
The root hash of the receipts trie of this block
- sha3Unclesstring
The SHA3 of the uncles list in this block
- sizestring
The block size in bytes encoded as a hexadecimal string
- stateRootstring
The root hash of the final state trie after all transactions in this block
- timestampstring
The unix timestamp when the block was produced encoded as a hexadecimal string
- totalDifficultystring
The cumulative chain difficulty up to this block encoded as a hexadecimal string
- transactionsarray
The array of transaction hashes included in this block, for detailed objects use eth_getTransactionByHash
- transactionsRootstring
The root hash of the transaction trie of this block
- unclesarray
The array of uncle block hashes referenced by this block
1{2"jsonrpc": "2.0",3"id": 1,4"result": null5}
1{2"jsonrpc": "2.0",3"id": 1,4"result": null5}