getAccountInfo

Returns account state and metadata for a Solana public key.

Request

This endpoint expects an object.
pubkeystringRequiredformat: "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
Public key of the account to query.
configobjectOptional
Optional account encoding and commitment configuration.

Response

Account metadata and data with response context.
contextobject
Response context for a Solana RPC result.
valueobject or null
Solana account state and metadata.