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
A block object, or null when no block was found
- baseFeePerGasstring
A string of the base fee encoded in hexadecimal format
- blobGasUsedstring
The total blob gas used in this block encoded as a hexadecimal
- difficultystring
The difficulty for this block encoded as a hexadecimal
- epochstring
The consensus epoch of the block encoded as a hexadecimal
- excessBlobGasstring
The excess blob gas in this block encoded as a hexadecimal
- extraDatastring
The extra data field of this block
- gasLimitstring
The maximum gas allowed in this block encoded as a hexadecimal
- gasUsedstring
The total used gas by all transactions in this block encoded as a hexadecimal
- hashstring
The block hash of the requested block, or null if pending
- logsBloomstring
The bloom filter for the logs of the block, or null if pending
- minerstring
The address of the beneficiary to whom the mining rewards were given
- mixHashstring
A 256-bit hash encoded as a hexadecimal
- noncestring
The hash of the generated proof-of-work, or null if pending
- numberstring
The block number encoded as a hexadecimal, or null if pending
- parentHashstring
The hash of the parent block
- receiptsRootstring
The root of the receipts trie of the block
- sha3Unclesstring
The SHA3 of the uncles data in the block
- sizestring
The size of this block in bytes encoded as a hexadecimal
- stateRootstring
The root of the final state trie of the block
- timestampstring
The unix timestamp for when the block was collated
- timestampNanostring
The nanosecond-precision timestamp for the block
- totalDifficultystring
The total difficulty of the chain until this block encoded as a hexadecimal
- transactionsarray
An array of transaction hashes as strings
- transactionsRootstring
The root of the transaction trie of the block
- unclesarray
An array of uncle hashes
- withdrawalsRootstring
The root of the withdrawals trie of the block
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"parentHash": "0xd9f7c9a5aed30f70c042631761820db7c56e34e591581678d566880441480378",6"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",7"miner": "0x0000000000000000000000000000000000000000",8"stateRoot": "0x02d4ea02342e98996e691981a71496687d8aad7202073625266a01d244234e17",9"transactionsRoot": "0xe6fe1a09b636dc1e16a372b5003220593dff217c3279e31eaa2c3eecad9020da",10"receiptsRoot": "0x7ccb6028888b663999102ce37975c4d72391dbef80d6f844c1b6363d7743f32c",11"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000400000000000000000000000000000008000000000000000000000000000800000000000000000000000000000000000004000000000000000000000200000010000000000002000000000000000000000000000000000000010000200000000000000000000000000200000000000000000000000000000000000000002000000000000000000002000000000000000000000000000000001000000000000000000000000000000000000000000400000000000000000002080000000000000000004000",12"difficulty": "0x0",13"number": "0x264e8aa",14"gasLimit": "0x12a05f200",15"gasUsed": "0x21894",16"timestamp": "0x68837377",17"timestampNano": "0x18557d279fbf4b95",18"extraData": "0x040d65950000000014f9847b",19"mixHash": "0x23a9586cab3df3dccd238e9f5d2d9bafe21bbed8197499dc771e515f603b9cad",20"nonce": "0x0000000000000000",21"baseFeePerGas": "0xba43b7400",22"hash": "0x3c5b972e862112e83929ab1c25893f10abd2b0c75c150487f43b3a34534df90d",23"epoch": "0x890a",24"totalDifficulty": "0x0",25"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",26"blobGasUsed": "0x0",27"excessBlobGas": "0x0",28"transactions": [29"0xa747b7488abb2f8401bdbb0cd868494105e990726a93e253cddd17968ed91db1",30"0x06a23225fc8de20ddc37bccb2262e1519f3bdcb24eaed10b251d16a85e684c28"31],32"size": "0x5a6",33"uncles": []34}35}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"parentHash": "0xd9f7c9a5aed30f70c042631761820db7c56e34e591581678d566880441480378",6"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",7"miner": "0x0000000000000000000000000000000000000000",8"stateRoot": "0x02d4ea02342e98996e691981a71496687d8aad7202073625266a01d244234e17",9"transactionsRoot": "0xe6fe1a09b636dc1e16a372b5003220593dff217c3279e31eaa2c3eecad9020da",10"receiptsRoot": "0x7ccb6028888b663999102ce37975c4d72391dbef80d6f844c1b6363d7743f32c",11"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000400000000000000000000000000000008000000000000000000000000000800000000000000000000000000000000000004000000000000000000000200000010000000000002000000000000000000000000000000000000010000200000000000000000000000000200000000000000000000000000000000000000002000000000000000000002000000000000000000000000000000001000000000000000000000000000000000000000000400000000000000000002080000000000000000004000",12"difficulty": "0x0",13"number": "0x264e8aa",14"gasLimit": "0x12a05f200",15"gasUsed": "0x21894",16"timestamp": "0x68837377",17"timestampNano": "0x18557d279fbf4b95",18"extraData": "0x040d65950000000014f9847b",19"mixHash": "0x23a9586cab3df3dccd238e9f5d2d9bafe21bbed8197499dc771e515f603b9cad",20"nonce": "0x0000000000000000",21"baseFeePerGas": "0xba43b7400",22"hash": "0x3c5b972e862112e83929ab1c25893f10abd2b0c75c150487f43b3a34534df90d",23"epoch": "0x890a",24"totalDifficulty": "0x0",25"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",26"blobGasUsed": "0x0",27"excessBlobGas": "0x0",28"transactions": [29"0xa747b7488abb2f8401bdbb0cd868494105e990726a93e253cddd17968ed91db1",30"0x06a23225fc8de20ddc37bccb2262e1519f3bdcb24eaed10b251d16a85e684c28"31],32"size": "0x5a6",33"uncles": []34}35}