RPC method

eth_blockNumber on ApeChain

Supported on SwiftNodes

Everything below was measured on 2026-11-29 by calling eth_blockNumber on ApeChain 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 ApeChain: what we measured

Head block when measured56,186,288 (0x35955b0)
Age of that block when read1 s
Average block time (last 1,000 blocks)813 ms
Median gap between newHeads over WebSocket1.2 s
"safe" behind the head611 blocks (about 8 min)
"finalized" behind the head1,168 blocks (about 16 min)

What this means for polling

ApeChain produces a block about every 813 ms, so a client that polls eth_blockNumber once a second sees the number jump by about 1 each time. If you need every block, subscribe to newHeads over WebSocket (see eth_subscribe on ApeChain) or fetch the skipped range with eth_getBlockByNumber.

The number eth_blockNumber returns is the newest block, which can still change in a reorg. On ApeChain, "finalized" was 1,168 blocks (about 16 min) behind it and "safe" 611 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, ApeChain has the 24th fastest block cadence of the 47 chains we measure.

Example request

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

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

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

Other methods on ApeChain

eth_blockNumber on other chains

Frequently asked questions

Does ApeChain support eth_blockNumber?

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

How fast are blocks on ApeChain?

About 813 ms per block, averaged over recent blocks (measured 2026-11-29).

How often should I poll eth_blockNumber on ApeChain?

Polling cannot keep up with 813 ms blocks; subscribe to newHeads over WebSocket instead.

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

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