Skip to main content
POST
/
getCompressedTokenAccountBalance
cURL
curl --request POST \
  --url https://mainnet.helius-rpc.com/getCompressedTokenAccountBalance \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "test-account",
  "jsonrpc": "2.0",
  "method": "getCompressedTokenAccountBalance",
  "params": {
    "address": null,
    "hash": "11111111111111111111111111111111"
  }
}
'
{
  "context": "<any>",
  "value": "<any>"
}

Body

application/json
id
enum<string>
required

An ID to identify the request.

Available options:
test-account
jsonrpc
enum<string>
required

The version of the JSON-RPC protocol.

Available options:
2.0
method
enum<string>
required

The name of the method to invoke.

Available options:
getCompressedTokenAccountBalance
params
object
required

Request for compressed account data

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

Response

context
any
required
value
any
required