eth_getBlockByNumber on Tempo
Everything below was measured on 2026-11-29 by calling eth_getBlockByNumber on Tempo 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 Tempo: what we measured
| Header fields | 31 (5 beyond the Ethereum set) |
|---|---|
| Transactions per block | 1, 0, 0, 0, 1 in five consecutive blocks |
| Response size, full transactions (true) | 2.5 KB average |
| Response size, hashes only (false) | 2.0 KB |
| Gas limit | 500,000,000 |
| Gas used in the latest block | 66,345 (0.013% of the limit) |
| Base fee | 0.6000 gwei |
| Tag "safe" | block 51,352,463 |
| Tag "finalized" | block 51,352,466 |
| Tag "pending" | not served (null) |
| Tag "earliest" | block 0 |
What is different on Tempo
Tempo blocks carry 5 fields that Ethereum blocks do not. timestampMillis: the block timestamp in milliseconds; mainBlockGeneralGasLimit, sharedGasLimit, timestampMillisPart, consensusContext: specific to this chain's node software, not part of the Ethereum JSON-RPC specification. Strict schema validators need to allow them.
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.
The "pending" tag was not served on Tempo. Code that waits for "pending" needs a fallback, such as latest minus a confirmation count.
A real Tempo block header
From block 51,352,453, as our endpoint returned it (long hex values shortened).
{
"hash": "0x221fb65ac8734844cb656fb18a981eefbb825f29a7230a10a637e1af758fa2a2",
"mainBlockGeneralGasLimit": "0x1c9c380",
"sharedGasLimit": "0x0",
"timestampMillisPart": "0x14f",
"parentHash": "0xd540684a3112bbc9e9774f53c83ebdbbcd0c447332cef1b8fb9ef3886cde63d8",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"miner": "0xa9c8788d8617c210cb269c231d323f3487e28747",
"stateRoot": "0x6d349dd644a2ef3348c1fe6679831a72403ab0b29893cf389ab999d3af05f752",
"transactionsRoot": "0x02878041210f03c63fe5273ffd2286f2817f9ed219fab8209166921821ceddf4",
"receiptsRoot": "0x1421942a8330a2d22f021fecf09988d62f07a916440d1a9a118382d118586d9a",
"logsBloom": "0x0000000000000000…(256 bytes)",
"difficulty": "0x0",
"number": "0x30f9385",
"gasLimit": "0x1dcd6500",
"gasUsed": "0x10329",
"timestamp": "0x6b0bc766",
"extraData": "0x",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"baseFeePerGas": "0x23c34600",
"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"blobGasUsed": "0x0",
"excessBlobGas": "0x0",
"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"consensusContext": {
"epoch": 2377,
"view": 9254,
"parentView": 9253,
"proposer": "0x97161f2a35e84905fd77a4bf5cef41e1c189614eabf4abcb8373541c5b8d7df9"
},
"size": "0x3f9",
"timestampMillis": "0x1a22602e7bf",
"uncles": [],
"transactions": "1 transactions",
"withdrawals": []
}Example request
curl -s https://rpc.swiftnodes.io/rpc/tempo?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/tempo?key=YOUR_API_KEY"),
});
// Header plus transaction hashes (2.0 KB)
const block = await client.getBlock({ blockTag: "latest" });
// With full transactions (2.5 KB on average on Tempo)
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 Tempo
- 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_transactionNot measured
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
- 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
- Cronos
- Manta Pacific
- Shibarium
- Boba Network
- Arbitrum Nova
- Immutable zkEVM
Frequently asked questions
Does Tempo support eth_getBlockByNumber?
Yes. eth_getBlockByNumber answered on the SwiftNodes Tempo endpoint when our weekly probe called it through the customer path (2026-11-29).
How many transactions are in each Tempo block?
In five consecutive blocks on 2026-11-29: 1, 0, 0, 0, 1.
What are mainBlockGeneralGasLimit and sharedGasLimit in a Tempo block?
mainBlockGeneralGasLimit is not part of the Ethereum JSON-RPC specification; added by this chain's node software. sharedGasLimit is not part of the Ethereum JSON-RPC specification; added by this chain's node software.
Tempo endpoints, live block height and WebSocket status are on the Tempo RPC page.
One key covers every chain we serve, and SwiftNodes has a free tier.