Parameters
chainId
string
default:"solana-devnet"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"getVoteAccounts"
required
JSON-RPC method name.
Parameters for method getVoteAccounts: [config].Positional parameters for getVoteAccounts:params[0]: Optional configuration object.
Returns
Vote account information.
Vote account pubkey (base-58 encoded).
Validator identity pubkey (base-58 encoded).
Stake delegated to this vote account.
True if vote account is staked for this epoch.
Percentage (0-100) of rewards payout owed to vote account.
Most recent slot voted on by this vote account.
Epoch vote credits history.
Current root slot for this vote account.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana-devnet \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"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": [
"..."
]
}
],
"delinquent": []
}
}