New: Try Gatekeeper (Beta) for significantly lower latency. Learn More
New: Try Gatekeeper (Beta) for significantly lower latency. Learn More
Returns the balance for a given token account.
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getCompressedTokenAccountBalance",
"params": {
"address": null,
"hash": "11111111111111111111111111111111"
}
}
'{
"context": {
"slot": 100
},
"value": {
"amount": 100
}
}Documentation Index
Fetch the complete documentation index at: https://helius-laserstream-websocket-free-tier-server.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The version of the JSON-RPC protocol.
2.0 An ID to identify the request.
The name of the method to invoke.
getCompressedTokenAccountBalance Request for compressed account data
Show child attributes
{
"address": null,
"hash": "11111111111111111111111111111111"
}Was this page helpful?
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getCompressedTokenAccountBalance",
"params": {
"address": null,
"hash": "11111111111111111111111111111111"
}
}
'{
"context": {
"slot": 100
},
"value": {
"amount": 100
}
}