RPC method

eth_blockNumber on zkSync Era

Supported on SwiftNodes

Everything below was measured on 2026-11-15 by calling eth_blockNumber on zkSync Era through the same endpoint customers use, and is re-measured weekly.

What eth_blockNumber does

Returns the number of the most recent block the node has, as a hex string. It is the cheapest way to tell whether a node is keeping up and the usual starting point for polling a chain.

eth_blockNumber on zkSync Era: what we measured

Head block when measured72,945,415 (0x4590f07)
Age of that block when read3 s
Average block time (last 1,000 blocks)2.2 s
Median gap between newHeads over WebSocket714 ms
"safe" behind the head1,026 blocks (about 38 min)
"finalized" behind the head34,111 blocks (about 20.9 hours)

What this means for polling

At 2.2 s per block, a one-second poll returns a new number on roughly one call in 2. Polling at the block time keeps you current without wasting requests.

The number eth_blockNumber returns is the newest block, which can still change in a reorg. On zkSync Era, "finalized" was 34,111 blocks (about 20.9 hours) behind it and "safe" 1,026 blocks behind. Use eth_getBlockByNumber("finalized") when you need a height that will not change.

Compared with other chains

Measured by the gap between WebSocket headers, zkSync Era has the 12th fastest block cadence of the 49 chains we measure.

Example request

curl -s https://rpc.swiftnodes.io/rpc/zksync?key=YOUR_API_KEY \
  -X POST -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'
import { createPublicClient, http } from "viem";

const client = createPublicClient({
  transport: http("https://rpc.swiftnodes.io/rpc/zksync?key=YOUR_API_KEY"),
});

const head = await client.getBlockNumber(); // bigint

// Follow the chain: poll about once per block (2.2 s on zkSync Era)
const unwatch = client.watchBlockNumber({
  pollingInterval: 2206,
  onBlockNumber: (n) => console.log("new head", n),
});

Other methods on zkSync Era

eth_blockNumber on other chains

Frequently asked questions

Does zkSync Era support eth_blockNumber?

Yes. eth_blockNumber answered on the SwiftNodes zkSync Era endpoint when our weekly probe called it through the customer path (2026-11-15).

How fast are blocks on zkSync Era?

About 2.2 s per block, averaged over recent blocks (measured 2026-11-15).

How often should I poll eth_blockNumber on zkSync Era?

About once per block, every 2.2 s. Faster polling mostly returns the same number.

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

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