getVoteAccounts - Solana
getVoteAccounts. Retrieves information about the current vote accounts
getVoteAccounts - solana [Value: 5CU]
The method in Solana retrieves the current software version of the node
Use cases
- Retrieve information about current vote accounts in Solana
- Monitor vote accounts to assess network participation
- Analyze voting data for network governance insights
Constraints
- Limited to the data of active vote accounts
- Dependent on accurate and up-to-date network information
- API rate limits may restrict frequent data retrieval
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl https://solana.drpc.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1, "method":"getVoteAccounts"}'
Response
200
{
"jsonrpc": "2.0",
"result": {
"current": [
{
"votePubkey": "Vote111111111111111111111111111111111111111",
"nodePubkey": "Node111111111111111111111111111111111111111",
"activatedStake": 1234567890,
"commission": 10,
"lastVote": 12345678,
"epochVoteAccount": true,
"epochCredits": [
[123, 456, 789]
]
}
],
"delinquent": [
{
"votePubkey": "Vote222222222222222222222222222222222222222",
"nodePubkey": "Node222222222222222222222222222222222222222",
"activatedStake": 987654321,
"commission": 15,
"lastVote": 87654321,
"epochVoteAccount": false,
"epochCredits": [
[321, 654, 987]
]
}
]
},
"id": 1
}
Request params
idinteger
jsonrpcstring
methodstring
array
votePubkeystring
Return results only for this validator's vote address, encoded in base-58.
keepUnstakedDelinquentsboolean
Indicates whether to include delinquent validators with no stake in the results.
delinquentSlotDistanceinteger
Specifies the number of slots a validator must fall behind the tip to be considered delinquent. This parameter is passed as an integer, and it is not recommended to specify this argument.
commitmentstring
The level of commitment required for the query
- finalized - The node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized
- confirmed - The node will query the most recent block that has been voted on by supermajority of the cluster
- processed - The node will query its most recent block. Note that the block may not be complete
Response
200
Contains arrays of current and delinquent accounts with detailed fields for each.Response params
object
idinteger
jsonrpcstring
resultstring
object
currentobject
Details of currently active accounts
object
activatedStakeuint64
The active stake in lamports for this epoch (u64 integer)
commissioninteger
The percentage of rewards owed to the vote account (0-100).
epochCreditsstring
History of earned credits for up to five epochs, in the format: epoch, credits, previousCredits.
epochVoteAccountboolean
Boolean indicating if the vote account is staked for this epoch.
lastVotestring
The most recent slot voted on by this account.
nodePubkeystring
Validator identity, base-58 encoded.
rootSlotstring
The current root slot for this vote account.
votePubkeystring
The vote account address, base-58 encoded.
delinquentarray
Details of delinquent accounts:
object
activatedStakeuint64
The active stake in lamports for this epoch (u64 integer)
commissioninteger
The percentage of rewards owed to the vote account (0-100).
epochCreditsstring
History of earned credits for up to five epochs, in the format: epoch, credits, previousCredits.
epochVoteAccountboolean
Boolean indicating if the vote account is staked for this epoch.
lastVotestring
The most recent slot voted on by this account.
nodePubkeystring
Validator identity, base-58 encoded.
rootSlotstring
The current root slot for this vote account.
votePubkeystring
The vote account address, base-58 encoded.