Solana
Solana
Solana
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
On Solana, the Proof-of-History chain whose native token is SOL, getTokenLargestAccounts returns the 20 largest accounts of a given token mint, ranked by balance. It is the fastest way to see who holds the most of an SPL token without scanning every account on chain. Send a JSON-RPC 2.0 request with positional params to https://solana.therpc.io/YOUR_API_KEY, passing the mint address, and you get back up to 20 entries, each with the account address, raw amount, decimals, and a uiAmountString.
| # | Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
| 1 | mint | string | Ja | Base-58 token mint address. |
| 2 | config | object | Nein | Options: commitment. |
| Typ | Beschreibung |
|---|---|
| object | RpcResponse wrapping an array of { address, amount, decimals, uiAmount, uiAmountString }. |
| Code | Meldung | Ursache |
|---|---|---|
-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. |
getProgramAccounts against the token program.