Skip to main content

Parameters

object
Configuration object containing:
string
Commitment level (processed, confirmed, finalized)
string
Public key of a specific vote account to query (base-58 encoded)
boolean
Whether to include unstaked delinquent vote accounts
number
Maximum slot distance to consider a vote account delinquent

Response

object
Object containing:
array
Array of current vote account objects containing:
string
Public key of the vote account (base-58 encoded)
string
Public key of the validator (base-58 encoded)
number
Amount of activated stake in lamports
boolean
Whether the account voted in the current epoch
array
Array of epoch credit objects containing:
number
Epoch number
number
Number of credits earned
number
Number of credits earned in previous epoch
number
Slot of the last vote
number
Slot of the root
array
Array of delinquent vote account objects with the same structure as current

Code Examples

Basic Request

Using web3.js

Notes

  1. Returns the current vote accounts
  2. The response includes both current and delinquent vote accounts
  3. The response is immediate as it reads from the current state
  4. The accounts can change with stake changes and voting
  5. The vote accounts must be valid

Best Practices

  1. Use appropriate commitment level based on your needs
  2. Cache results when appropriate to reduce RPC load
  3. Monitor for changes in vote accounts
  4. Consider using websocket subscription for real-time updates
  5. Handle network errors and retry when appropriate

Common Errors

Use Cases

  1. Vote Account Analysis
  2. Vote Account Monitoring
  3. Vote Account Planning