eth_getBlockByNumber on Linea
Everything below was measured on 2026-10-13 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 fields | 26 |
|---|---|
| Transactions per block | 4, 1, 1, 1, 1 in five consecutive blocks |
| Response size, full transactions (true) | 3.6 KB average |
| Response size, hashes only (false) | 2.0 KB |
| Gas limit | 2,000,000,000 |
| Gas used in the latest block | 375,669 (0.019% of the limit) |
| Base fee | 7 wei |
| Tag "safe" | block 32,310,799 |
| Tag "finalized" | block 32,311,940 |
| Tag "pending" | block 32,311,941 |
| 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.
A real Linea block header
From block 32,311,939, as our endpoint returned it (long hex values shortened).
{
"baseFeePerGas": "0x7",
"blobGasUsed": "0x0",
"difficulty": "0x0",
"excessBlobGas": "0x0",
"extraData": "0x0100007530000f42400000a3b000000000000000000000000000000000000000",
"gasLimit": "0x77359400",
"gasUsed": "0x5bb75",
"hash": "0x258e89a25d09f3664ed4392854f598c1347ec3199daa64183deb0984c288b4ab",
"logsBloom": "0x0000000000002000…(256 bytes)",
"miner": "0xfd5fb23e06e46347d8724486cdb681507592e237",
"mixHash": "0x0b49771effc43cd0d61118dbcde5204fec62b50e4c9c1606390142b0a97b9401",
"nonce": "0x0000000000000000",
"number": "0x1ed0a83",
"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash": "0xd720951da4fea89a509abc522971172a23d872decb7782cc3be9d97f7762d82b",
"receiptsRoot": "0xf37cf84890f17164c56f39d9ddddc9944c5d8c6ee547f3d09d3c83aea4c7ddc1",
"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x87c",
"stateRoot": "0x25c7c439bd700b021909d70aea7f57b0168c78fdbce80abb0cf39c22a9aa0363",
"timestamp": "0x6ace24e8",
"transactions": "4 transactions",
"transactionsRoot": "0xb84e4d0e8b77a212b15922927d5f502cc8a51a165e7eb39d93b625a6ce525754",
"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 (2.0 KB)
const block = await client.getBlock({ blockTag: "latest" });
// With full transactions (3.6 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_blockNumberSupported
- eth_chainIdSupported
- eth_getBalanceSupported
- eth_getTransactionByHashSupported
- eth_getTransactionReceiptSupported
- eth_callSupported
- eth_estimateGasSupported
- eth_gasPriceSupported
- eth_maxPriorityFeePerGasSupported
- eth_sendRawTransactionSupported
- eth_getTransactionCountSupported
- eth_getCodeSupported
- eth_subscribeSupported
- eth_getLogsSupported
- eth_getBlockReceiptsSupported
- eth_feeHistorySupported
- eth_getProofSupported
- eth_createAccessListSupported
- debug_traceCallSupported
- trace_blockSupported
- trace_transactionSupported
eth_getBlockByNumber on other chains
- Ethereum
- Base
- Arbitrum
- Optimism
- Polygon
- BNB Smart Chain
- Avalanche
- Sonic
- Scroll
- zkSync Era
- Blast
- Mantle
- Gnosis
- Celo
- Berachain
- Monad
- Unichain
- Kaia
- PulseChain
- World Chain
- Ronin
- Abstract
- ApeChain
- MegaETH
- Fantom
- Lisk
- Hemi
- X Layer
- BOB
- Plasma
- Fraxtal
- Zora
- Story
- Soneium
- Sei
- Hyperliquid
- Taiko
- Morph
- Ink
- Katana
- Ethereum Classic
- opBNB
- Mode
- Flare
- Core
- Chiliz
- Telos EVM
- Tempo
- Cronos
- Manta Pacific
- Shibarium
- Boba Network
- Arbitrum Nova
- Immutable zkEVM
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-10-13).
How many transactions are in each Linea block?
In five consecutive blocks on 2026-10-13: 4, 1, 1, 1, 1.
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.