getAccountInfo

POSTAccountsAll plans

Returns all information associated with a single account, including its data, owner and balance.

Try itSends a real request from your browser to the selected region.
POST
/

getAccountInfo returns an account's lamport balance, owning program, executable flag, and data.

encoding: jsonParsed returns structured JSON when the node has a parser for the account's owner program (System, Token, Token-2022, Stake, Vote and others); other accounts return as base64, decodable with the program's own account schema.

Plans & rate limitsAll plans
Free5/s
Operator50/s
Blade Runner200/s
Nexus500/s

Parameters

params is a JSON array, with values in this order: pubkey, config.

1pubkeystringrequired

Address of the account to look up, base-58 encoded.

2configobject

Optional configuration.

Show propertiesProperties
commitmentstringdefault: "finalized"

Bank state to read the account from.

Allowed values:finalizedconfirmedprocessed
encodingstringdefault: "base58"

How to encode data. jsonParsed returns structured fields when the node has a parser for the account's owner program and falls back to base64 otherwise; base58 fails for accounts larger than 129 bytes.

Allowed values:base58base64base64+zstdjsonParsed
dataSliceobject

Returns only a byte range of data instead of the whole thing. Rejected when encoding is jsonParsed.

Show propertiesProperties
offsetintegerrequired

Byte offset to start the slice at.

lengthintegerrequired

Number of bytes to return.

minContextSlotinteger

Minimum slot the node must have processed before answering.

Result

resultobject

The account, wrapped with context, or a null value if the account doesn't exist.

Show propertiesProperties
contextobjectrequired
Show propertiesProperties
slotinteger
apiVersionstring
valueobject | nullrequired
Show one ofOne of
Option 1object
Show propertiesProperties
lamportsintegerrequired

Balance, in lamports.

ownerstringrequired

Base-58 address of the program that owns this account.

executablebooleanrequired

Whether the account's data contains a loaded program (and is read-only at runtime).

rentEpochintegerrequired

Legacy rent-collection field. Rent collection is disabled network-wide; this is retained for backward compatibility and is not meaningful for current accounts.

spaceintegerrequired

Size of the account's data, in bytes.

dataanyrequired

Account data. A [base64String, encoding] 2-tuple for base58/base64/base64+zstd, or a parsed object ({program, parsed, space}) for jsonParsed.

Option 2null

Notes

  • rentEpoch shows 18446744073709551615 (u64::MAX) on most accounts, the sentinel value meaning rent collection does not apply, not a real epoch number.
  • jsonParsed falls back silently to base64 when the node has no parser for the account's owner program, so data.parsed is not always present.
  • dataSlice returns a byte range instead of the full account payload, useful when only a few fields are needed.