Skip to main content
POST
getAccountInfo
curl --request POST \
  --url 'https://mainnet.helius-rpc.com/?api-key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getAccountInfo",
  "params": [
    "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri",
    {
      "encoding": "base58"
    }
  ]
}
'
{
  "jsonrpc": "2.0",
  "result": {
    "context": {
      "apiVersion": "2.0.15",
      "slot": 341197053
    },
    "value": {
      "lamports": 88849814690250,
      "owner": "11111111111111111111111111111111",
      "data": [
        "",
        "base58"
      ],
      "executable": false,
      "rentEpoch": 18446744073709552000,
      "space": 0
    }
  },
  "id": 1
}
New Feature: getAccountInfo now supports the changedSinceSlot parameter for incremental updates. When specified, the method returns only accounts that have been modified at or after the given slot number. For accounts that exist but haven’t changed since the specified slot, the response will contain status: "unchanged".

Request Parameters

pubkey
string
required
Pubkey of account to query, as a base-58 encoded string.
commitment
string
Commitment level for the query.
  • finalized
  • confirmed
  • processed
encoding
string
Encoding format for account data.
  • base58
  • base64
  • base64+zstd
  • jsonParsed
dataSlice
object
Request a slice of the account’s data.
dataSlice.offset
number
Byte offset from which to start reading.
dataSlice.length
number
Number of bytes to return.
minContextSlot
number
The minimum slot that the request can be evaluated at.
changedSinceSlot
number
Only return the account if it has been modified at or after this slot number. If the account exists but hasn’t changed since the specified slot, the response will contain status as “unchanged”.

Authorizations

api-key
string
query
required

Your Helius API key. You can get one for free in the dashboard.

Body

application/json
jsonrpc
enum<string>
default:2.0
required

The JSON-RPC protocol version.

Available options:
2.0
id
string
default:1
required

A unique identifier for the request.

Example:

"1"

method
enum<string>
default:getAccountInfo
required

The name of the RPC method to invoke.

Available options:
getAccountInfo
params
(string | Configuration Object · object)[]
required

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

Example:

"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"

Response

Successfully retrieved account information.

jsonrpc
string

The JSON-RPC protocol version.

Example:

"2.0"

result
object
id
integer

A unique identifier matching the request ID.

Example:

1

method
string

The method being called.

Example:

"getAccountInfo"

params
(string | object)[]

Parameters for the request.