eth_getBlockByNumber on Doma
Everything below was measured on 2026-12-06 by calling eth_getBlockByNumber on Doma 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 Doma: what we measured
| Header fields | 26 |
|---|---|
| Transactions per block | 2, 2, 2, 2, 3 in five consecutive blocks |
| Response size, full transactions (true) | 4.8 KB average |
| Response size, hashes only (false) | 1.9 KB |
| Gas limit | 60,000,000 |
| Gas used in the latest block | 709,355 (1.2% of the limit) |
| Base fee | 251 wei |
| Tag "safe" | block 19,284,660 |
| Tag "finalized" | block 19,283,796 |
| Tag "pending" | block 19,285,169 |
| Tag "earliest" | block 0 |
What is different on Doma
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.6 times larger than hashes only. If you need only some transactions, fetch hashes and request those transactions or their receipts individually.
5 of the 11 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.
"finalized" was 1,372 blocks (about 46 min) behind the head.
A real Doma block header
From block 19,285,165, as our endpoint returned it (long hex values shortened).
{
"hash": "0xea23e66a7cee3bab8d93c16efd21f656b6328b0f6d72d9a9ab600a6ea99439c3",
"parentHash": "0xae2774d2de98555274fbc34a8453fdc78b685571b53bf5d51643c241da282319",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"miner": "0x4200000000000000000000000000000000000011",
"stateRoot": "0x40579f5d6e97839d2ea0d021a9e03de653cba7f97101eae29b87ab030ea4b2eb",
"transactionsRoot": "0xc81d5450819306032b4f0ba85ad35f4653ede487c1a375ad4a3802ac6a1bdc2d",
"receiptsRoot": "0xa726b9dee5ebd9a220ebffaf7eec8c9c78c12ce8931ceb1a220f4fdcd50e2fe0",
"logsBloom": "0x0000000000000000…(256 bytes)",
"difficulty": "0x0",
"number": "0x12644ad",
"gasLimit": "0x3938700",
"gasUsed": "0xad2eb",
"timestamp": "0x6b1502c9",
"extraData": "0x01000000fa000000060000000000000000",
"mixHash": "0x68659e1e67c186e35c6573ca7ebab5c5316604bf3a3de21d4b88802559cf3386",
"nonce": "0x0000000000000000",
"baseFeePerGas": "0xfb",
"withdrawalsRoot": "0x1fe87a33ce6032a0df3a6c5a793538990a7991e3a73a5d8adf8402ebddd6a0ea",
"blobGasUsed": "0x2c6f0",
"excessBlobGas": "0x0",
"parentBeaconBlockRoot": "0x8f96f56d49eeba39e184b374d1f0eec05e22aac3b319111f5188d680d775a458",
"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"size": "0x600",
"uncles": [],
"transactions": "2 transactions",
"withdrawals": []
}Example request
curl -s https://rpc.swiftnodes.io/rpc/doma?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/doma?key=YOUR_API_KEY"),
});
// Header plus transaction hashes (1.9 KB)
const block = await client.getBlock({ blockTag: "latest" });
// With full transactions (4.8 KB on average on Doma)
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 Doma
- 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
- Berachain
- Monad
- Unichain
- Kaia
- PulseChain
- World Chain
- Ronin
- Abstract
- ApeChain
- MegaETH
- Fantom
- 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
- Arc
- HashKey Chain
- Tea
- Metal L2
Frequently asked questions
Does Doma support eth_getBlockByNumber?
Yes. eth_getBlockByNumber answered on the SwiftNodes Doma endpoint when our weekly probe called it through the customer path (2026-12-06).
How many transactions are in each Doma block?
In five consecutive blocks on 2026-12-06: 2, 2, 2, 2, 3.
Doma endpoints, live block height and WebSocket status are on the Doma RPC page.
One key covers every chain we serve, and SwiftNodes has a free tier.