Skip to main content

eth_getBlockByNumber Flashblock RPC Method

Returns information of the block matching the given block number.

Updated on
Jan 21, 2026

Parameters

tag
string
REQUIRED

Use the pending tag to retrieve the latest Flashblock

transaction detail flag
boolean
REQUIRED

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. The block object contains the following fields:

hash
string

The block hash of the requested block. null if pending

parentHash
string

The hash of the parent block

parentBeaconBlockRoot
string

The parent beacon block root for this 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

requestsHash
string

The hash of the execution requests for this 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 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

(Optional) A string of the base fee encoded in hexadecimal format. This field is omitted for blocks before the EIP-1559 upgrade

withdrawalsRoot
string

The root hash of the withdrawals data for the block

withdrawals
array

An array of withdrawal objects for this block.

blobGasUsed
string

The amount of blob gas used in the block (EIP-4844)

excessBlobGas
string

The excess blob gas carried over from the previous block (EIP-4844)

uncles
array

An array of uncle hashes

transactions
array

An array of transaction objects or transaction hashes

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