Skip to main content

eth_getBlockByNumber RPC Method

Returns information of the block matching the given block number.

Updated on
Dec 02, 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

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:

baseFeePerGas
string

(Optional) A string of the base fee encoded in hexadecimal format. Please note that this response field will not be included in a block requested before the EIP-1559 upgrade

blobGasUsed
string

The amount of gas used by the blob

dependencyHeight
string

The height of the dependency block referenced by this Zero block, encoded as a hexadecimal quantity.

dependencyRoot
string

The root hash of the dependency data referenced by this Zero block.

difficulty
string

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

excessBlobGas
string

The excess gas used by the blob

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

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

parentBeaconBlockRoot
string

The root of the parent beacon block in hexadecimal format

parentHash
string

The hash of the parent block

parentStateRoot
string

The state root of the parent block, before this block's transactions are applied.

receiptsRoot
string

The root of the receipts trie of the block

requestsHash
string

The hash of the requests in the block. Present after the Pectra upgrade

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

transactions
string | object

With the full transaction objects flag set to false (the default), an array of transaction hashes. When true, an array of transaction objects.

type
string

The transaction type

chainId
string

(Conditional) The chain ID of the transaction, encoded as hexadecimal

nonce
string

The number of transactions made by the sender prior to this one encoded as hexadecimal

gasPrice
string

(Conditional) The gas price provided by the sender in wei, encoded as hexadecimal

maxFeePerGas
string

(Type 2) Maximum total fee per gas, encoded as a hexadecimal quantity.

maxPriorityFeePerGas
string

(Type 2) Maximum priority fee per gas, encoded as a hexadecimal quantity.

gas
string

The gas provided by the sender, encoded as hexadecimal

to
string

The address of the receiver. null when it's a contract creation transaction

value
string

The value transferred in wei encoded as hexadecimal

accessList
array

(Type 2) Addresses and storage keys the transaction can access.

input
string

The data sent along with the transaction

r
string

The R field of the signature

s
string

The S field of the signature

yParity
string

(Type 2) Parity of the transaction signature, encoded as a hexadecimal quantity.

v
string

The standardized V field of the signature

hash
string

The hash of the transaction

blockHash
string

The hash of the block where this log was in. null when it's a pending log

blockNumber
string

The block number where this log was in. null when it's a pending log

transactionIndex
string

The integer of the transaction's index position that the log was created from. null when it's a pending log

from
string

The address of the sender

transactionsRoot
string

The root of the transaction trie of the block

uncles
array

An array of uncle hashes

withdrawals
array

A withdrawals object contains information about withdrawals made by validators. Please note that this field will not be included in a block requested before the EIP-4895 upgrade

withdrawalsRoot
string

The Merkle root of withdrawal data. Also, please note that this field will not be included in a block requested before the EIP-4895 upgrade

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"baseFeePerGas": "0x7",
6
"blobGasUsed": "0x0",
7
"dependencyHeight": "0x0",
8
"dependencyRoot": "0xbf9249c2cbe81ff02ea2d20a8ab2e063c0e1643d67b2e7fff0ee28ffcac81673",
9
"difficulty": "0x0",
10
"excessBlobGas": "0x0",
11
"extraData": "0x",
12
"gasLimit": "0x3fe56c0",
13
"gasUsed": "0x5208",
14
"hash": "0x2d763c650659c5bbf26036448657667c8b32ebc2d18170c0320efc2895bb7436",
15
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
16
"miner": "0x0000000000000000000000000000000000000000",
17
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
18
"nonce": "0x0000000000000000",
19
"number": "0x1",
20
"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
21
"parentHash": "0xd6156febaf48fa02d7d95e698744c35f270ef93cce67b4b5976a63db372c03f1",
22
"parentStateRoot": "0x6417262f1b819c440aee7abe6298a25c2c1c17bbe84768a24e05962daec69f95",
23
"receiptsRoot": "0x193c29193ffe6ac3ccc5708de59b43c4e0e8f320726c8f623b9d5393cf6cbf56",
24
"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
25
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
26
"size": "0x316",
27
"stateRoot": "0xa40cc7dc1a16cc479fae34ca26411bcbfd26a06558fd58c0d4c97d90a10464ff",
28
"timestamp": "0x6afbdf43",
29
"transactions": [
30
"0xf5147a7a6a529e960da4d43391ef148ed914e7eca5400fbb2d4d153d038fcebf"
31
],
32
"transactionsRoot": "0x44f4b62b594f0b4df396531118e4b2ea7e96bc9f992d46b20aa1d9244409bd2d",
33
"uncles": [],
34
"withdrawals": [],
35
"withdrawalsRoot": "0x61698e04867f7040ff0eb975461e3cb43ce69bdfd2c303056acb7b8533f760ff"
36
}
37
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"baseFeePerGas": "0x7",
6
"blobGasUsed": "0x0",
7
"dependencyHeight": "0x0",
8
"dependencyRoot": "0xbf9249c2cbe81ff02ea2d20a8ab2e063c0e1643d67b2e7fff0ee28ffcac81673",
9
"difficulty": "0x0",
10
"excessBlobGas": "0x0",
11
"extraData": "0x",
12
"gasLimit": "0x3fe56c0",
13
"gasUsed": "0x5208",
14
"hash": "0x2d763c650659c5bbf26036448657667c8b32ebc2d18170c0320efc2895bb7436",
15
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
16
"miner": "0x0000000000000000000000000000000000000000",
17
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
18
"nonce": "0x0000000000000000",
19
"number": "0x1",
20
"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
21
"parentHash": "0xd6156febaf48fa02d7d95e698744c35f270ef93cce67b4b5976a63db372c03f1",
22
"parentStateRoot": "0x6417262f1b819c440aee7abe6298a25c2c1c17bbe84768a24e05962daec69f95",
23
"receiptsRoot": "0x193c29193ffe6ac3ccc5708de59b43c4e0e8f320726c8f623b9d5393cf6cbf56",
24
"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
25
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
26
"size": "0x316",
27
"stateRoot": "0xa40cc7dc1a16cc479fae34ca26411bcbfd26a06558fd58c0d4c97d90a10464ff",
28
"timestamp": "0x6afbdf43",
29
"transactions": [
30
"0xf5147a7a6a529e960da4d43391ef148ed914e7eca5400fbb2d4d153d038fcebf"
31
],
32
"transactionsRoot": "0x44f4b62b594f0b4df396531118e4b2ea7e96bc9f992d46b20aa1d9244409bd2d",
33
"uncles": [],
34
"withdrawals": [],
35
"withdrawalsRoot": "0x61698e04867f7040ff0eb975461e3cb43ce69bdfd2c303056acb7b8533f760ff"
36
}
37
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free