getVoteAccounts
Returns the account info and associated stake for all the voting accounts in the current bank.
Authorizations
Body
jsonrpcstring · enumRequiredExample:
JSON-RPC protocol version
2.0
Possible values: idone ofRequiredExample:
Request identifier that will be returned in the response
1
stringOptional
numberOptional
methodstring · enumRequiredExample:
The RPC method name
getVoteAccounts
Possible values: Responses
200
Successful Response
application/json
401
Unauthorized
text/plain
403
Forbidden
text/plain
429
Too Many Requests
text/plain
500
Internal Server Error
text/plain
post
curl -X POST https://public.rpc.solanavibestation.com \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getVoteAccounts",
"params": [
{
"commitment": "finalized",
"keepUnstakedDelinquents": true
}
]
}'
{
"jsonrpc": "2.0",
"result": {
"current": [
{
"votePubkey": "3ZT31jkAGhUaw8jsy4bTknwBMP8i4Eueh52By4zXcsVw",
"nodePubkey": "B97CCUW3AEZFGy6uUg6zUdnNYvnVq5VG8PUtb2HayTDD",
"activatedStake": 42000000000,
"epochVoteAccount": true,
"commission": 5,
"lastVote": 147823456,
"epochCredits": [
[
280,
3946620,
3579916
],
[
281,
4303497,
3946620
],
[
282,
4652270,
4303497
]
],
"rootSlot": 147823425
},
{
"votePubkey": "6AqFc9V6PqyXJReuP12ATGggaVpG1Ppg4LFNvnqQYz8B",
"nodePubkey": "dpuDVLGSXT28Z3RGS28QBD5LUmcWARQVu36vXCEhhBg",
"activatedStake": 65136133648061,
"epochVoteAccount": true,
"commission": 10,
"lastVote": 147823450,
"epochCredits": [
[
280,
7726424,
7359721
],
[
281,
8083234,
7726424
],
[
282,
8432165,
8083234
]
],
"rootSlot": 147823420
}
],
"delinquent": [
{
"votePubkey": "Vote222222222222222222222222222222222222222",
"nodePubkey": "Node222222222222222222222222222222222222222",
"activatedStake": 987654321,
"epochVoteAccount": false,
"commission": 15,
"lastVote": 147800000,
"epochCredits": [
[
279,
654321,
321654
],
[
280,
700000,
654321
]
],
"rootSlot": 147799950
}
]
},
"id": 1
}
Last updated