RPC method

eth_getBlockByNumber on Ethereum

Supported on SwiftNodes

Everything below was measured on 2026-11-29 by calling eth_getBlockByNumber on Ethereum 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 Ethereum: what we measured

Header fields26
Transactions per block112, 156, 136, 166, 127 in five consecutive blocks
Response size, full transactions (true)345.8 KB average
Response size, hashes only (false)11.2 KB
Gas limit59,941,408
Gas used in the latest block27,008,399 (45.1% of the limit)
Base fee0.0514 gwei
Tag "safe"block 26,518,922
Tag "finalized"block 26,518,890
Tag "pending"block 26,518,977
Tag "earliest"block 0

What is different on Ethereum

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 30.8 times larger than hashes only. If you need only some transactions, fetch hashes and request those transactions or their receipts individually.

"finalized" was 87 blocks (about 17 min) behind the head.

A real Ethereum block header

From block 26,518,976, as our endpoint returned it (long hex values shortened).

{
  "baseFeePerGas": "0x3106af2",
  "blobGasUsed": "0x0",
  "difficulty": "0x0",
  "excessBlobGas": "0xa69a485",
  "extraData": "0x626f6d626f72612e6275696c6420f09f8c8a",
  "gasLimit": "0x392a220",
  "gasUsed": "0x19c1d8f",
  "hash": "0xdd0cf31ebc4e5e12ec28dd6f96e601c96309044fdc254fa4e01c4650f2a193e7",
  "logsBloom": "0xfffff7fff7ffffff…(256 bytes)",
  "miner": "0x85c2e985a4fb5c3ff25ee27ee424abd851e4cb33",
  "mixHash": "0x46a7f622302e2b249a8e903d8d101cbf68c3cf4028a4ffa612404c186073c293",
  "nonce": "0x0000000000000000",
  "number": "0x194a5c0",
  "parentBeaconBlockRoot": "0x7ba9c2daa8508a984cf64d4746069aa641ab6e1f579dd69d98943bb108ad902e",
  "parentHash": "0x5df798f2b1a3ed621e06ef14084eae588c264018c2c126633fb1a672d3cc59af",
  "receiptsRoot": "0x5a5e739219d2a9371c4f939886ed880a82c638de3e4602b966b49fbd2aa5d65d",
  "requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
  "size": "0x30ae8",
  "stateRoot": "0x47576e95c1ab9c1aed41d86702d423f7ee13d07303b914ef30210f08b071b4b2",
  "timestamp": "0x6b0bbf5f",
  "transactions": "112 transactions",
  "transactionsRoot": "0x43c55b2cc36d804191cd0654fe721656e10fbd570af5fd9e22ca51693c9a1387",
  "uncles": [],
  "withdrawals": [
    {
      "index": "0x90b6eeb",
      "validatorIndex": "0x212aa0",
      "address": "0x6be457e04092b28865e0cba84e3b2cfa0f871e67",
      "amount": "0xb7d8f7"
    },
    {
      "index": "0x90b6eec",
      "validatorIndex": "0x212aa1",
      "address": "0x6be457e04092b28865e0cba84e3b2cfa0f871e67",
      "amount": "0xb800f2"
    },
    "…14 more"
  ],
  "withdrawalsRoot": "0x6ac63fed10e934ac05045047f715907d91577bd799c5a1673452ea9a17ea821b"
}

Example request

curl -s https://rpc.swiftnodes.io/rpc/eth?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/eth?key=YOUR_API_KEY"),
});

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

// With full transactions (345.8 KB on average on Ethereum)
const full = await client.getBlock({ blockNumber: block.number, includeTransactions: true });

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

Other methods on Ethereum

eth_getBlockByNumber on other chains

Frequently asked questions

Does Ethereum support eth_getBlockByNumber?

Yes. eth_getBlockByNumber answered on the SwiftNodes Ethereum endpoint when our weekly probe called it through the customer path (2026-11-29).

How many transactions are in each Ethereum block?

In five consecutive blocks on 2026-11-29: 112, 156, 136, 166, 127.

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

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