RPC method

eth_getBlockByNumber on Story

Supported on SwiftNodes

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

Header fields26
Transactions per block5, 2, 5, 3, 3 in five consecutive blocks
Response size, full transactions (true)45.2 KB average
Response size, hashes only (false)2.3 KB
Gas limit36,000,000
Gas used in the latest block18,580,729 (51.6% of the limit)
Base fee41.48 gwei
Tag "safe"block 25,130,313
Tag "finalized"block 25,130,314
Tag "pending"block 25,130,315
Tag "earliest"block 0

What is different on Story

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

A real Story block header

From block 25,130,311, as our endpoint returned it (long hex values shortened).

{
  "baseFeePerGas": "0x9a8745708",
  "blobGasUsed": "0x0",
  "difficulty": "0x0",
  "excessBlobGas": "0x0",
  "extraData": "0xd883010203846765746888676f312e32342e30856c696e7578",
  "gasLimit": "0x2255100",
  "gasUsed": "0x11b84f9",
  "hash": "0x708c57858ac9a71a0dd8b40e15817cac95925f515604f22cefa3e3cb8d10bd71",
  "logsBloom": "0x0a1420204c048201…(256 bytes)",
  "miner": "0x0cec190e690f9fecfd076ef639e20f96969a4667",
  "mixHash": "0x5f2a65f8151d63bcc9690b3d1c14bde06722947fea217ccf036485cfa0d8a575",
  "nonce": "0x0000000000000000",
  "number": "0x17f7547",
  "parentBeaconBlockRoot": "0x59937d0c86422d41b6b2df6ad6fef68bb651e8379911483f0cbda5bd3566b858",
  "parentHash": "0x5f2a65f8151d63bcc9690b3d1c14bde06722947fea217ccf036485cfa0d8a575",
  "receiptsRoot": "0x08f7f74156913c4c05bc5c911ab601aff871d58e393b17de113dfea116f58add",
  "requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
  "size": "0x7705",
  "stateRoot": "0xabc147737d8af721577503ea3b647d7dffc7fad96ad093f6c840c64258fe450f",
  "timestamp": "0x6b0bc3c6",
  "transactions": "5 transactions",
  "transactionsRoot": "0xb64809f4d3a5cf7eac76ae6944c87e1131caa229ff496cb8849e284f7515fa44",
  "uncles": [],
  "withdrawals": [
    {
      "index": "0x421102",
      "validatorIndex": "0x1",
      "address": "0xdd8dcf28fea93d103e7f1b925325ba32686c64d2",
      "amount": "0x1e6a7178a"
    },
    {
      "index": "0x421103",
      "validatorIndex": "0x1",
      "address": "0xa55256c7a140c15150921d8d416387d61f1aff61",
      "amount": "0x1e09dcb77"
    }
  ],
  "withdrawalsRoot": "0x06f16c1ea284bcdb1ed527a774a4b3542800028e2c43b961f45b90c77633fa05"
}

Example request

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

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

// With full transactions (45.2 KB on average on Story)
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 Story

eth_getBlockByNumber on other chains

Frequently asked questions

Does Story support eth_getBlockByNumber?

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

How many transactions are in each Story block?

In five consecutive blocks on 2026-11-29: 5, 2, 5, 3, 3.

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

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