LaserStream and Sender are now live! Experience ultra-fast data streaming and optimized transaction sending. Learn about LaserStream | Learn about Sender
Returns the balance for a given token account.
cURL
curl --request POST \ --url https://mainnet.helius-rpc.com/ \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": "1", "method": "getCompressedTokenAccountBalance", "params": { "address": null, "hash": "11111111111111111111111111111111" } }'
{ "context": { "slot": 100 }, "value": { "amount": 100 } }
Your Helius API key. You can get one for free in the dashboard.
Successfully retrieved compressed token account balance from the Solana blockchain
The response is of type object.
object
Was this page helpful?