getVoteAccounts RPC Method

Returns the account info and associated stake for all the voting accounts in the current bank.

Request
$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getVoteAccounts",
> "params": [
> {
> "votePubkey": "3ZT31jkAGhUaw8jsy4bTknwBMP8i4Eueh52By4zXcsVw"
> }
> ]
> }
> '

params

objectoptional

Configuration object containing the following fields:

result

Response
{
"jsonrpc": "2.0",
"result": {
"current": [
{
"votePubkey": "3ZT31jkAGhUaw8jsy4bTknwBMP8i4Eueh52By4zXcsVw",
"nodePubkey": "B97CCUW3AEZFGy6uUg6zUdnNYvnVq5VG8PUtb2HayTDD",
"activatedStake": 42,
"epochVoteAccount": true,
"commission": 0,
"lastVote": 147,
"epochCredits": [
[1, 64, 0],
[2, 192, 64]
]
}
],
"delinquent": []
},
"id": 1
}
object

The result field will be a JSON object of current and delinquent accounts, each containing an array of JSON objects with the following sub fields:

Is this page helpful?