RPC method

eth_getBlockByNumber on Hyperliquid

Supported on SwiftNodes

Everything below was measured on 2026-10-13 by calling eth_getBlockByNumber on Hyperliquid 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 Hyperliquid: what we measured

Header fields25
Transactions per block3, 2, 3, 3, 3 in five consecutive blocks
Response size, full transactions (true)6.7 KB average
Response size, hashes only (false)1.8 KB
Gas limit3,000,000
Gas used in the latest block1,044,510 (34.8% of the limit)
Base fee0.1000 gwei
Tag "safe"block 48,433,518
Tag "finalized"block 48,433,520
Tag "pending"block 48,433,522
Tag "earliest"not served (invalid block height: 0)

What is different on Hyperliquid

The header includes the fields added by London (EIP-1559 base fee), Shanghai (withdrawals), Cancun (EIP-4844 blob gas), Cancun (EIP-4788 beacon root), but not those of Prague (EIP-7685 requests). Code that assumes Ethereum's current header shape must treat the missing ones as optional.

Asking for full transactions (second parameter true) made the response 3.7 times larger than hashes only. If you need only some transactions, fetch hashes and request those transactions or their receipts individually.

A real Hyperliquid block header

From block 48,433,513, as our endpoint returned it (long hex values shortened).

{
  "hash": "0x79cd8639226a3286de21b4f53e9b12ae76eb99cf545393e8e23cbe8cf50e7509",
  "parentHash": "0x97d438cf93a2f4b9ca15f87abfb746d5a0ffd1a0acfc45eae191c53b4f175a4b",
  "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
  "miner": "0x0000000000000000000000000000000000000000",
  "stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "transactionsRoot": "0x680aa162c5d3c5e2bf49c602615a40580bcf9582ed1ef97f8ba8419bae2254f1",
  "receiptsRoot": "0xb6ae4a80050b49862a01f799ef91c80eddc14392b96c22f270fb15f929151c54",
  "logsBloom": "0x9002008850000014…(256 bytes)",
  "difficulty": "0x0",
  "number": "0x2e30969",
  "gasLimit": "0x2dc6c0",
  "gasUsed": "0xff01e",
  "timestamp": "0x6ace2a82",
  "extraData": "0x",
  "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "nonce": "0x0000000000000000",
  "baseFeePerGas": "0x5f5e100",
  "withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
  "blobGasUsed": "0x0",
  "excessBlobGas": "0x0",
  "parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "size": "0x8d6",
  "uncles": [],
  "transactions": "3 transactions",
  "withdrawals": []
}

Example request

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

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

// With full transactions (6.7 KB on average on Hyperliquid)
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 Hyperliquid

eth_getBlockByNumber on other chains

Frequently asked questions

Does Hyperliquid support eth_getBlockByNumber?

Yes. eth_getBlockByNumber answered on the SwiftNodes Hyperliquid endpoint when our weekly probe called it through the customer path (2026-10-13).

How many transactions are in each Hyperliquid block?

In five consecutive blocks on 2026-10-13: 3, 2, 3, 3, 3.

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

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