Returns the block header information for a given block hash. This method provides header data without the transaction list, offering a lightweight way to access block metadata when you have the block hash.
eth_getHeaderByHash JSON-RPC method returns the block header information for a given block hash. This method provides header data without the transaction list, offering a lightweight way to access block metadata when you have the specific block hash.
null if the block doesn’t exist.
hash — The block hash (matches the input parameter)parentHash — Hash of the parent blocknumber — The block numbertimestamp — The unix timestamp when the block was collatedgasLimit — The maximum gas allowed in this blockgasUsed — The total gas used by all transactions in this blockdifficulty — The difficulty for this blocktotalDifficulty — The total difficulty of the chain until this blockminer — The address of the beneficiary to whom the mining rewards were givennonce — The nonce used to generate this blocksha3Uncles — SHA3 of the uncles data in the blocklogsBloom — The bloom filter for the logs of the blocktransactionsRoot — The root of the transaction trie of the blockstateRoot — The root of the final state trie of the blockreceiptsRoot — The root of the receipts trie of the blocknull if the hash doesn’t correspond to any existing blocketh_getHeaderByHash method is useful for applications that need to: