eth_getBlockByNumber on Berachain
Everything below was measured on 2026-11-29 by calling eth_getBlockByNumber on Berachain 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 Berachain: what we measured
| Header fields | 27 (1 beyond the Ethereum set) |
|---|---|
| Transactions per block | 3, 4, 3, 2, 3 in five consecutive blocks |
| Response size, full transactions (true) | 4.3 KB average |
| Response size, hashes only (false) | 2.2 KB |
| Gas limit | 36,000,000 |
| Gas used in the latest block | 215,094 (0.597% of the limit) |
| Base fee | 1.00 gwei |
| Tag "safe" | block 29,459,064 |
| Tag "finalized" | block 29,459,065 |
| Tag "pending" | block 29,459,067 |
| Tag "earliest" | block 0 |
What is different on Berachain
Berachain blocks carry a field that Ethereum blocks do not. parentProposerPubkey: specific to this chain's node software, not part of the Ethereum JSON-RPC specification. Strict schema validators need to allow it.
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.
5 of the 15 transactions in those five blocks were system transactions (5 × type 0x7e, L1-to-L2 deposit (OP Stack)). They are not user activity: filter them out when counting transactions.
A real Berachain block header
From block 29,459,063, as our endpoint returned it (long hex values shortened).
{
"hash": "0x2a05d0c8cf1ab366026819fa9f8d5082c1e861140fc09c06d7315fa10fbce422",
"parentHash": "0x7027408cd2747802a42fe2e0837789ed1354b915ff678aef1adfa1411fecca60",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"miner": "0xabb6ae16be4b0e5c813bc6a6c4b94cc61f2177c2",
"stateRoot": "0xd30904d8e2cf26c5c09d218b19fd9580ad2a061e6a194c3805054909249de347",
"transactionsRoot": "0xd02407e6167c2d3dead53f277563ba5aa2866e737f449e82da12caf80a1af10e",
"receiptsRoot": "0xfd1a93ead0918f7fe18f6a63c4a37ab4ba28a12cc40ba11bb52f22b5fde32a71",
"withdrawalsRoot": "0xdb6ea1b4f38c2f3879628b83a10f587af9edc797eebce0bb5816280a8be8efae",
"logsBloom": "0x0000081000000200…(256 bytes)",
"difficulty": "0x0",
"number": "0x1c18277",
"gasLimit": "0x2255100",
"gasUsed": "0x34836",
"timestamp": "0x6b0bc2aa",
"mixHash": "0xb3e2923b586924b1d9d6babb5b61ef624e3f42ac513e2c910321e1d3c7a43a7a",
"nonce": "0x0000000000000000",
"baseFeePerGas": "0x3b9aca00",
"blobGasUsed": "0x0",
"excessBlobGas": "0x0",
"parentBeaconBlockRoot": "0xba5dc50e44ea837c808bd409284efad3fb24e74bf9bdf9ad738b0efce1f234bf",
"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"parentProposerPubkey": "0xae0aef4cd8bbff8c…(48 bytes)",
"extraData": "0x626572612d726574682f76312e342e352f6c696e7578",
"size": "0x4dc",
"uncles": [],
"transactions": "3 transactions",
"withdrawals": [
{
"index": "0xffffffffffffffff",
"validatorIndex": "0xffffffffffffffff",
"address": "0x1ae7dd7ae06f6c58b4524d9c1f816094b1bccd8e",
"amount": "0x65a03c40"
}
]
}Example request
curl -s https://rpc.swiftnodes.io/rpc/berachain?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/berachain?key=YOUR_API_KEY"),
});
// Header plus transaction hashes (2.2 KB)
const block = await client.getBlock({ blockTag: "latest" });
// With full transactions (4.3 KB on average on Berachain)
const full = await client.getBlock({ blockNumber: block.number, includeTransactions: true });
const userTxs = full.transactions.filter((t) => !["0x7e"].includes(t.typeHex));
// A block that will not be reorganised
const final = await client.getBlock({ blockTag: "finalized" });Other methods on Berachain
- eth_blockNumberSupported
- eth_chainIdSupported
- eth_getBalanceSupported
- eth_getTransactionByHashSupported
- eth_getTransactionReceiptSupported
- eth_callSupported
- eth_estimateGasSupported
- eth_gasPriceSupported
- eth_feeHistorySupported
- eth_maxPriorityFeePerGasSupported
- eth_sendRawTransactionSupported
- eth_getTransactionCountSupported
- eth_getCodeSupported
- eth_subscribeSupported
- eth_getLogsSupported
- eth_getBlockReceiptsSupported
- 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
- Linea
- Scroll
- zkSync Era
- Mantle
- Gnosis
- Celo
- 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 Berachain support eth_getBlockByNumber?
Yes. eth_getBlockByNumber answered on the SwiftNodes Berachain endpoint when our weekly probe called it through the customer path (2026-11-29).
How many transactions are in each Berachain block?
In five consecutive blocks on 2026-11-29: 3, 4, 3, 2, 3.
What are parentProposerPubkey in a Berachain block?
parentProposerPubkey is not part of the Ethereum JSON-RPC specification; added by this chain's node software.
Berachain endpoints, live block height and WebSocket status are on the Berachain RPC page.
One key covers every chain we serve, and SwiftNodes has a free tier.