Stake & Vote
getVoteAccounts
Returns the account info and associated stake for all the voting accounts in the current bank.
Parameters
configobject optional Configuration object.
commitmentstringCommitment level.
votePubkeystringOnly return results for this validator vote address.
keepUnstakedDelinquentsboolDo not filter out delinquent validators with no stake.
delinquentSlotDistanceu64Specify the number of slots behind the tip that a validator must fall to be considered delinquent.
Result
objectAn object with current (array of current vote accounts) and delinquent (array of delinquent vote accounts).
Example
Request
JSONcurl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getVoteAccounts",
"params": [{ "commitment": "finalized" }]
}'Response
JSON{
"jsonrpc": "2.0",
"result": {
"current": [
{
"commission": 0,
"epochVoteAccount": true,
"epochCredits": [
[
1,
64,
0
],
[
2,
192,
64
]
],
"nodePubkey": "B97CCUW3AEZFGy6uUg6zUdnNYvnVq5VG8PUtb2HayTDD",
"lastVote": 147,
"activatedStake": 42,
"votePubkey": "3ZT31jkAGhUaw8jsy4bTknwBKodePJQ4Hmb8kXhSk1Jk"
}
],
"delinquent": []
},
"id": 1
}