services
Get a key

library / Blockchain ideas / Dashboards and explorers / BI0129

Validator info lookup

Paste a vote address and get the validator's identity key, withdraw authority, commission, credits earned this epoch and root slot from one account read, plus the identity's balance and how far the root trails the current slot.

By Carbium · Dashboards and explorers · BI0129 · updated 2026-11-23

01

Who uses it

Delegators, validator operators and explorer builders all start from the same string: a vote account address. A delegator wants to know who runs it, what commission it takes and whether it earned credits this epoch. An operator wants a quick check that the identity key is funded and the root is moving. An explorer team wants a validator page that fills in from one address.

The lookup takes that address and answers those questions from one read of the vote account, plus a balance check on the identity key the account names. Nothing is signed or sent, so a hackathon team can ship it as a public read-only tool.

A good demo is a side-by-side view of several vote addresses, because commission and credits are easy to compare when the rows sit together. getMultipleAccounts reads up to 100 of them in one call below Pro.

02

What it shows

Every row comes from the vote account's parsed data, except the balance and the current slot, which are two more reads.

RowWhere it comes fromHow to read it
IdentitynodePubkey in the vote accountThe key the validator runs under. It is a different account from the vote account.
Withdraw authorityauthorizedWithdrawerThe key that controls the vote account's funds and can change its settings.
Commissioncommission, a percentageThe share of rewards the validator keeps before the rest goes to delegators.
Credits this epochlast entry of epochCredits: credits minus previousCreditsHow much voting credit the validator has earned in the newest epoch on record.
Root slotrootSlotThe newest slot the validator has rooted. Compare it with the current slot.
Last timestamp slotlastTimestamp.slotThe slot of the validator's latest recorded vote timestamp.
Identity balancegetBalance on the identityAn identity near zero is worth a second look.
Current slotgetEpochInfo, absoluteSlotThe reference point for the two slot rows above.

Credits matter more than any single field. The parsed account lists credits per epoch as a running total with the previous total beside it, so the credits earned in an epoch are the difference. A validator that voted well shows a large number for a finished epoch. The newest epoch is partial and keeps growing until the epoch ends, so compare it only against its finished neighbours.

03

The build

The lookup is one file that needs @solana/kit and what Node 24 ships. It is read-only: no private key, nothing sent.

  1. Take the vote address from the command line. address() throws on a malformed string, which the script prints as a plain message.
  2. Call getAccountInfo on https://services.carbium.sh with encoding: "jsonParsed". The call leaves commitment out, so @solana/kit fills in confirmed. A null value means no account lives at that address.
  3. Check that the parsed program is vote. Any other account comes back as raw data or another program's layout, and the script stops with a message.
  4. Read the identity, withdraw authority, commission, root slot, last timestamp and epoch credits from the parsed info.
  5. Run getEpochInfo and getBalance on the identity together, each settled on its own, so one failure prints and the page still shows the rest.
  6. Print one line per row, with lamports divided by 1,000,000,000 for display.

Newer vote account layouts can report commission in basis points. The script takes whichever field the account carries and prints a percentage either way.

main.ts
// BI0129 · Validator info lookup// https://carbium.sh/library/blockchainideas/validator-info-lookup// Copyright (c) Carbium Corporation. MIT License (LICENSE). Keep this notice.// SPDX-License-Identifier: MITimport { address, createDefaultRpcTransport, createSolanaRpcFromTransport } from "@solana/kit";type VoteInfo = {  nodePubkey: string;  authorizedWithdrawer: string;  commission?: number;  inflationRewardsCommissionBps?: number;  rootSlot: number | bigint | null;  lastTimestamp?: { slot: number | bigint; timestamp: number | bigint };  epochCredits: { epoch: number | bigint; credits: string | number | bigint; previousCredits: string | number | bigint }[];};type Row = [label: string, value: string];const apiKey = process.env.CARBIUM_KEY;if (!apiKey) {  console.error("Set CARBIUM_KEY to your Carbium API key.");  process.exit(1);}const target = process.argv[2];if (!target) {  console.error("Usage: node main.ts <vote account address>");  process.exit(1);}const rpc = createSolanaRpcFromTransport(  createDefaultRpcTransport({    url: process.env.CARBIUM_RPC_URL ?? "https://services.carbium.sh",    headers: { "x-api-key": apiKey },  }),);function pickCommission(info: VoteInfo): number {  if (info.commission !== undefined) return Number(info.commission);  return Number(info.inflationRewardsCommissionBps ?? Number.NaN) / 100;}function creditRow(info: VoteInfo): Row[] {  const newest = info.epochCredits.at(-1);  if (!newest) return [];  const earned = Number(newest.credits) - Number(newest.previousCredits);  return [[`credits (epoch ${newest.epoch})`, `${earned}, newest epoch on record, may be partial`]];}async function main(): Promise<void> {  // No commitment given, so @solana/kit reads at confirmed.  const res = await rpc.getAccountInfo(address(target!), { encoding: "jsonParsed" }).send();  if (res.value === null) throw new Error("no account at that address");  const data = res.value.data as unknown as { program?: string; parsed?: { info: VoteInfo } };  if (data.program !== "vote" || !data.parsed) throw new Error("that account is not a vote account");  const info = data.parsed.info;  const [slotRead, balanceRead] = await Promise.allSettled([    rpc.getEpochInfo().send(),    rpc.getBalance(address(info.nodePubkey)).send(),  ]);  const rows: Row[] = [    ["vote account", target!],    ["identity", info.nodePubkey],    ["withdraw authority", info.authorizedWithdrawer],    ["commission", `${pickCommission(info)}%`],    ...creditRow(info),    ["root slot", String(info.rootSlot)],    ["last timestamp slot", String(info.lastTimestamp?.slot)],  ];  if (slotRead.status === "fulfilled") {    const current = Number(slotRead.value.absoluteSlot);    rows.push(["current slot", `${current} (epoch ${slotRead.value.epoch})`]);    if (info.rootSlot !== null) rows.push(["root behind by", `${current - Number(info.rootSlot)} slots`]);  } else console.error("getEpochInfo failed:", String(slotRead.reason));  if (balanceRead.status === "fulfilled") {    rows.push(["identity balance", `${Number(balanceRead.value.value) / 1e9} SOL`]);  } else console.error("getBalance failed:", String(balanceRead.reason));  for (const [label, value] of rows) console.log(`${label.padEnd(22)}${value}`);}main().catch((err: unknown) => {  console.error(err instanceof Error ? err.message : err);  process.exit(1);});

