Skip to content
Alchemy Logo

getAccountInfo

POST
/{apiKey}
CUs10

Returns all information associated with the account of provided Pubkey.

Historical reads via the Solana Account Archive (the slot, lastUpdateBeforeSlot, and firstUpdateAfterSlot config parameters) are available on paid Alchemy plans (pay-as-you-go or enterprise); they are not available on the free tier. Latest-state getAccountInfo (without any of these parameters) is available on all plans.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

stringrequired

Pubkey of the account to query.

objectoptional

Optional configuration object for additional settings.

Responses

200

Returns details of the account including balance, ownership, and other relevant data.

Errors

-32020Out of coverage. The requested historical slot is outside the [Account Archive](/docs/solana/account-archive)'s coverage window: below the earliest indexed slot, above the latest finalized slot, or a `lastUpdateBeforeSlot` / `firstUpdateAfterSlot` cursor stepped past the edge of coverage (the terminal for a history walk).
-32602Invalid params. `slot`, `lastUpdateBeforeSlot`, `firstUpdateAfterSlot`, and `minContextSlot` are mutually exclusive. Also returned for a malformed Pubkey or configuration value.
Was this page helpful?