Skip to main content

eth_getBlockByNumber RPC Method

Returns information of the block matching the given block number.

Updated on
Mar 27, 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

hash
string

The block hash of the requested block. null if pending

parentHash
string

The hash of the parent block

sha3Uncles
string

The SHA3 of the uncles data in the block

miner
string

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

stateRoot
string

The root of the final state trie of the block

transactionsRoot
string

The root of the transaction trie of the block

receiptsRoot
string

The root of the receipts trie of the block

logsBloom
string

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

difficulty
string

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

number
string

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

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

timestamp
string

The unix timestamp for when the block was collated

extraData
string

The extra data field of this block

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

baseFeePerGas
string

The base fee per gas in the block encoded in hexadecimal format (EIP-1559)

withdrawalsRoot
string

The root of the withdrawals trie of the block (EIP-4895)

blobGasUsed
string

The total amount of blob gas consumed by transactions in the block encoded as hexadecimal (EIP-4844)

excessBlobGas
string

The running total of blob gas consumed in excess of the target encoded as hexadecimal (EIP-4844)

parentBeaconBlockRoot
string

The root of the parent beacon block (EIP-4788)

size
string

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

uncles
array

An array of uncle hashes

transactions
array

An array of transaction hashes or transaction objects depending on the transaction detail flag

withdrawals
array

An array of withdrawal objects (EIP-4895)

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"hash": "0xc5b63625a0ffac7c4553eccccbacc4d7672ea3f191603ba894e8d9606dbd68ff",
6
"parentHash": "0xe9e6707564cd49fe306f074e0b6e0c1354265ba69c565002daaa98c69c0af790",
7
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
8
"miner": "0x30dd0fb2d8376b398b81b21e08f62c7cc9dea4d8",
9
"stateRoot": "0x9356919fb3142eb078f2222d7d0245074d909ee9e216201891321d987afe204f",
10
"transactionsRoot": "0x3e4c448ad8c1f5ecf06b3ab87c03b24d567cd7323efe990c1fbf31e68f100ffc",
11
"receiptsRoot": "0x7af8a23319b614e0905b542b826c2921da7af5ca058d129410af724da6f84c75",
12
"logsBloom": "0x00001000000002000000000000000000002000000040000000000000000000008000000000000000000000000100000000100000000401800000000000000010200010000000000000000008000000000800000000000000000000000000000001008000000000000004000200000000000000000000000000000012000000000000800400008000000000000000000400000080020200000000080000000000000000000002000000000000008000000000802000100000000000080002000000000002004000000000000000000000000000001000000000000000000000000001000000000000000000000000000000020000000000000000000000000000",
13
"difficulty": "0x6a1fab938d7768917b9729890880b163f23421402e57b9b72ace0fb2350aec6f",
14
"number": "0x100000",
15
"gasLimit": "0x3b9aca00",
16
"gasUsed": "0x292c0",
17
"timestamp": "0x6a0fdd04",
18
"extraData": "0x",
19
"mixHash": "0x6a1fab938d7768917b9729890880b163f23421402e57b9b72ace0fb2350aec6f",
20
"nonce": "0x0000000000000000",
21
"baseFeePerGas": "0xba43b7400",
22
"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
23
"blobGasUsed": "0x0",
24
"excessBlobGas": "0x0",
25
"parentBeaconBlockRoot": "0xb6d28123f3b732f2892f2000bfc1c98702d08593a8d16a8808212ee896285e8a",
26
"size": "0x3db",
27
"uncles": [],
28
"transactions": [
29
"0x091bd81bdfa55c663c48be7b4412d10f6533acbccac7beb43cdd7a8d3c945afc",
30
"0xb0b276823f1c86213ea8f0c04471cd126392d4c9c4a536940c2bf4f3764c628f"
31
],
32
"withdrawals": []
33
}
34
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"hash": "0xc5b63625a0ffac7c4553eccccbacc4d7672ea3f191603ba894e8d9606dbd68ff",
6
"parentHash": "0xe9e6707564cd49fe306f074e0b6e0c1354265ba69c565002daaa98c69c0af790",
7
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
8
"miner": "0x30dd0fb2d8376b398b81b21e08f62c7cc9dea4d8",
9
"stateRoot": "0x9356919fb3142eb078f2222d7d0245074d909ee9e216201891321d987afe204f",
10
"transactionsRoot": "0x3e4c448ad8c1f5ecf06b3ab87c03b24d567cd7323efe990c1fbf31e68f100ffc",
11
"receiptsRoot": "0x7af8a23319b614e0905b542b826c2921da7af5ca058d129410af724da6f84c75",
12
"logsBloom": "0x00001000000002000000000000000000002000000040000000000000000000008000000000000000000000000100000000100000000401800000000000000010200010000000000000000008000000000800000000000000000000000000000001008000000000000004000200000000000000000000000000000012000000000000800400008000000000000000000400000080020200000000080000000000000000000002000000000000008000000000802000100000000000080002000000000002004000000000000000000000000000001000000000000000000000000001000000000000000000000000000000020000000000000000000000000000",
13
"difficulty": "0x6a1fab938d7768917b9729890880b163f23421402e57b9b72ace0fb2350aec6f",
14
"number": "0x100000",
15
"gasLimit": "0x3b9aca00",
16
"gasUsed": "0x292c0",
17
"timestamp": "0x6a0fdd04",
18
"extraData": "0x",
19
"mixHash": "0x6a1fab938d7768917b9729890880b163f23421402e57b9b72ace0fb2350aec6f",
20
"nonce": "0x0000000000000000",
21
"baseFeePerGas": "0xba43b7400",
22
"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
23
"blobGasUsed": "0x0",
24
"excessBlobGas": "0x0",
25
"parentBeaconBlockRoot": "0xb6d28123f3b732f2892f2000bfc1c98702d08593a8d16a8808212ee896285e8a",
26
"size": "0x3db",
27
"uncles": [],
28
"transactions": [
29
"0x091bd81bdfa55c663c48be7b4412d10f6533acbccac7beb43cdd7a8d3c945afc",
30
"0xb0b276823f1c86213ea8f0c04471cd126392d4c9c4a536940c2bf4f3764c628f"
31
],
32
"withdrawals": []
33
}
34
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free