Skip to main content

eth_getBlockByHash RPC Method

Returns information of the block matching the given block hash.

Updated on
Mar 27, 2026

Parameters

hash
string
REQUIRED

The hash (32 bytes) of the block

transaction detail flag
boolean
REQUIRED

(default: false) It returns the full transaction objects when it is true otherwise it returns only the hashes of the transactions

Returns

object
object | null

A block object, or null when no block was found

baseFeePerGas
string

(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

blobGasUsed
string

(Optional) The amount of gas used by the blob

difficulty
string

The integer of the difficulty for this block encoded as a hexadecimal

excessBlobGas
string

(Optional) The excess gas used by the blob

extraData
string

The “extra data” field of this block

gasLimit
string

The maximum gas allowed in this block encoded as a hexadecimal

gasUsed
string

The total used gas by all transactions in this block encoded as a hexadecimal

hash
string | null

The block hash of the requested block. null if pending

logsBloom
string | null

The bloom filter for the logs of the block. null if pending

miner
string

The address of the beneficiary to whom the mining rewards were given

requestsHash
string

The hash of the requests list for this block

mixHash
string

A string of a 256-bit hash encoded as a hexadecimal

nonce
string | null

The hash of the generated proof-of-work. null if pending

number
string | null

The block number of the requested block encoded as a hexadecimal. null if pending

parentBeaconBlockRoot
string

(Optional) The root of the parent beacon block in hexadecimal format

parentHash
string

The hash of the parent block

receiptsRoot
string

The root of the receipts trie of the block

sha3Uncles
string

The SHA3 of the uncles data in the block

size
string

The size of this block in bytes as an Integer value encoded as hexadecimal

stateRoot
string

The root of the final state trie of the block

timestamp
string

The unix timestamp for when the block was collated

transactions
array

An array of transaction objects

transactionsRoot
string

The root of the transaction trie of the block

uncles
array

An array of uncle hashes

withdrawals
array

A withdrawals object contains information about withdrawals made by validators. Please note that this field will not be included in a block requested before the EIP-4895 upgrade

index
string

The index of the withdrawal to uniquely identify each withdrawal

validatorIndex
string

The index of the validator who initiated the withdrawal

address
string

The address to which the withdrawn amount is sent

amount
string

The amount of ether, provided in hexadecimal format, corresponding to a certain value in gwei

withdrawalsRoot
string

The Merkle root of withdrawal data. Also, please note that this field will not be included in a block requested before the EIP-4895 upgrade

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"hash": "0xdc26988945b210a0789308ec242aebb29f030832dcd649a621f68595413ad017",
6
"parentHash": "0x05907e6d5d04e9842c7c6b757ede606bedcc39fd68a4838d2f3b0468226a33d8",
7
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
8
"miner": "0x000000000000000000000000000000000a11b004",
9
"stateRoot": "0x1b30fef6e5cb1bb3b6962a25d3486d5b555548838010ed4400d39faa796d3057",
10
"transactionsRoot": "0x7a0fb798a1ed1b41d5bd35802658db1d1dc89a9713caefc99ecad4da639f55c4",
11
"receiptsRoot": "0x9260a5ec2de04a2d54cb1ce95cb06f8de0f7a5e22c0f2d91adbd2c15a0636377",
12
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
13
"difficulty": "0x0",
14
"number": "0xb9981",
15
"gasLimit": "0x2255100",
16
"gasUsed": "0x2e671",
17
"timestamp": "0x68c4328a",
18
"extraData": "0x726574682f76312e362e302f6c696e7578",
19
"mixHash": "0x36ddade5198ca8031793daf4353ad1e575589e32bb92edd06b6ddb204f6f4688",
20
"nonce": "0x0000000000000000",
21
"baseFeePerGas": "0x7",
22
"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
23
"blobGasUsed": "0x0",
24
"excessBlobGas": "0x0",
25
"parentBeaconBlockRoot": "0xc727b69d700192039405d21d0a67165bc20879b4fe356ab494473dfa9701be6e",
26
"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
27
"size": "0x86d",
28
"uncles": [],
29
"transactions": [
30
"0x555c2192f6ef063ccedf606948c7f5fe371d5d04d2f22a55c8fbf7ad2e67fee1",
31
"0x3f21e4564ee6829850aed5fa2d0b881e45a9af243ac703449cf663c50b190721",
32
"0xc591a64ae2aec8187443bb3c88c884149d80ca2c0af897b5c2a38be80c921cc6",
33
"0xf5785fa4583b321fe7eeca032b91c7ac620190afcf6f7a631568a96b4356b171",
34
"0x6edffee40d0ef57e976098a8891c69091f82b2e2a79da63e3e2c425f02a7ccd0"
35
],
36
"withdrawals": []
37
}
38
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"hash": "0xdc26988945b210a0789308ec242aebb29f030832dcd649a621f68595413ad017",
6
"parentHash": "0x05907e6d5d04e9842c7c6b757ede606bedcc39fd68a4838d2f3b0468226a33d8",
7
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
8
"miner": "0x000000000000000000000000000000000a11b004",
9
"stateRoot": "0x1b30fef6e5cb1bb3b6962a25d3486d5b555548838010ed4400d39faa796d3057",
10
"transactionsRoot": "0x7a0fb798a1ed1b41d5bd35802658db1d1dc89a9713caefc99ecad4da639f55c4",
11
"receiptsRoot": "0x9260a5ec2de04a2d54cb1ce95cb06f8de0f7a5e22c0f2d91adbd2c15a0636377",
12
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
13
"difficulty": "0x0",
14
"number": "0xb9981",
15
"gasLimit": "0x2255100",
16
"gasUsed": "0x2e671",
17
"timestamp": "0x68c4328a",
18
"extraData": "0x726574682f76312e362e302f6c696e7578",
19
"mixHash": "0x36ddade5198ca8031793daf4353ad1e575589e32bb92edd06b6ddb204f6f4688",
20
"nonce": "0x0000000000000000",
21
"baseFeePerGas": "0x7",
22
"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
23
"blobGasUsed": "0x0",
24
"excessBlobGas": "0x0",
25
"parentBeaconBlockRoot": "0xc727b69d700192039405d21d0a67165bc20879b4fe356ab494473dfa9701be6e",
26
"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
27
"size": "0x86d",
28
"uncles": [],
29
"transactions": [
30
"0x555c2192f6ef063ccedf606948c7f5fe371d5d04d2f22a55c8fbf7ad2e67fee1",
31
"0x3f21e4564ee6829850aed5fa2d0b881e45a9af243ac703449cf663c50b190721",
32
"0xc591a64ae2aec8187443bb3c88c884149d80ca2c0af897b5c2a38be80c921cc6",
33
"0xf5785fa4583b321fe7eeca032b91c7ac620190afcf6f7a631568a96b4356b171",
34
"0x6edffee40d0ef57e976098a8891c69091f82b2e2a79da63e3e2c425f02a7ccd0"
35
],
36
"withdrawals": []
37
}
38
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free