eth_getBlockByNumber on Sonic
Everything below was measured on 2026-11-15 by calling eth_getBlockByNumber on Sonic 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 Sonic: what we measured
| Header fields | 26 (2 beyond the Ethereum set) |
|---|---|
| Transactions per block | 1, 2, 1, 1, 1 in five consecutive blocks |
| Response size, full transactions (true) | 3.3 KB average |
| Response size, hashes only (false) | 1.7 KB |
| Gas limit | 5,000,000,000 |
| Gas used in the latest block | 48,578 (0.001% of the limit) |
| Base fee | 50.00 gwei |
| Tag "safe" | block 82,597,259 |
| Tag "finalized" | block 82,597,262 |
| Tag "pending" | block 82,597,266 |
| Tag "earliest" | block 0 |
What is different on Sonic
Sonic blocks carry 2 fields that Ethereum blocks do not. timestampNano, epoch: 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), but not those of Cancun (EIP-4788 beacon root), Prague (EIP-7685 requests). Code that assumes Ethereum's current header shape must treat the missing ones as optional.
A real Sonic block header
From block 82,597,253, as our endpoint returned it (long hex values shortened).
{
"parentHash": "0x7d506d92af8f5ba649ab67365e23c47e89626d9be685665e19ea31f099da8973",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"miner": "0x0000000000000000000000000000000000000000",
"stateRoot": "0x05c67d08d8f9924841e44a34500f321d1a95f30f58d84d17568f918e8dabd6d5",
"transactionsRoot": "0x95115ed8c628d22f10e2c8fe1d40fa5d868d2e181dbdda2fae772164f1d74d40",
"receiptsRoot": "0x736457c40f0277ebb0cb8c6caeaaf2300b4b666be76d250e2867fc6fdc076fa9",
"logsBloom": "0x0000000000000000…(256 bytes)",
"difficulty": "0x0",
"number": "0x4ec5585",
"gasLimit": "0x12a05f200",
"gasUsed": "0xbdc2",
"timestamp": "0x6af94bc4",
"timestampNano": "0x18e822d6925b09cc",
"extraData": "0x1caa61cc00000000f9cb9e37",
"mixHash": "0x8f8cbd121dc2f95e27b816c9ce671fc270ba9346d39cabe92538812f4d51ed1d",
"nonce": "0x0000000000000000",
"baseFeePerGas": "0xba43b7400",
"hash": "0x269aa4d1e7693d1067dba84c686af7e944e1a966325e32543ed8f233b8510c1b",
"epoch": "0x19720",
"totalDifficulty": "0x0",
"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"blobGasUsed": "0x0",
"excessBlobGas": "0x0",
"transactions": "1 transactions",
"size": "0x2ca",
"uncles": []
}Example request
curl -s https://rpc.swiftnodes.io/rpc/sonic?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/sonic?key=YOUR_API_KEY"),
});
// Header plus transaction hashes (1.7 KB)
const block = await client.getBlock({ blockTag: "latest" });
// With full transactions (3.3 KB on average on Sonic)
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 Sonic
- 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_transactionNot available
eth_getBlockByNumber on other chains
- Ethereum
- Base
- Arbitrum
- Optimism
- Polygon
- BNB Smart Chain
- Avalanche
- 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
- Tempo
- Cronos
- Manta Pacific
- Shibarium
- Boba Network
- Arbitrum Nova
- Immutable zkEVM
Frequently asked questions
Does Sonic support eth_getBlockByNumber?
Yes. eth_getBlockByNumber answered on the SwiftNodes Sonic endpoint when our weekly probe called it through the customer path (2026-11-15).
How many transactions are in each Sonic block?
In five consecutive blocks on 2026-11-15: 1, 2, 1, 1, 1.
What are timestampNano and epoch in a Sonic block?
timestampNano is not part of the Ethereum JSON-RPC specification; added by this chain's node software. epoch is not part of the Ethereum JSON-RPC specification; added by this chain's node software.
Sonic endpoints, live block height and WebSocket status are on the Sonic RPC page.
One key covers every chain we serve, and SwiftNodes has a free tier.