RPC method

eth_getBlockByNumber on Mode

Supported on SwiftNodes

Everything below was measured on 2026-10-13 by calling eth_getBlockByNumber on Mode through the same endpoint customers use, and is re-measured weekly.

What eth_getBlockByNumber does

Returns a block by number or tag (latest, safe, finalized, pending, earliest): the header, and either the transaction hashes or the full transactions. Indexers, explorers and wallets use it to follow the chain.

eth_getBlockByNumber on Mode: what we measured

Header fields26
Transactions per block4, 4, 4, 4, 4 in five consecutive blocks
Response size, full transactions (true)5.5 KB average
Response size, hashes only (false)2.0 KB
Gas limit30,000,000
Gas used in the latest block196,081 (0.654% of the limit)
Base fee252 wei
Tag "safe"block 45,863,541
Tag "finalized"block 45,863,541
Tag "pending"block 45,864,091
Tag "earliest"block 0

What is different on Mode

The header includes the fields added by London (EIP-1559 base fee), Shanghai (withdrawals), Cancun (EIP-4844 blob gas), Cancun (EIP-4788 beacon root), Prague (EIP-7685 requests). Code that assumes Ethereum's current header shape will parse it as is.

Asking for full transactions (second parameter true) made the response 2.8 times larger than hashes only. If you need only some transactions, fetch hashes and request those transactions or their receipts individually.

5 of the 20 transactions in those five blocks were system transactions (5 × type 0x7e, L1-to-L2 deposit (OP Stack)). They are not user activity: filter them out when counting transactions.

"finalized" was 546 blocks (about 18 min) behind the head.

A real Mode block header

From block 45,864,086, as our endpoint returned it (long hex values shortened).

{
  "baseFeePerGas": "0xfc",
  "blobGasUsed": "0x29360",
  "difficulty": "0x0",
  "excessBlobGas": "0x0",
  "extraData": "0x01000000fa000000060000000000000000",
  "gasLimit": "0x1c9c380",
  "gasUsed": "0x2fdf1",
  "hash": "0x229491daaadc0dc760556fdecbc027ab77971e5bde1e8d64693acaef8aac62ff",
  "logsBloom": "0x0000000000000000…(256 bytes)",
  "miner": "0x4200000000000000000000000000000000000011",
  "mixHash": "0x893f827fedd987ed4236b7361bb7858f499ef3e5f7fedaa1d4a1e6d8cc84b13f",
  "nonce": "0x0000000000000000",
  "number": "0x2bbd496",
  "parentBeaconBlockRoot": "0x4132b2bffe198357e647acaf184570ae6e2e030e133486b7f71f9d9b52d78f8c",
  "parentHash": "0xc5721179812d3064f91588c50c5980388fc0aef6c40f7345b693237d76fc24f7",
  "receiptsRoot": "0x2f09718fdb316046aea64197f4d6444a80cb9481bbafc63878b3f40e63212525",
  "requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
  "size": "0x680",
  "stateRoot": "0x5ce8d1a8278e5798f27254ba92027fc1611a40f9d2818bb953374c807447d1d8",
  "timestamp": "0x6ace28cb",
  "transactions": "4 transactions",
  "transactionsRoot": "0xb5317fb448f0091354a626183b283381578c2b23978c066c457fbe1249d23808",
  "uncles": [],
  "withdrawals": [],
  "withdrawalsRoot": "0x44c370d0f6f4c9a87c100971e99b8eac05c6f79c89b3f689b110b8be45ad6194"
}

Example request

curl -s https://rpc.swiftnodes.io/rpc/mode?key=YOUR_API_KEY \
  -X POST -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_getBlockByNumber","params":["latest",false]}'
import { createPublicClient, http } from "viem";

const client = createPublicClient({
  transport: http("https://rpc.swiftnodes.io/rpc/mode?key=YOUR_API_KEY"),
});

// Header plus transaction hashes (2.0 KB)
const block = await client.getBlock({ blockTag: "latest" });

// With full transactions (5.5 KB on average on Mode)
const full = await client.getBlock({ blockNumber: block.number, includeTransactions: true });
const userTxs = full.transactions.filter((t) => !["0x7e"].includes(t.typeHex));

// A block that will not be reorganised
const final = await client.getBlock({ blockTag: "finalized" });

Other methods on Mode

eth_getBlockByNumber on other chains

Frequently asked questions

Does Mode support eth_getBlockByNumber?

Yes. eth_getBlockByNumber answered on the SwiftNodes Mode endpoint when our weekly probe called it through the customer path (2026-10-13).

How many transactions are in each Mode block?

In five consecutive blocks on 2026-10-13: 4, 4, 4, 4, 4.

Mode endpoints, live block height and WebSocket status are on the Mode RPC page.

One key covers every chain we serve, and SwiftNodes has a free tier.