Skip to main content

0.05 credits per call

getVoteAccounts on Solana: Returns the current and delinquent vote accounts.

Endpoint

https://rpc.goldrushdata.com/v1/solana-mainnet
Authenticate with Authorization: Bearer <GOLDRUSH_API_KEY>. See authentication.

Parameters

NameTypeRequiredDescriptionExample
configobjectno{commitment?, votePubkey?, keepUnstakedDelinquents?, delinquentSlotDistance?}. votePubkey filters to a single validator.{"commitment":"finalized"}

Returns

object: {current: array<voteAccount>, delinquent: array<voteAccount>} with votePubkey, nodePubkey, activatedStake, commission, epochCredits, lastVote.
{"current":[{"votePubkey":"3ZT3...","nodePubkey":"2r1F4i...","activatedStake":42000000000000,"commission":5,"lastVote":372877100}],"delinquent":[]}

Examples

curl https://rpc.goldrushdata.com/v1/solana-mainnet \
  -H "Authorization: Bearer $GOLDRUSH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getVoteAccounts",
    "params": [{"commitment":"finalized"}]
  }'

Errors

Standard JSON-RPC errors: -32600 invalid request, -32601 method not found, -32602 invalid params.