getVoteAccounts

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

getVoteAccounts

post
Body
jsonrpcstring · enumOptional

The JSON-RPC protocol version.

Example: 2.0Available options:
idstringOptional

A unique identifier for the request.

Example: 1
methodstring · enumOptional

The name of the RPC method to invoke.

Example: getVoteAccountsAvailable options:
paramsobject[]Optional

Optional configuration object for filtering vote accounts.

Responses
objectOptional
post
POST / HTTP/1.1
Host: mainnet.helius-rpc.com
Content-Type: application/json
Accept: */*
Content-Length: 124

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getVoteAccounts",
  "params": [
    {
      "votePubkey": "3ZT31jkAGhUaw8jsy4bTknwBMP8i4Eueh52By4zXcsVw"
    }
  ]
}
{
  "jsonrpc": "2.0",
  "id": "1",
  "result": {
    "current": [
      {
        "votePubkey": "3ZT31jkAGhUaw8jsy4bTknwBMP8i4Eueh52By4zXcsVw",
        "nodePubkey": "B97CCUW3AEZFGy6uUg6zUdnNYvnVq5VG8PUtb2HayTDD",
        "activatedStake": 42,
        "epochVoteAccount": true,
        "commission": 0,
        "lastVote": 147,
        "epochCredits": [
          [
            1,
            64,
            0
          ]
        ],
        "rootSlot": 42
      }
    ],
    "delinquent": [
      {
        "votePubkey": "3ZT31jkAGhUaw8jsy4bTknwBMP8i4Eueh52By4zXcsVw",
        "nodePubkey": "B97CCUW3AEZFGy6uUg6zUdnNYvnVq5VG8PUtb2HayTDD",
        "activatedStake": 0,
        "epochVoteAccount": false,
        "commission": 0,
        "lastVote": 147,
        "epochCredits": [
          [
            1,
            64,
            0
          ]
        ],
        "rootSlot": 42
      }
    ]
  }
}

Last updated

Was this helpful?