Skip to main content

eth_getBlockByHash RPC Method

Loading...

Updated on
Jan 21, 2026

Parameters

hash
string
REQUIRED
Loading...
transaction detail flag
boolean
REQUIRED
Loading...

Returns

object
object | null
Loading...
baseFeePerGas
string
Loading...
difficulty
string
Loading...
extraData
string
Loading...
gasLimit
string
Loading...
gasUsed
string
Loading...
hash
string | null
Loading...
logsBloom
string | null
Loading...
miner
string
Loading...
mixHash
string
Loading...
nonce
string | null
Loading...
number
string | null
Loading...
parentHash
string
Loading...
receiptsRoot
string
Loading...
sha3Uncles
string
Loading...
size
string
Loading...
stateRoot
string
Loading...
timestamp
string
Loading...
totalDifficulty
string
Loading...
transactions
array
Loading...
transactionsRoot
string
Loading...
uncles
array
Loading...
Request
Response
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
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free