RPC method

eth_getBlockByNumber on Linea

Supported on SwiftNodes

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

Header fields26
Transactions per block1, 1, 1, 1, 2 in five consecutive blocks
Response size, full transactions (true)4.4 KB average
Response size, hashes only (false)1.8 KB
Gas limit2,000,000,000
Gas used in the latest block272,314 (0.014% of the limit)
Base fee7 wei
Tag "safe"block 32,739,621
Tag "finalized"block 32,739,621
Tag "pending"block 32,739,622
Tag "earliest"block 0

What is different on Linea

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

A real Linea block header

From block 32,739,620, as our endpoint returned it (long hex values shortened).

{
  "baseFeePerGas": "0x7",
  "blobGasUsed": "0x0",
  "difficulty": "0x0",
  "excessBlobGas": "0x0",
  "extraData": "0x0100007530000f42400000a3b000000000000000000000000000000000000000",
  "gasLimit": "0x77359400",
  "gasUsed": "0x427ba",
  "hash": "0x5270150911f3f961b3bd0422f5c21d4b4cbbcf27337e5941eed7bd2560d4715c",
  "logsBloom": "0x0002041000000000…(256 bytes)",
  "miner": "0xfd5fb23e06e46347d8724486cdb681507592e237",
  "mixHash": "0xd392046f913dcf3faa5df3127a6f962e5e364729f4ebd689f06f3ccf67c11e76",
  "nonce": "0x0000000000000000",
  "number": "0x1f39124",
  "parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "parentHash": "0x59a893e2dd0d2c20009c2d3b3e928bed14b69ce7f6621e05e2490a9cc491761d",
  "receiptsRoot": "0x9e91e3addb953ce4704a6ca1d00bddf5ad74968ac0ebd5e0818aaaae4bed6dd9",
  "requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
  "size": "0x727",
  "stateRoot": "0xe9c9e55bbe75b8313743f36109f915271de66ca4cba4247b829c9f1345dfe2d3",
  "timestamp": "0x6b0bc20a",
  "transactions": "1 transactions",
  "transactionsRoot": "0xd4950715b1ffcabc32bc8ac071a05afa9ff24c4ed2fe6c9c6d1503065c0cd626",
  "uncles": [],
  "withdrawals": [],
  "withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
}

Example request

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

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

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

eth_getBlockByNumber on other chains

Frequently asked questions

Does Linea support eth_getBlockByNumber?

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

How many transactions are in each Linea block?

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

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

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