getAccountInfo
Returns all information associated with the account of provided Pubkey.
Path Parameters
stringrequireddefaults to
docs-demoFor 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. The historical parameters require `finalized` commitment (the default); combining them with `processed` or `confirmed` is rejected. Also returned for a malformed Pubkey or configuration value.
Was this page helpful?