Skip to main content

eth_getBlockByHash RPC Method

Returns information of the block matching the given block hash.

Updated on
Oct 15, 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

A block object, or null when no block was found

baseFeePerGas
string

A string of the base fee encoded in hexadecimal format, not included for blocks before EIP-1559

difficulty
string

The integer of the difficulty for 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

The block hash of the requested block, null if pending

l1BlockNumber
string

Parent chain block number encoded as hexadecimal

logsBloom
string

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

mixHash
string

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

nonce
string

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

number
string

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

parentHash
string

The hash of the parent block

receiptsRoot
string

The root of the receipts trie of the block

sendCount
string

The send count

sendRoot
string

The send root hash

sha3Uncles
string

The SHA3 of the uncles data in the block

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

Transaction hashes when the detail flag is false, or full transaction objects when true. Transaction objects include hash, from, to, nonce, input, value, gas, gasPrice, blockHash, blockNumber, and transactionIndex.

transactionsRoot
string

The root of the transaction trie of the block

uncles
array

An array of uncle hashes

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"baseFeePerGas": "0x5f5e100",
6
"difficulty": "0x1",
7
"extraData": "0x11fd1476060013c8d5c78dfa657bfaef5fdc773f43f1ed037375359dcdd753c1",
8
"gasLimit": "0x4000000000000",
9
"gasUsed": "0x5208",
10
"hash": "0x0f51457c6063a7e37360e528c2ccf2bb18528ccac1a15167c7a3822c0818fc0b",
11
"l1BlockNumber": "0x3fe2390",
12
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
13
"miner": "0xa4b000000000000000000073657175656e636572",
14
"mixHash": "0x000000000007f8800000000003fe2390000000000000003d0000000000000000",
15
"nonce": "0x00000000000b9c35",
16
"number": "0x92bef3",
17
"parentHash": "0xad7e420a1f02c16121201de6b9dd31c15f94c87161183fca32ea3bcceb0a7539",
18
"receiptsRoot": "0xa1c5fae85b5482970ec48a3386201fe448ea368eced3136406baf0f19ced15a0",
19
"sendCount": "0x7f880",
20
"sendRoot": "0x11fd1476060013c8d5c78dfa657bfaef5fdc773f43f1ed037375359dcdd753c1",
21
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
22
"size": "0x328",
23
"stateRoot": "0x66082dcc696d0eac533f8a728a5b375ca6591deb0928f5e621eb1f7df3b4735b",
24
"timestamp": "0x6ad108ef",
25
"transactions": [
26
"0x5f70ae588b0ae25c7d7ab5c1b5c45a860084cbcb7d5f66035a731dc98fa2f1a1",
27
"0x08882bf4ef7401b407f87367cb36887c4bbee74808a9dddd99b2b92c16e25ed3"
28
],
29
"transactionsRoot": "0xf0d7168b18808b790471a8a5f91f47f847263a2090d7083dc0dad03184ad41f9",
30
"uncles": []
31
}
32
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"baseFeePerGas": "0x5f5e100",
6
"difficulty": "0x1",
7
"extraData": "0x11fd1476060013c8d5c78dfa657bfaef5fdc773f43f1ed037375359dcdd753c1",
8
"gasLimit": "0x4000000000000",
9
"gasUsed": "0x5208",
10
"hash": "0x0f51457c6063a7e37360e528c2ccf2bb18528ccac1a15167c7a3822c0818fc0b",
11
"l1BlockNumber": "0x3fe2390",
12
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
13
"miner": "0xa4b000000000000000000073657175656e636572",
14
"mixHash": "0x000000000007f8800000000003fe2390000000000000003d0000000000000000",
15
"nonce": "0x00000000000b9c35",
16
"number": "0x92bef3",
17
"parentHash": "0xad7e420a1f02c16121201de6b9dd31c15f94c87161183fca32ea3bcceb0a7539",
18
"receiptsRoot": "0xa1c5fae85b5482970ec48a3386201fe448ea368eced3136406baf0f19ced15a0",
19
"sendCount": "0x7f880",
20
"sendRoot": "0x11fd1476060013c8d5c78dfa657bfaef5fdc773f43f1ed037375359dcdd753c1",
21
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
22
"size": "0x328",
23
"stateRoot": "0x66082dcc696d0eac533f8a728a5b375ca6591deb0928f5e621eb1f7df3b4735b",
24
"timestamp": "0x6ad108ef",
25
"transactions": [
26
"0x5f70ae588b0ae25c7d7ab5c1b5c45a860084cbcb7d5f66035a731dc98fa2f1a1",
27
"0x08882bf4ef7401b407f87367cb36887c4bbee74808a9dddd99b2b92c16e25ed3"
28
],
29
"transactionsRoot": "0xf0d7168b18808b790471a8a5f91f47f847263a2090d7083dc0dad03184ad41f9",
30
"uncles": []
31
}
32
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free