services
Get a key

library / AI and blockchain / SI0033

Plain-English network status

A script that reads slot time, throughput, finalization lag and fee pressure over RPC with your own key and prints one plain-English line plus the same numbers as JSON, so a busy stretch reaches an alert rule or a model as data.

By Carbium · Plain-English chain queries · SI0033 · updated 2026-11-22

01

Where an explorer's numbers come from

An explorer's network page is a view of RPC answers from some node, averaged over some window, at some commitment level. Which node, which window and which commitment are rarely printed next to the number. During a busy stretch those three choices decide what a slot time or a TPS figure says, so the number worth trusting is the one you can reproduce.

No explorer is more reliable than the node behind it. The practical answer is to compute the figures yourself and compare them with whatever page you like. When they agree, the page is fine for a human glance, and your own readings give an agent or an alert rule the same numbers as data.

Four JSON-RPC methods cover network health: getHealth for whether the node is caught up, getSlot for the chain tip at processed and at finalized, getRecentPerformanceSamples for slot time and throughput, and getRecentPrioritizationFees for fee pressure. All of them are plain reads on https://services.carbium.sh with the key in the x-api-key header. Nothing is signed and no wallet is involved.

02

Four numbers that describe health

NumberWhere it comes fromWhat it tells you
Slot timeTotal samplePeriodSecs times 1000, divided by total numSlots, over the newest three samplesHow fast the cluster is advancing. A value well above 200 ms means it is advancing slowly.
ThroughputTotal numTransactions divided by total samplePeriodSecs, over the newest three one-minute samplesTransactions per second averaged over the last 3 minutes.
Finalization laggetSlot at processed minus getSlot at finalizedHow many slots the finalized tip trails the newest one.
Fee shareSlots with a nonzero value in getRecentPrioritizationFees, as a percentage of the slots returnedHow often every landed transaction in a slot paid a priority fee.

Since the Alpenglow switch on 2026-10-21 a slot lasts about 200 ms and finalized sits 0 to 1 slots behind processed, where it used to sit about 32. A threshold, an alert or a screenshot from before that date uses a different baseline and reads wrong against today's chain.

Mainnet blocks also carry no vote transactions since Alpenglow, so numTransactions counts user transactions. TPS figures built from numTransactions before the switch included vote traffic and are not comparable with what this script prints.

The two getSlot calls are separate requests, so they can briefly show the two tips equal or out of order. The script clamps a negative lag to 0 instead of reporting it.

03

The status script

The file runs on Node 24 with @solana/kit 8.6.0 and nothing else. Set CARBIUM_KEY first; it exits with a message when the key is missing. CARBIUM_RPC_URL overrides the endpoint.

main.ts
// SI0033 · Plain-English network status// https://carbium.sh/library/si/plain-english-network-status// Copyright (c) Carbium Corporation. MIT License (LICENSE). Keep this notice.// SPDX-License-Identifier: MIT// Plain-English network status from RPC reads. Run: CARBIUM_KEY=... node main.ts [repeatSeconds]import { createDefaultRpcTransport, createSolanaRpcFromTransport } from "@solana/kit";const key = process.env.CARBIUM_KEY;if (!key) {  console.error("Set CARBIUM_KEY to your Carbium API key.");  process.exit(1);}const url = process.env.CARBIUM_RPC_URL ?? "https://services.carbium.sh";const rpc = createSolanaRpcFromTransport(createDefaultRpcTransport({ url, headers: { "x-api-key": key } }));const failed: string[] = [];function ok<T>(name: string, r: PromiseSettledResult<T>): T | undefined {  if (r.status === "fulfilled") return r.value;  failed.push(`${name}: ${r.reason instanceof Error ? r.reason.message : String(r.reason)}`);  return undefined;}async function status() {  failed.length = 0;  const [health, processed, finalized, samples, fees] = await Promise.allSettled([    rpc.getHealth().send(),    rpc.getSlot({ commitment: "processed" }).send(),    rpc.getSlot({ commitment: "finalized" }).send(),    rpc.getRecentPerformanceSamples(3).send(),    rpc.getRecentPrioritizationFees().send(),  ]);  const out: Record<string, unknown> = { health: ok("getHealth", health) ?? "behind or unreachable" };  const parts: string[] = [`node ${out.health}`];  const tip = ok("getSlot processed", processed);  const fin = ok("getSlot finalized", finalized);  if (tip !== undefined && fin !== undefined) {    out.finalizedLag = Math.max(0, Number(tip) - Number(fin));    parts.push(`finalized is ${out.finalizedLag} slots behind processed`);  }  const s = ok("getRecentPerformanceSamples", samples);  if (s?.length) {    const secs = s.reduce((n, x) => n + x.samplePeriodSecs, 0);    const slots = s.reduce((n, x) => n + Number(x.numSlots), 0);    const txs = s.reduce((n, x) => n + Number(x.numTransactions), 0);    out.slotMs = Math.round((secs * 1000) / slots);    out.tps = Math.round(txs / secs);    parts.push(`slots take about ${out.slotMs} ms`, `${out.tps} transactions per second over the last ${Math.round(secs / 60)} min`);  }  const fee = ok("getRecentPrioritizationFees", fees);  if (fee?.length) {    const paid = fee.filter((x) => Number(x.prioritizationFee) > 0).length;    out.feeShare = Math.round((100 * paid) / fee.length);    parts.push(`${out.feeShare}% of the last ${fee.length} slots had a nonzero minimum priority fee`);  }  const watch = [    out.health !== "ok" && "node is behind or unreachable",    Number(out.slotMs) > 300 && "slots are slow",    Number(out.finalizedLag) > 2 && "finalization is behind",    Number(out.feeShare) > 50 && "fee pressure is high",  ].filter(Boolean);  console.log(`${parts.join("; ")}. ${watch.length ? "Watch: " + watch.join(", ") : "Nothing unusual among the numbers read"}.`);  console.log(JSON.stringify(out));  if (failed.length) console.log("failed:", failed.join(" | "));}await status();const every = Number(process.argv[2]);if (every > 0) setInterval(status, every * 1000);

