Solana
Bereit, das in der Produktion aufzurufen?
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
Solana
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
getMultipleAccounts is the batched form of getAccountInfo on Solana: it reads many accounts in a single call instead of one request per address. You pass an array of base-58 public keys and get back an array of account objects — each with data, owner, lamports (native SOL, where 1 SOL = 1,000,000,000 lamports), executable, rentEpoch, and space, or null for any address that does not exist — returned in the same order as the input. It is the efficient way to hydrate a set of known accounts over Solana's high-throughput, ~400ms-slot network. Call it as a JSON-RPC 2.0 POST with positional params against https://solana.therpc.io/YOUR_API_KEY, choosing base64 for raw bytes or jsonParsed for decoded data.
getAccountInfo per address.| # | Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
| 1 | pubkeys | array | Ja | Array of base-58 account addresses to read. |
| 2 | config | object | Nein | Options: commitment, encoding, dataSlice, minContextSlot. |
| Typ | Beschreibung |
|---|---|
| object | RpcResponse wrapping an array of account objects (or null), in the same order as the input. |
| 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. |
null entries for accounts that do not exist; match each returned item back to its input address by index, never by assuming a one-to-one non-null mapping.