RPC MethodsHTTPgetAccountInfo

Account

getAccountInfo

Returns all information associated with the account of provided Pubkey.

Parameters

pubkeystring required

Pubkey of account to query, as base-58 encoded string.

configobject optional

Configuration object.

commitmentstring

Commitment level: "finalized", "confirmed", or "processed".

encodingstring

Encoding for account data: "base58", "base64", "base64+zstd", or "jsonParsed".

dataSliceobject

Limit the returned account data. Only available for "base58", "base64" or "base64+zstd" encodings.

minContextSlotnumber

The minimum slot that the request can be evaluated at.

Result

object | null

If the account doesn't exist, result will be null. Otherwise, an object containing:

datastring | [string, encoding] | object

Data associated with the account, either as encoded binary data or JSON format.

executablebool

Indicates if the account contains a program.

lamportsu64

Number of lamports assigned to this account.

ownerstring

Base-58 encoded Pubkey of the program this account has been assigned to.

rentEpochu64

The epoch at which this account will next owe rent.

spaceu64

The data size of the account.

Example

Request
JSON
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" }
  ]
}'
Response
JSON
{
"jsonrpc": "2.0",
"result": {
"context": {
"apiVersion": "2.0.15",
"slot": 341197053
},
"value": {
"data": [
"",
"base58"
],
"executable": false,
"lamports": 88849814690250,
"owner": "11111111111111111111111111111111",
"rentEpoch": 18446744073709551615,
"space": 0
}
},
"id": 1
}