RPC method

eth_getBlockByNumber on HashKey Chain

Supported on SwiftNodes

Everything below was measured on 2026-12-06 by calling eth_getBlockByNumber on HashKey Chain 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 HashKey Chain: what we measured

Header fields26
Transactions per block2, 1, 1, 1, 1 in five consecutive blocks
Response size, full transactions (true)2.9 KB average
Response size, hashes only (false)1.9 KB
Gas limit30,000,000
Gas used in the latest block127,081 (0.424% of the limit)
Base fee500 gwei
Tag "safe"block 31,095,872
Tag "finalized"block 31,095,332
Tag "pending"block 31,096,026
Tag "earliest"block 0

What is different on HashKey Chain

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 6 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 693 blocks (about 23 min) behind the head.

A real HashKey Chain block header

From block 31,096,023, as our endpoint returned it (long hex values shortened).

{
  "hash": "0xa777a8c87e530e1726a65a393de2d728ea14e71ca4e413284680fe1d5999f594",
  "parentHash": "0x88044b3d05d9df62f02e21fd2043267c91700f2d78461dc3518ef7721019992d",
  "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
  "miner": "0x4200000000000000000000000000000000000011",
  "stateRoot": "0xc4322ad8a00ddb01954daee47409157a68c7daf23a7a6d0d43dd2299c5340f35",
  "transactionsRoot": "0x3e2a3c0e768c5d4dfc81fd4714bd9467e2e5f80c84e067ef6cdf505c4b5c868f",
  "receiptsRoot": "0xd531d13c7bd1d08d1c49fc5130fc4184e498d1c9447f9ba81b4ed1deaef7a5fc",
  "logsBloom": "0x0000000000000000…(256 bytes)",
  "difficulty": "0x0",
  "number": "0x1da7cd7",
  "gasLimit": "0x1c9c380",
  "gasUsed": "0x1f069",
  "timestamp": "0x6b15032d",
  "extraData": "0x01000000fa00000006000000746a528800",
  "mixHash": "0xab0f9d22c7149fb732320be06a2ab6f692ce1df5013b1b0d50f05bc5c5ab6771",
  "nonce": "0x0000000000000000",
  "baseFeePerGas": "0x746a528800",
  "withdrawalsRoot": "0xd227c5298af6040d4858cd438169f4d9a3cbdeec2da4924e14e22f81ad17a837",
  "blobGasUsed": "0xe8d0",
  "excessBlobGas": "0x0",
  "parentBeaconBlockRoot": "0xa541c8bad2601f46af1d6921038dfab8e1e7f337336d9d3f2867957306c539c7",
  "requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "size": "0x48b",
  "uncles": [],
  "transactions": "2 transactions",
  "withdrawals": []
}

Example request

curl -s https://rpc.swiftnodes.io/rpc/hashkey?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/hashkey?key=YOUR_API_KEY"),
});

// Header plus transaction hashes (1.9 KB)
const block = await client.getBlock({ blockTag: "latest" });

// With full transactions (2.9 KB on average on HashKey Chain)
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 HashKey Chain

eth_getBlockByNumber on other chains

Frequently asked questions

Does HashKey Chain support eth_getBlockByNumber?

Yes. eth_getBlockByNumber answered on the SwiftNodes HashKey Chain endpoint when our weekly probe called it through the customer path (2026-12-06).

How many transactions are in each HashKey Chain block?

In five consecutive blocks on 2026-12-06: 2, 1, 1, 1, 1.

HashKey Chain endpoints, live block height and WebSocket status are on the HashKey Chain RPC page.

One key covers every chain we serve, and SwiftNodes has a free tier.