run: CARBIUM_KEY=<YOUR_KEY> node main.ts <VOTE_ADDRESS>

Lamports and slots from kit arrive as bigint. The script converts them to Number for display and for the slot and credit differences, which stay well inside the range a Number holds exactly.

04

What it costs

A lookup is three calls. The vote account read is an account read at 10 cells, and the rate depends on the plan.

PlangetAccountInfo rateVote account reads per second
Free ($0)0.5 req/sone lookup every 2 seconds
Dev ($20)15 req/sup to 15
Business ($250)50 req/sup to 50
Pro ($500)400 req/sup to 400

Limits are per account, so every key on the account draws from the same budget. A public page on Free should cache each vote account for a short time and serve repeat views from the cache. Fields like commission and the withdraw authority change rarely, and credits and root move slowly enough that a cache of a minute or so still reads as live.

A page that lists many validators should switch to getMultipleAccounts, which charges 10 cells per pubkey: 1000 cells for 100 pubkeys, which fits inside the 1,024-cell burst. Below Pro a call tops out at 100 pubkeys, so chunk longer lists. A JSON-RPC batch of up to 100 calls is the other way to send many reads in one request.

05

What to add next

  • A watch list: read a saved set of vote addresses in chunks of 100 with getMultipleAccounts and sort the table by commission or by credits.
  • A credits chart: write one row per vote address and epoch into node:sqlite on each run, then plot earned credits per finished epoch.
  • A change alert: store the identity and withdraw authority per vote address and print a line when either differs from the last run.
  • A stalled-root check: read the root slot twice a few minutes apart and flag an address whose root did not move.
  • Explorer links: turn each identity and withdraw authority into a link to the account page of your explorer.
06

Where it ends

  • Names, icons and websites live in a separate on-chain record that validators publish about themselves. Reading it needs a scan across the Config program's accounts, which this build leaves out, so the page shows keys.
  • The page starts from an address you supply. A list of every vote account comes from a method outside this build's call set.
  • Delegated amounts and the active or delinquent label are not in the vote account, so the page does not show them.
  • A root a few slots behind the current slot is normal. The script prints the raw root and timestamp slots and the lag, and a stalled-root judgment should rest on two reads a few minutes apart, never one.
  • One read at confirmed commitment is one moment. Two lookups a second apart can show different root slots, and the identity balance and current slot come from slightly later reads than the account.
07

When it goes wrong

what goes wrongwhat to do
getAccountInfo answers with a null value.No account exists at that address. Check for a typo, and check that you pasted the vote address and not the identity key, which is a plain system account.
The script stops saying the address is not a vote account.The account exists but its parsed program is not vote. Open the address in an explorer and look for the vote account the validator lists next to its identity.
Commission prints NaN.The account carries neither field the script reads. Log the keys of the parsed info, find the commission field your layout uses and add it to the one line that picks it.
The root slot sits far behind the current slot and the validator looks dead.Read twice a few minutes apart before judging. A root that moves between reads is alive.
The identity balance line prints a failure while the account lines print.The calls are settled on their own, so a single failed balance read costs only that row. Retry that call once and leave the rest of the page as it is.
The call answers 401 UNKNOWN_KEY.Attach the whole key in CARBIUM_KEY. A key cut short at a paste is the usual cause.
08

Questions

Is the vote address the same as the validator's identity?

No. They are two accounts. The vote account records votes, commission and credits, and its nodePubkey field names the identity key the validator runs under.

Can the page show the validator's name?

Not in this build. The name comes from a record the validator publishes in the Config program, and reading it takes a scan this build does not run. The page shows keys, and you can map them to names from a list you keep.

How often should I refresh a lookup?

Once a minute is enough for a person reading a page. Credits and the root slot move, while the commission and the withdraw authority change only when the operator changes them.

Why is this epoch's credit number small?

The newest epoch is still running, so its credits are partial. Compare finished epochs with each other, and show the running one as a separate row.

What does a lookup cost?

A lookup is three calls. The vote account read is a 10-cell account read, which Free allows once every 2 seconds and Dev 15 times a second.