RPC method

eth_getBlockByNumber on Mode

Supported on SwiftNodes

Everything below was measured on 2026-11-29 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 block1, 1, 1, 1, 1 in five consecutive blocks
Response size, full transactions (true)2.7 KB average
Response size, hashes only (false)1.8 KB
Gas limit30,000,000
Gas used in the latest block46,230 (0.154% of the limit)
Base fee252 wei
Tag "safe"block 47,882,386
Tag "finalized"block 47,882,386
Tag "pending"block 47,883,002
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.

5 of the 5 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 614 blocks (about 20 min) behind the head.

A real Mode block header

From block 47,882,997, as our endpoint returned it (long hex values shortened).

{
  "hash": "0x687bf31efe549a82dd353d7d28c7d592bfc0614df37f91f8bdfce7854a9171a5",
  "parentHash": "0x553b74520bf6e418f4d4294ee8cd6e78562d99c904a9e20058583506369f61df",
  "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
  "miner": "0x4200000000000000000000000000000000000011",
  "stateRoot": "0xbd0e181357bc6f4a0d06c894843ffcfddecec1b15128fc4ac9256ff6505bc5dd",
  "transactionsRoot": "0x673c91e52bc039be7f2c98d27952635927f73a2630d976ffaa71088f36ba036d",
  "receiptsRoot": "0x17b7639a6f6dce0f4735e969053c7fe41c12d7ce7d85ae87ea489a7472ac2684",
  "logsBloom": "0x0000000000000000…(256 bytes)",
  "difficulty": "0x0",
  "number": "0x2daa2f5",
  "gasLimit": "0x1c9c380",
  "gasUsed": "0xb496",
  "timestamp": "0x6b0bc589",
  "extraData": "0x01000000fa000000060000000000000000",
  "mixHash": "0x3c2f413949544a48931879f715ada666304932352a59b6e68857e1dfe82aed48",
  "nonce": "0x0000000000000000",
  "baseFeePerGas": "0xfc",
  "withdrawalsRoot": "0x65f44c550c174ec2037d7d2b2b74cbc3c408e4ebea23adf9d1d65d2d9ed620f1",
  "blobGasUsed": "0x0",
  "excessBlobGas": "0x0",
  "parentBeaconBlockRoot": "0x8aeb69fae05d134e8aea2f4d0563143bd72ea6adbefc221190c91a3d4f80a219",
  "requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "size": "0x38b",
  "uncles": [],
  "transactions": "1 transactions",
  "withdrawals": []
}

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 (1.8 KB)
const block = await client.getBlock({ blockTag: "latest" });

// With full transactions (2.7 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-11-29).

How many transactions are in each Mode block?

In five consecutive blocks on 2026-11-29: 1, 1, 1, 1, 1.

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.