POST
/
cURL
curl --request POST \
  --url https://mainnet.helius-rpc.com/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "getCompressedAccount",
  "params": {
    "address": null,
    "hash": "11111111111111111111111111111111"
  }
}'
{
  "context": {
    "slot": 100
  },
  "value": {
    "address": "11111112D1oxKts8YPdTJRG5FzxTNpMtWmq8hkVx3",
    "data": {
      "data": "SGVsbG8sIFdvcmxkIQ==",
      "dataHash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
      "discriminator": 100
    },
    "hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
    "lamports": 100,
    "leafIndex": 100,
    "owner": "11111112D1oxKts8YPdTJRG5FzxTNpMtWmq8hkVx3",
    "seq": 100,
    "slotCreated": 100,
    "tree": "11111112D1oxKts8YPdTJRG5FzxTNpMtWmq8hkVx3"
  }
}

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:getCompressedAccount
required

The name of the method to invoke.

Available options:
getCompressedAccount
params
object
required

Request parameters for retrieving compressed account data on Solana, including address identifier or data hash for compressed NFTs and tokens

Example:
{
"address": null,
"hash": "11111111111111111111111111111111"
}

Response

Successfully retrieved compressed account data from the Solana blockchain

context
object
required
value
object