# Get all current and delinquent vote accounts:
curl -X POST -H "Content-Type: application/json" -d \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "getVoteAccounts"
}' \
<YOUR_RPC_URL>
# Get a specific vote account:
curl -X POST -H "Content-Type: application/json" -d \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "getVoteAccounts",
"params": [
{
"votePubkey": "<SPECIFIC_VOTE_ACCOUNT_PUBKEY>"
}
]
}' \
<YOUR_RPC_URL>
# Get vote accounts with "confirmed" commitment and keep unstaked delinquents:
curl -X POST -H "Content-Type: application/json" -d \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "getVoteAccounts",
"params": [
{
"commitment": "confirmed",
"keepUnstakedDelinquents": true
}
]
}' \
<YOUR_RPC_URL>