Solana
Solana
Solana
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
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.
| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | mint | string | Sim | Base-58 token mint address. |
| 2 | config | object | Não | Options: commitment. |
| Tipo | Descrição |
|---|---|
| object | RpcResponse wrapping an array of { address, amount, decimals, uiAmount, uiAmountString }. |
| Código | Mensagem | Causa |
|---|---|---|
-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.