getVoteAccounts
Last updated:
`getVoteAccounts` returns every voting account known to the current bank, split into two arrays: `current` (validators that are actively voting) and `delinquent` (validators that have stopped voting recently enough to still be tracked). Each entry carries the validator's vote and node identities, its activated stake, commission, and the slot of its most recent vote. Use it to build validator dashboards, compute stake distribution, or detect validators that have fallen behind the cluster.
By default the result contains the full validator set, which is large. Pass `votePubkey` to scope the response to a single validator — the most common way to use this method when you only care about one operator. The `delinquent` classification is governed by `delinquentSlotDistance`: a validator whose last vote lags the current slot by more than this distance is reported as delinquent.
This is a read method in the `sol_read_rpc` category, so it shares the standard free-tier RPS budget with the rest of the Solana read surface. Because the unfiltered response can be sizeable, prefer `votePubkey` filtering when you can.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| config | GetVoteAccountsConfig | No |
Returns
| Field | Type |
|---|---|
| result | object |
Examples
curl https://<your-endpoint>/ \
-X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"getVoteAccounts","params":["<config>"]}'const res = await fetch("https://<your-endpoint>/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"id": 1,
"method": "getVoteAccounts",
"params": [
"<config>"
],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"getVoteAccounts","params":["<config>"],"jsonrpc":"2.0"})
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Networks: mainnet, devnet, testnet.
- Credit cost: 1 per call.
FAQ
- What does getVoteAccounts do?
- Returns the account info and associated stake for all the voting accounts in the current bank on Solana.
- How many credits does getVoteAccounts cost?
- getVoteAccounts costs 1 credit(s) per call on Triport by default.
- Is getVoteAccounts available over WebSocket?
- getVoteAccounts is an HTTP JSON-RPC method.