Parameters
- hashstringREQUIRED
The hash (32 bytes) of the block
- transaction detail flagbooleanREQUIRED
It returns the full transaction objects when it is true otherwise it returns only the hashes of the transactions
Returns
- objectobject | null
A block object, or null when no block was found:
- baseFeePerGasstring
(Optional) 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
- difficultystring
The integer of the difficulty for 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 | null
The block hash of the requested block. null if pending
- logsBloomstring | null
The bloom filter for the logs of the block. null if pending
- minerstring
The address of the beneficiary to whom the mining rewards were given
- mixHashstring
A string of a 256-bit hash encoded as a hexadecimal
- noncestring | null
The hash of the generated proof-of-work. null if pending
- numberstring | null
The block number of the requested block encoded as a hexadecimal. 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 as an Integer value encoded as hexadecimal
- stateRootstring
The root of the final state trie of the block
- timestampstring
The unix timestamp for when the block was collated
- totalDifficultystring
The integer of the total difficulty of the chain until this block encoded as a hexadecimal
- transactionsarray
An array of transaction objects - please see eth_getTransactionByHash for exact shape
- transactionsRootstring
The root of the transaction trie of the block
- unclesarray
An array of uncle hashes
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x32",6"difficulty": "0x0",7"extraData": "0x",8"gasLimit": "0x1c9c380",9"gasUsed": "0xb741",10"hash": "0x8125d2cdb126d1eb9c40bd3a3a1c00633d5698c0af4dfa90ef2ad32ba81b6f52",11"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",12"miner": "0x4200000000000000000000000000000000000011",13"mixHash": "0x0cd96a684fdaa2d0b9baf184419526ad720e701bae1855f34b7d535b1f65f9f5",14"nonce": "0x0000000000000000",15"number": "0x5f4e6",16"parentHash": "0xd3014621a2c99724341184e6c32fe641d54b174353cd2bc8c83a0372171f0ef0",17"receiptsRoot": "0x3f71ebd8822765e8146170b0f930f55f753dbb867f55e4e605894016cd32f1e2",18"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",19"size": "0x365",20"stateRoot": "0x3151cd56c2daaa3adb8f61bc91071dbe245ee5082da3c158f9326d21f929d0df",21"timestamp": "0x649646af",22"transactions": [23"0x2d3750f7944818e1a4e6b897b6f6ea4d975fcf46720990eb4eda0c00d926a8fd"24],25"transactionsRoot": "0xde72c21eee913cab906890d872c55c8a37845fb6a593760936e8a5204667f9a3",26"uncles": []27}28}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x32",6"difficulty": "0x0",7"extraData": "0x",8"gasLimit": "0x1c9c380",9"gasUsed": "0xb741",10"hash": "0x8125d2cdb126d1eb9c40bd3a3a1c00633d5698c0af4dfa90ef2ad32ba81b6f52",11"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",12"miner": "0x4200000000000000000000000000000000000011",13"mixHash": "0x0cd96a684fdaa2d0b9baf184419526ad720e701bae1855f34b7d535b1f65f9f5",14"nonce": "0x0000000000000000",15"number": "0x5f4e6",16"parentHash": "0xd3014621a2c99724341184e6c32fe641d54b174353cd2bc8c83a0372171f0ef0",17"receiptsRoot": "0x3f71ebd8822765e8146170b0f930f55f753dbb867f55e4e605894016cd32f1e2",18"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",19"size": "0x365",20"stateRoot": "0x3151cd56c2daaa3adb8f61bc91071dbe245ee5082da3c158f9326d21f929d0df",21"timestamp": "0x649646af",22"transactions": [23"0x2d3750f7944818e1a4e6b897b6f6ea4d975fcf46720990eb4eda0c00d926a8fd"24],25"transactionsRoot": "0xde72c21eee913cab906890d872c55c8a37845fb6a593760936e8a5204667f9a3",26"uncles": []27}28}