Parameters
- hashstring
The hash (32 bytes) of the block
- transaction detail flagboolean
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
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"result": {4"difficulty": "0x0",5"extraData": "0x4e65746865726d696e64",6"gasLimit": "0x1c9c380",7"gasUsed": "0x5fea2",8"hash": "0x7e66106e62b63548d6496bda5825c5338d03bd097fbca6dde6e772b78851eef6",9"logsBloom": "0x00000000000000008000000000200000000000001004000000008004000000020020000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000800000000000000000004000800800000000000000000000000000000000000000400000000000000000000000001000000000000000000000000000000002000000000000000000000000000000000800000000000000000000001000000000000000000000000000000000000000000000000000000000000400000000000000000080000000000000000000000000000000",10"miner": "0x0000000000000000000000000000000000000000",11"mixHash": "0x906cb11d375afbfba2221d6ccdf1efcf6e56606bb6f8f12edb88bd0c498dfa9e",12"nonce": "0x0000000000000000",13"number": "0x1879724",14"parentHash": "0x1e904f6cd1b2768219c74639017baad2bb1448712ede2d7ffbe722c46edcd14b",15"receiptsRoot": "0x2a56ddf96fde8f023dd753983c7f3309db410eb6e06058dcc2de6fe2a986851d",16"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",17"size": "0x9ff",18"stateRoot": "0x21f67e8f78c81e5488b582e0f1a95fda8f9413bbc9258a64ce2b1ef7c5fca88a",19"timestamp": "0x63ab0d52",20"baseFeePerGas": "0x7",21"transactions": [22"0xd7407c3794eb447fd9002e913b6e695a35d1d59eeb0143e3ef8d47d74fe8acda",23"0x8e6cca286af3b2a273dde08e073199a69d04fb41fcebe062a92e34567bf4281c",24"0x5bbfd1c14ed820f89065420da7b9a070238349a445574c177f4ed7773e44aae0"25],26"transactionsRoot": "0x7bcc994a7fac66bf3b6a87f78f2751af2433b1197a60e476f6716443b0443c74",27"uncles": []28},29"id": 130}
1{2"jsonrpc": "2.0",3"result": {4"difficulty": "0x0",5"extraData": "0x4e65746865726d696e64",6"gasLimit": "0x1c9c380",7"gasUsed": "0x5fea2",8"hash": "0x7e66106e62b63548d6496bda5825c5338d03bd097fbca6dde6e772b78851eef6",9"logsBloom": "0x00000000000000008000000000200000000000001004000000008004000000020020000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000800000000000000000004000800800000000000000000000000000000000000000400000000000000000000000001000000000000000000000000000000002000000000000000000000000000000000800000000000000000000001000000000000000000000000000000000000000000000000000000000000400000000000000000080000000000000000000000000000000",10"miner": "0x0000000000000000000000000000000000000000",11"mixHash": "0x906cb11d375afbfba2221d6ccdf1efcf6e56606bb6f8f12edb88bd0c498dfa9e",12"nonce": "0x0000000000000000",13"number": "0x1879724",14"parentHash": "0x1e904f6cd1b2768219c74639017baad2bb1448712ede2d7ffbe722c46edcd14b",15"receiptsRoot": "0x2a56ddf96fde8f023dd753983c7f3309db410eb6e06058dcc2de6fe2a986851d",16"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",17"size": "0x9ff",18"stateRoot": "0x21f67e8f78c81e5488b582e0f1a95fda8f9413bbc9258a64ce2b1ef7c5fca88a",19"timestamp": "0x63ab0d52",20"baseFeePerGas": "0x7",21"transactions": [22"0xd7407c3794eb447fd9002e913b6e695a35d1d59eeb0143e3ef8d47d74fe8acda",23"0x8e6cca286af3b2a273dde08e073199a69d04fb41fcebe062a92e34567bf4281c",24"0x5bbfd1c14ed820f89065420da7b9a070238349a445574c177f4ed7773e44aae0"25],26"transactionsRoot": "0x7bcc994a7fac66bf3b6a87f78f2751af2433b1197a60e476f6716443b0443c74",27"uncles": []28},29"id": 130}