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 the compressed account with the given address or hash.
cURL
curl --request POST \ --url https://mainnet.helius-rpc.com/ \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": "1", "method": "getCompressedBalance", "params": { "address": null, "hash": "11111111111111111111111111111111" } }'
{ "context": { "slot": 100 }, "value": 100 }
Your Helius API key. You can get one for free in the dashboard.
Successfully retrieved compressed account balance from the Solana blockchain
The response is of type object.
object
Was this page helpful?