Skip to main content

eth_getBlockByHash RPC Method

Returns information of the block matching the given block hash.

Updated on
Feb 09, 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, not included for blocks before EIP-1559

blobGasUsed
string

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

difficulty
string

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

excessBlobGas
string

The excess blob gas used in the block encoded as a hexadecimal

extraData
string

The extra data field of the block

gasLimit
string

The maximum gas allowed in the block encoded as a hexadecimal

gasUsed
string

The total used gas by all transactions in the 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

miniBlockCount
string

The number of miniblocks in the block

miniBlockOffset
string

The miniblock offset value for the 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

The root of the parent beacon block of the block

parentHash
string

The hash of the parent block

receiptsRoot
string

The root of the receipts trie of the block

requestsHash
string

The hash of the requests list in the block encoded as a hexadecimal

sha3Uncles
string

The SHA3 of the uncles data in the block

signature
string

The block signature encoded as a hexadecimal

size
string

The size of the 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 hashes

transactionsRoot
string

The root of the transaction trie of the block

txOffset
string

The transaction offset value for the block

uncles
array

An array of uncle hashes

withdrawals
array

An array of withdrawals

withdrawalsRoot
string

The root of the withdrawals trie of the block

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"hash": "0x0aae422316a0c19edb48cbb72e26614202a8b56daefb21c3e9920ede19c7670c",
5
"parentHash": "0x02389b554f04cc49e1e00888fbf273c099f932cf33b096c5ef4b77661d0b7b66",
6
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
7
"miner": "0xc833404089416eab548df4ef2a998599c57cd83e",
8
"stateRoot": "0x35677f5fe8a2fc49828b25bbaffc5bf6076495d1a775cb652dc7f4617c914c47",
9
"transactionsRoot": "0x355fdff4c3e431a2fa0d2ef8d4dcbd5bb68ffdd80bc6bf7d79c7d148dbed66f4",
10
"receiptsRoot": "0xf2e4ec80fbc2f3e1859edaccd7160694bb6b12ae81c54e66a98febfbbab5a1bd",
11
"logsBloom": "0x00000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000200000400000000000000000000000000000000000002000000008008000000000000000000000000020000000000000000000000000000000000000010000000000000000000000000000000000004000000000000000000400000000000000000000000000000000000000000000000000004000000010000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000042000000000000000000",
12
"difficulty": "0x0",
13
"number": "0x23592c0",
14
"gasLimit": "0xbebc200",
15
"gasUsed": "0x3a980",
16
"timestamp": "0x69208301",
17
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
18
"mixHash": "0x759d01b98a81302ff8369dfd0523ba0ffa8bb19945ba2b0177bd44038391d82e",
19
"nonce": "0x0000000000000000",
20
"baseFeePerGas": "0x174876e800",
21
"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
22
"blobGasUsed": "0x0",
23
"excessBlobGas": "0x0",
24
"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
25
"requestsHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
26
"totalDifficulty": "0x0",
27
"size": "0x30f",
28
"uncles": [],
29
"transactions": [
30
"0x6ae0bb89e2b7170f243f7e48fe413e46ba26e6d1d24f6bb53746967168474ea3",
31
"0x92f28ebdf21ba386757b8a17292791ec70edce1dd0828f9202ccead768006e6a"
32
]
33
},
34
"id": 1
35
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"hash": "0x0aae422316a0c19edb48cbb72e26614202a8b56daefb21c3e9920ede19c7670c",
5
"parentHash": "0x02389b554f04cc49e1e00888fbf273c099f932cf33b096c5ef4b77661d0b7b66",
6
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
7
"miner": "0xc833404089416eab548df4ef2a998599c57cd83e",
8
"stateRoot": "0x35677f5fe8a2fc49828b25bbaffc5bf6076495d1a775cb652dc7f4617c914c47",
9
"transactionsRoot": "0x355fdff4c3e431a2fa0d2ef8d4dcbd5bb68ffdd80bc6bf7d79c7d148dbed66f4",
10
"receiptsRoot": "0xf2e4ec80fbc2f3e1859edaccd7160694bb6b12ae81c54e66a98febfbbab5a1bd",
11
"logsBloom": "0x00000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000200000400000000000000000000000000000000000002000000008008000000000000000000000000020000000000000000000000000000000000000010000000000000000000000000000000000004000000000000000000400000000000000000000000000000000000000000000000000004000000010000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000042000000000000000000",
12
"difficulty": "0x0",
13
"number": "0x23592c0",
14
"gasLimit": "0xbebc200",
15
"gasUsed": "0x3a980",
16
"timestamp": "0x69208301",
17
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
18
"mixHash": "0x759d01b98a81302ff8369dfd0523ba0ffa8bb19945ba2b0177bd44038391d82e",
19
"nonce": "0x0000000000000000",
20
"baseFeePerGas": "0x174876e800",
21
"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
22
"blobGasUsed": "0x0",
23
"excessBlobGas": "0x0",
24
"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
25
"requestsHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
26
"totalDifficulty": "0x0",
27
"size": "0x30f",
28
"uncles": [],
29
"transactions": [
30
"0x6ae0bb89e2b7170f243f7e48fe413e46ba26e6d1d24f6bb53746967168474ea3",
31
"0x92f28ebdf21ba386757b8a17292791ec70edce1dd0828f9202ccead768006e6a"
32
]
33
},
34
"id": 1
35
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free