Skip to main content

eth_getBlockByNumber RPC Method

Returns information of the block matching the given block number.

Updated on
Apr 01, 2026

Parameters

blockNumber/tag
string
REQUIRED

The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized

transaction detail flag
boolean
REQUIRED

(default: false) The method returns the full transaction objects when this value is true otherwise, it returns only the hashes of the transactions

Returns

object
object

A block object, or null when no block was found:

author
string

The address of the entity (validator or miner) that produced or proposed the block

baseFeePerGas
string

The minimum fee per unit of gas required for transactions to be included in the block, expressed in hexadecimal format

difficulty
string

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

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

The block hash of the requested block. null if pending

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

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

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

totalDifficulty
string

The integer of the total difficulty of the chain until this block encoded as a hexadecimal

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

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"author": "0xd5502690fcc4f2a60930d9a6543373051b5c0da6",
5
"baseFeePerGas": "0x174876e800",
6
"difficulty": "0x0",
7
"extraData": "0x",
8
"gasLimit": "0x3938700",
9
"gasUsed": "0x6bd2c",
10
"hash": "0x4d7369d18a0e9910f37043384be84e06acf0e514e563518a9eeaef0fa8f98ad4",
11
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
12
"miner": "0xd5502690fcc4f2a60930d9a6543373051b5c0da6",
13
"nonce": "0x0000000000000000",
14
"number": "0x394bfd",
15
"parentHash": "0x642d25f3991e6f0b035cb33c0376d9315a7166de68783b73a08202f7d2dd8253",
16
"receiptsRoot": "0x440971d9b616d65e0b68f249ffae4f28bc99b93564370ebcf2b9278d94c12bec",
17
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
18
"size": "0xce3",
19
"stateRoot": "0x18b3687b4ff6b4c0c1fcc26da89c373862f1ab311fee77848fd10f03d15aa5a0",
20
"timestamp": "0x679cd1de",
21
"totalDifficulty": "0x0",
22
"transactions": [
23
"0x5ec2a2868ecf6497bea7a36fdb2aaf5e1d7488e4a966440af14e4f636d7f23e0",
24
"0x8346cd797aa04455cf6aee6d9964729bb78911fda7d931abedbe4c06edb5479d",
25
"0x12557bbc4aeca23f1c9a2d351498f92a88137c28c545adf5374e4c6531ed3e5d",
26
"0x20c4b4994772d9c81e3432c3af9fc194d1885a019972bc4f46250b0442a97ec4",
27
"0x738b42d5807b6180b4e84b6188a28b5b8c0eaa848892a90cecffc7ea4be1c104",
28
"0x69d603ee42ce260675aba1eb9e8660d20a2afa5b9dc387def9569620563c6b0a",
29
"0x0f783de1659a2e71537df5f7e4ef84e2f89a445b1f7e7d166e13a65f3460d433",
30
"0x3648f73303b6feb5d5a78cec42ded8e277ec7427a33a0472036092ea1d1262a1",
31
"0x834713690a8384a318748168ed589988aec4120ba480f984b2faaff1256b51fe"
32
],
33
"transactionsRoot": "0x192f6175cdc4cdfcf6316a284fd9633754f54d715b6a9dfbd2b0b1cd39e8f0c5",
34
"uncles": []
35
},
36
"id": 1
37
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"author": "0xd5502690fcc4f2a60930d9a6543373051b5c0da6",
5
"baseFeePerGas": "0x174876e800",
6
"difficulty": "0x0",
7
"extraData": "0x",
8
"gasLimit": "0x3938700",
9
"gasUsed": "0x6bd2c",
10
"hash": "0x4d7369d18a0e9910f37043384be84e06acf0e514e563518a9eeaef0fa8f98ad4",
11
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
12
"miner": "0xd5502690fcc4f2a60930d9a6543373051b5c0da6",
13
"nonce": "0x0000000000000000",
14
"number": "0x394bfd",
15
"parentHash": "0x642d25f3991e6f0b035cb33c0376d9315a7166de68783b73a08202f7d2dd8253",
16
"receiptsRoot": "0x440971d9b616d65e0b68f249ffae4f28bc99b93564370ebcf2b9278d94c12bec",
17
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
18
"size": "0xce3",
19
"stateRoot": "0x18b3687b4ff6b4c0c1fcc26da89c373862f1ab311fee77848fd10f03d15aa5a0",
20
"timestamp": "0x679cd1de",
21
"totalDifficulty": "0x0",
22
"transactions": [
23
"0x5ec2a2868ecf6497bea7a36fdb2aaf5e1d7488e4a966440af14e4f636d7f23e0",
24
"0x8346cd797aa04455cf6aee6d9964729bb78911fda7d931abedbe4c06edb5479d",
25
"0x12557bbc4aeca23f1c9a2d351498f92a88137c28c545adf5374e4c6531ed3e5d",
26
"0x20c4b4994772d9c81e3432c3af9fc194d1885a019972bc4f46250b0442a97ec4",
27
"0x738b42d5807b6180b4e84b6188a28b5b8c0eaa848892a90cecffc7ea4be1c104",
28
"0x69d603ee42ce260675aba1eb9e8660d20a2afa5b9dc387def9569620563c6b0a",
29
"0x0f783de1659a2e71537df5f7e4ef84e2f89a445b1f7e7d166e13a65f3460d433",
30
"0x3648f73303b6feb5d5a78cec42ded8e277ec7427a33a0472036092ea1d1262a1",
31
"0x834713690a8384a318748168ed589988aec4120ba480f984b2faaff1256b51fe"
32
],
33
"transactionsRoot": "0x192f6175cdc4cdfcf6316a284fd9633754f54d715b6a9dfbd2b0b1cd39e8f0c5",
34
"uncles": []
35
},
36
"id": 1
37
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free