RPC method

eth_getBlockByNumber on Scroll

Supported on SwiftNodes

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

Header fields21
Transactions per block1, 2, 1, 1, 3 in five consecutive blocks
Response size, full transactions (true)2.5 KB average
Response size, hashes only (false)1.5 KB
Gas limit20,000,000
Gas used in the latest block21,000 (0.105% of the limit)
Base fee120,007 wei
Tag "safe"not served (null)
Tag "finalized"not served (sync L1 finalized batch feature not enabled, cannot query L2 finalized block height)
Tag "pending"block 36,053,328
Tag "earliest"block 0

What is different on Scroll

The header includes the fields added by London (EIP-1559 base fee), but not those of Shanghai (withdrawals), Cancun (EIP-4844 blob gas), Cancun (EIP-4788 beacon root), Prague (EIP-7685 requests). Code that assumes Ethereum's current header shape must treat the missing ones as optional.

The "safe" and "finalized" tags were not served on Scroll. Code that waits for "safe" needs a fallback, such as latest minus a confirmation count.

A real Scroll block header

From block 36,053,324, as our endpoint returned it (long hex values shortened).

{
  "baseFeePerGas": "0x1d4c7",
  "difficulty": "0x1",
  "extraData": "0x",
  "gasLimit": "0x1312d00",
  "gasUsed": "0x5208",
  "hash": "0xb3802f2675ee30cf94ca82e3e55a7ac4afb7bf11fb9881389ef38fb551d9ddc7",
  "logsBloom": "0x0000000000000000…(256 bytes)",
  "miner": "0x0000000000000000000000000000000000000000",
  "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "nonce": "0x0000000000000000",
  "number": "0x226214c",
  "parentHash": "0x8a1cd2ea789b4f2564a28b113d4725a9e84a22caa1610b617845da0d44acf19e",
  "receiptsRoot": "0xf78dfb743fbd92ade140711c8bbc542b5e307f0ab7984eff35d751969fe57efa",
  "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
  "size": "0x2bf",
  "stateRoot": "0x9b7a42438ad859f30600102db346f3939e445d69305f6e6800c3e3daf4d47954",
  "timestamp": "0x6b0bc250",
  "totalDifficulty": "0x309979c",
  "transactions": "1 transactions",
  "transactionsRoot": "0x93ac086bc78673c242d81c6ab2e0b5f11c82db691c44f0b843b8cff15e96fc44",
  "uncles": []
}

Example request

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

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

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

Other methods on Scroll

eth_getBlockByNumber on other chains

Frequently asked questions

Does Scroll support eth_getBlockByNumber?

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

How many transactions are in each Scroll block?

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

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

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