---
id: BI0129
title: "Validator info lookup"
url: https://carbium.sh/library/blockchainideas/validator-info-lookup
collection: Blockchain ideas
category: Dashboards and explorers
revision: 1
updated: 2026-11-23
author: Carbium
code: MIT (LICENSE in the zip); text: all rights reserved, Carbium Corporation
---

# 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.

## 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](https://carbium.sh/docs/rpc) reads up to 100 of them in one call below Pro.

## 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.

| Row | Where it comes from | How to read it |
|---|---|---|
| Identity | `nodePubkey` in the vote account | The key the validator runs under. It is a different account from the vote account. |
| Withdraw authority | `authorizedWithdrawer` | The key that controls the vote account's funds and can change its settings. |
| Commission | `commission`, a percentage | The share of rewards the validator keeps before the rest goes to delegators. |
| Credits this epoch | last entry of `epochCredits`: `credits` minus `previousCredits` | How much voting credit the validator has earned in the newest epoch on record. |
| Root slot | `rootSlot` | The newest slot the validator has rooted. Compare it with the current slot. |
| Last timestamp slot | `lastTimestamp.slot` | The slot of the validator's latest recorded vote timestamp. |
| Identity balance | getBalance on the identity | An identity near zero is worth a second look. |
| Current slot | getEpochInfo, `absoluteSlot` | The 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.

## 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` (run: `CARBIUM_KEY=<YOUR_KEY> node main.ts <VOTE_ADDRESS>`)

```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: MIT

import { 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);
});
```

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.

## 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.

| Plan | getAccountInfo rate | Vote account reads per second |
|---|---|---|
| Free ($0) | 0.5 req/s | one lookup every 2 seconds |
| Dev ($20) | 15 req/s | up to 15 |
| Business ($250) | 50 req/s | up to 50 |
| Pro ($500) | 400 req/s | up to 400 |

[Limits are per account](https://carbium.sh/docs/limits), 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.

## 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.

## 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.

## When it goes wrong

| What goes wrong | What 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. |

## 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.

## Related

- [Program upgrade authority watch](https://carbium.sh/library/usecase/program-upgrade-authority-watch) (Use cases, UC0044)
- [Account info response fields](https://carbium.sh/library/howsolana/account-info-response-fields) (How to use Solana, HS0079)
- [carbium.sh/docs/rpc](https://carbium.sh/docs/rpc)
- [carbium.sh/docs/limits](https://carbium.sh/docs/limits)
- [carbium.sh/docs/errors](https://carbium.sh/docs/errors)
- [carbium.sh/docs/endpoints](https://carbium.sh/docs/endpoints)
