getAccountInfo
Returns all information associated with the account at the given public key — lamports, owner program, raw data, and rent status.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| pubkey | string | Yes | Base58-encoded public key of the account to query |
| encoding | string | No | Data encoding: base58 | base64 | base64+zstd | jsonParsed |
| commitment | string | No | processed | confirmed | finalized (default: finalized) |
| dataSlice | object | No | { offset, length } — return a subset of account data |
| minContextSlot | number | No | Minimum slot at which the request may be evaluated |
Request
{ "jsonrpc": "2.0", "id": 1, "method": "getAccountInfo", "params": [ "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg", { "encoding": "base64", "commitment": "confirmed" } ]}Response
{ "jsonrpc": "2.0", "id": 1, "result": { "context": { "slot": 312449201 }, "value": { "lamports": 1461600, "data": ["AQAAAAD...", "base64"], "owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", "executable": false, "rentEpoch": 361, "space": 165 } }}value is null when the account does not exist or has been closed. Check for this before destructuring.
Notes
Use encoding: "jsonParsed" for token accounts, mint accounts, and other Metaplex/SPL types — the node will decode the raw bytes into a structured JSON object when the owner program is known.
For batch lookups use getMultipleAccounts to fetch up to 100 accounts in a single round-trip.