Learn getVoteAccounts use cases, code examples, request parameters, response structure, and tips.
getVoteAccounts
RPC method returns information about all voting accounts (validators) in the current bank. It distinguishes between current
(active) and delinquent
validators and provides details about their stake, voting activity, and identity.
commitment
(string, optional): Specifies the commitment level for the query (e.g., "finalized"
, "confirmed"
, "processed"
). If omitted, the node’s default commitment is used.votePubkey
(string, optional): If provided, the results will be filtered to include only the specified validator vote account address (base-58 encoded).keepUnstakedDelinquents
(boolean, optional): Defaults to false
. If set to true
, the delinquent
list will include validators with no activated stake. Otherwise, they are filtered out.delinquentSlotDistance
(u64, optional): Specifies how many slots a validator must be behind the tip of the ledger to be considered delinquent. If not specified, the node uses a default value.result
field in the JSON-RPC response is an object containing two arrays:
current
: An array of objects, where each object represents an active voting account with the following fields:
votePubkey
(string): The vote account address (base-58 encoded).nodePubkey
(string): The identity public key of the validator node (base-58 encoded).activatedStake
(u64): The amount of stake, in lamports, delegated to this vote account and active in the current epoch.epochVoteAccount
(boolean): true
if the vote account has been active at least once during the current epoch.commission
(number): The commission percentage (0-100) charged by the validator.lastVote
(u64): The most recent slot number this validator voted on.rootSlot
(u64): The last slot the node considered to be a root (a block that is fully confirmed and will not be rolled back).epochCredits
(array): An array of arrays, where each inner array contains [epoch, credits_earned_in_epoch, previous_total_credits]
.delinquent
: An array of objects, with the same structure as current
, representing validators considered delinquent by the node.delinquentSlotDistance
and the node’s perspective. A validator might appear delinquent on one node but not another if their view of the ledger tip differs.activatedStake
reflects stake that is active in the current epoch. Stake takes time to activate and deactivate.epochCredits
provides a history of a validator’s performance in earning credits by voting.getVoteAccounts
RPC method, enabling you to query and understand validator information on the Solana network.