Skip to main content
POST
cURL
curl --request POST \
  --url 'https://mainnet.helius-rpc.com/?api-key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "getCompressedTokenAccountsByOwner",
  "params": {
    "owner": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
    "cursor": "3J98t1WpEZ73CNm",
    "limit": 1,
    "mint": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9"
  }
}
'
{
  "context": {
    "slot": 100
  },
  "value": {
    "items": [
      {
        "account": {
          "hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
          "lamports": 100,
          "leafIndex": 100,
          "owner": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
          "seq": 100,
          "slotCreated": 100,
          "tree": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
          "address": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
          "data": {
            "data": "SGVsbG8sIFdvcmxkIQ==",
            "dataHash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
            "discriminator": 100
          }
        },
        "tokenData": {
          "amount": 100,
          "mint": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
          "owner": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
          "state": "initialized",
          "delegate": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
          "tlv": "SGVsbG8sIFdvcmxkIQ=="
        }
      }
    ],
    "cursor": "3J98t1WpEZ73CNm"
  }
}

Request Parameters

cursor
string
default:"3J98t1WpEZ73CNm"
Pagination cursor for retrieving subsequent sets of compressed token accounts in Solana wallets with large holdings
limit
number
Maximum number of compressed token accounts to return per request (for pagination)
mint
string
default:"11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9"
Filter compressed token accounts by specific Solana token mint address
owner
string
default:"11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9"
required
A Solana public key represented as a base58 string for account and wallet addresses.

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.

method
enum<string>
default:getCompressedTokenAccountsByOwner
required

The name of the method to invoke.

Available options:
getCompressedTokenAccountsByOwner
params
object
required

Response

Successfully retrieved compressed token accounts from the Solana blockchain for the specified wallet owner

context
object
required
value
object
required