run: node main.ts

Every getSlot call states its commitment. The JSON-RPC server defaults to finalized, while @solana/kit 8.6.0 fills in confirmed when a call leaves it out, so leaving it out would quietly change what a reading means. getHealth, getRecentPerformanceSamples and getRecentPrioritizationFees take no commitment option.

Run node main.ts for one reading, or pass a number of seconds, as in node main.ts 60, to repeat in the same process. The first output line is the sentence: node health, finalization lag, slot time, throughput and fee share (the share of recent slots with a nonzero minimum priority fee), then either Nothing unusual among the numbers read or a Watch: list. The second line is the same numbers as JSON, which is the line to feed an alert rule or hand to a model as a tool result.

Each call settles on its own. When one fails, the sentence is built from the rest and a failed: line names the call and its error, so one refused read does not blank the report.

04

Reading a high-TPS stretch

When load climbs, the readings tend to move in a recognisable order. Throughput rises first. Fee share follows once blocks fill and every transaction in a slot has to pay for inclusion. Slot time and finalization lag move last, and only when the cluster itself is under strain. High throughput with a slot time near 200 ms and a lag of 0 or 1 is a busy network doing its job.

The script flags four conditions, with thresholds picked as starting points. Tune them against your own readings.

  • Slot time above 300 ms: slots are slow.
  • Finalization lag above 2 slots: finalization is behind, a clear break from the 0 to 1 range.
  • Fee share above 50 percent: in more than half of the recent slots every landed transaction paid a priority fee.
  • Node health other than ok: the node is behind or unreachable.

Compare the lag with the commitment levels in Solana commitment levels when you decide which tip your own code should wait for. To push the same sentence into a chat channel when a threshold trips, Slack slot-lag alerts wires slot lag to Slack.

05

Cost and polling rate

getSlot and getHealth are cheap cached reads at 1 cell each, with limits of 5, 30, 100 and 500 req/s on Free, Dev, Business and Pro. The script sends them in one burst per round.

Performance samples are one minute long, so a poll more often than once a minute returns the same newest sample. The script polls all five calls on one interval, so give repeat mode 60 seconds or more. To read the slots faster, split the sample call onto its own one-minute timer in main.ts.

06

Where it ends

  • Throughput is an average over whole minutes. A spike lasting a few seconds is smoothed away. slotSubscribe on the WebSocket endpoint reports each slot as it lands but carries no transaction counts. Counts per block come from getBlock with maxSupportedTransactionVersion: 1.
  • Called with no addresses, each value from getRecentPrioritizationFees is the minimum priority fee among the slot's landed non-vote transactions. A zero means at least one transaction in that slot paid none. It does not mean the slot was empty, so read fee share next to throughput.
  • getHealth says whether this node is caught up with the cluster. When it is behind, the call answers with an error and the script prints behind or unreachable.
  • The figures are Carbium's view of the chain. Validator stake, leader schedules and vote behaviour are separate questions and need other methods.
  • The script reports that something is unusual. It does not say why. A cause such as a hot program or a stalled leader needs the transactions themselves.
07

When it goes wrong

what goes wrongwhat to do
An alert fires on a finalization lag of 32 slots copied from an older guide.That figure predates Alpenglow. Finalized now sits 0 to 1 slots behind processed, so set the threshold from current readings.
The reported finalization lag is negative.The two getSlot calls are separate requests and can land out of order. Clamp the lag at 0, as the script does.
Throughput looks far lower than an older chart of the same network.Blocks carry no vote transactions since Alpenglow, so numTransactions counts user transactions only. Compare against readings taken after the switch.
The whole report is empty because one call threw.Use Promise.allSettled, build the sentence from the calls that answered and print the failures, including a 429, in their own line.
Fee share reads 0 percent while throughput is high.Called with no addresses, each value is the minimum priority fee among the slot's landed non-vote transactions, so a zero means at least one transaction paid none. While blocks have room that is common. High throughput with no fee share means spare capacity. Read the two numbers together.
A TypeError about mixing BigInt and other types.Kit returns slots and counts as bigint. Convert with Number() before arithmetic, as the script does.
08

Questions

Which Solana explorer has the most reliable slot time?

None is more reliable than the node it reads from. Compute slot time from getRecentPerformanceSamples on your own key, then compare the figure with any explorer page, noting the window and commitment each one uses.

What is a normal slot time now?

About 200 ms since the Alpenglow switch on 2026-10-21, with finalized 0 to 1 slots behind processed. Figures from before that date used a slower baseline and a lag near 32 slots.

Can I get TPS per second instead of per minute?

Not from the performance samples, which cover a minute each. For finer detail, read each block with getBlock and maxSupportedTransactionVersion: 1 and count its transactions yourself. slotSubscribe on the WebSocket endpoint tells you when each slot lands but carries no counts.

How often should I poll?

The sample call returns a new sample about once a minute, so repeat this script every 60 seconds or more. The slot reads are cheap cached reads at 1 cell each and can run more often on a timer of their own.