getVoteAccounts

All the specifications for getVoteAccounts RPC Method on Solana

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

Parameters required for this RPC call

  • configuration : This contains the following parameters, all are optional fields.

    • commitment: The commitment describes how finalized a block is at that point in time. Commitment levels processed, confirmed and finalized are supported, defaults to finalized.

    • votePubkey: Only return results for this validator vote address (base-58 encoded)

    • keepUnstakedDeliquents: Do not filter out delinquent validators with no stake

    • delinquentSlotDistance: Specify the number of slots behind the tip that a validator must fall to be considered delinquent. NOTE: For the sake of consistency between ecosystem products, it is not recommended that this argument be specified.

curl https://rpc.shyft.to?api_key=YOUR-API-KEY -s -X \
  POST -H "Content-Type: application/json" -d ' 
   {
     "jsonrpc": "2.0",
     "id": 1,
     "method": "getVoteAccounts",
     "params": [
       {
         "commitment": "finalized",
         "votePubkey": "i7NyKBMJCA9bLM2nsGyAGCKHECuR2L5eh4GqFciuwNT"
       }
     ]
   }
 '

Last updated

Was this helpful?