POST
/
getTokenAccounts
curl --request POST \
  --url https://mainnet.helius-rpc.com/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "getTokenAccounts",
  "params": {
    "owner": "86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY"
  }
}'
{
  "last_indexed_slot": 365750752,
  "total": 2,
  "limit": 100,
  "cursor": "<string>",
  "token_accounts": [
    {
      "address": "<string>",
      "mint": "<string>",
      "owner": "<string>",
      "amount": 123,
      "delegated_amount": 123,
      "frozen": true,
      "burnt": "<any>"
    }
  ]
}

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 version of the JSON-RPC protocol.

Available options:
2.0
id
string
default:1
required

An ID to identify the request.

Example:

"1"

method
enum<string>
default:getTokenAccounts
required

The name of the method to invoke.

Available options:
getTokenAccounts
params
object
required

Response

Successful response

last_indexed_slot
integer

All data up to and including this slot is guaranteed to have been indexed.

Example:

365750752

total
integer

The number of results found for the request.

Example:

2

limit
integer

The maximum number of results requested.

Example:

100

cursor
string

The cursor used for pagination.

token_accounts
any[]

An array of token accounts.