Solana
Solana
Solana
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
getVoteAccounts is a Solana JSON-RPC method that returns the validators voting on the chain that secures SOL, split into current (actively voting) and delinquent (stopped voting recently) lists. Each entry includes votePubkey, nodePubkey, activatedStake in lamports, commission, lastVote, epochCredits, rootSlot, and epochVoteAccount. It is the canonical source for stake distribution and validator health, the kind of data staking products like Marinade rely on. Pass an optional config with commitment, a votePubkey filter, or delinquency tuning, and send it as a JSON-RPC 2.0 POST to https://solana.therpc.io/YOUR_API_KEY.
activatedStake to power a staking UI or a stake-weighted leaderboard.delinquent list, so a staking app can steer users away from them.votePubkey to filter the response to a single validator and read just that one's state.| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | config | object | Non | Options: commitment, votePubkey (filter), keepUnstakedDelinquents (bool), delinquentSlotDistance. |
| Type | Description |
|---|---|
| object | { current: [...], delinquent: [...] } with votePubkey, nodePubkey, activatedStake, epochVoteAccount, commission, lastVote, epochCredits, rootSlot. |
| Code | Message | Cause |
|---|---|---|
-32602 | Invalid params | A param is missing, of the wrong type, or malformed (e.g. a non-base58 pubkey or a bad config field). |
-32603 | Internal error | The node hit an internal error serving the request — retry, and reduce the requested range/encoding if it persists. |
activatedStake is denominated in lamports — divide by 1e9 to display it as SOL, or you will overstate stake by a billion times.delinquent list is empty of weight — check it separately rather than only summing the current list.