Parameters
pubkeystring required Pubkey of account to query, as base-58 encoded string.
configobject optional Configuration object.
commitmentstringCommitment level: "finalized", "confirmed", or "processed".
encodingstringEncoding for account data: "base58", "base64", "base64+zstd", or "jsonParsed".
dataSliceobjectLimit the returned account data. Only available for "base58", "base64" or "base64+zstd" encodings.
minContextSlotnumberThe minimum slot that the request can be evaluated at.
Result
object | nullIf the account doesn't exist, result will be null. Otherwise, an object containing:
datastring | [string, encoding] | objectData associated with the account, either as encoded binary data or JSON format.
executableboolIndicates if the account contains a program.
lamportsu64Number of lamports assigned to this account.
ownerstringBase-58 encoded Pubkey of the program this account has been assigned to.
rentEpochu64The epoch at which this account will next owe rent.
spaceu64The data size of the account.
Example
curl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getAccountInfo",
"params": [
"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
{ "commitment": "finalized", "encoding": "base58" }
]
}'