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
- hashstring
The block hash of the requested block. null if pending
- parentHashstring
The hash of the parent block
- sha3Unclesstring
The SHA3 of the uncles data in the block
- minerstring
The address of the beneficiary to whom the mining rewards were given
- stateRootstring
The root of the final state trie of the block
- transactionsRootstring
The root of the transaction trie of the block
- receiptsRootstring
The root of the receipts trie of the block
- numberstring
The block number of the requested block encoded as a hexadecimal. null if pending
- l1BatchNumberstring
The l1 batch number of the requested block. null if pending
- gasUsedstring
The total used gas by all transactions in this block encoded as a hexadecimal
- gasLimitstring
The maximum gas allowed in this block encoded as a hexadecimal
- baseFeePerGasstring
A string of the base fee encoded in hexadecimal format. Please note that this response field will not be included in a block requested before the EIP-1559 upgrade
- extraDatastring
The “extra data” field of this block
- logsBloomstring
The bloom filter for the logs of the block. null if pending
- timestampstring
The unix timestamp for when the block was collated
- l1BatchTimestampstring
The unix l1 batch timestamp for when the block was collated
- difficultystring
The integer of the difficulty for this block encoded as a hexadecimal
- totalDifficultystring
The integer of the total difficulty of the chain until this block encoded as a hexadecimal
- sealFieldsarray
Contains any fields that seal the block (such as mining proof)
- unclesarray
An array of uncle hashes
- transactionsarray
An array of transaction objects - please see eth_getTransactionByHash for exact shape
- sizestring
The size of this block in bytes as an Integer value encoded as hexadecimal
- mixHashstring
A string of a 256-bit hash encoded as a hexadecimal
- noncestring
The hash of the generated proof-of-work. null if pending
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"hash": "0x04d335186aa661f8470869ebdd3a23201ef52efc0d219de61fdce2b587f82e47",6"parentHash": "0x8e92921a240189128936cedfa037c7c63416eb3d611ca0faa9e85de20f486ecf",7"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",8"miner": "0x0000000000000000000000000000000000000000",9"stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",10"transactionsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",11"receiptsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",12"number": "0xa129",13"l1BatchNumber": "0x7e",14"gasUsed": "0x15acd",15"gasLimit": "0x4000000000000",16"baseFeePerGas": "0x2b275d0",17"extraData": "0x",18"logsBloom": "0x00000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000008000000000000000000000000000000000000080000000000000000000000000000000000000800000000000000000010000000000000000000000000000004000000000000000000000000000000000000000000000000200000100000000000000000000000000000000000000008000000000000000002008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",19"timestamp": "0x67572804",20"l1BatchTimestamp": "0x675711c5",21"difficulty": "0x0",22"totalDifficulty": "0x0",23"sealFields": [],24"uncles": [],25"transactions": [26"0x65aac8560cdb6a1bfae96fd8c6d801cdc9be74244dea8388c4a24f16a5475c23"27],28"size": "0x0",29"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",30"nonce": "0x0000000000000000"31}32}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"hash": "0x04d335186aa661f8470869ebdd3a23201ef52efc0d219de61fdce2b587f82e47",6"parentHash": "0x8e92921a240189128936cedfa037c7c63416eb3d611ca0faa9e85de20f486ecf",7"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",8"miner": "0x0000000000000000000000000000000000000000",9"stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",10"transactionsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",11"receiptsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",12"number": "0xa129",13"l1BatchNumber": "0x7e",14"gasUsed": "0x15acd",15"gasLimit": "0x4000000000000",16"baseFeePerGas": "0x2b275d0",17"extraData": "0x",18"logsBloom": "0x00000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000008000000000000000000000000000000000000080000000000000000000000000000000000000800000000000000000010000000000000000000000000000004000000000000000000000000000000000000000000000000200000100000000000000000000000000000000000000008000000000000000002008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",19"timestamp": "0x67572804",20"l1BatchTimestamp": "0x675711c5",21"difficulty": "0x0",22"totalDifficulty": "0x0",23"sealFields": [],24"uncles": [],25"transactions": [26"0x65aac8560cdb6a1bfae96fd8c6d801cdc9be74244dea8388c4a24f16a5475c23"27],28"size": "0x0",29"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",30"nonce": "0x0000000000000000"31}32}