LaserStream and Sender are now live! Experience ultra-fast data streaming and optimized transaction sending. Learn about LaserStream | Learn about Sender
Returns the token balance of an SPL Token account.
cURL
curl --request POST \ --url https://mainnet.helius-rpc.com/ \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": "1", "method": "getTokenAccountBalance", "params": [ "3emsAVdmGKERbHjmGfQ6oZ1e35dkf5iYcS6U4CPKFVaa" ] }'
{ "jsonrpc": "2.0", "id": "1", "result": { "context": { "slot": 1114 }, "value": { "amount": "9864", "decimals": 2, "uiAmount": 98.64, "uiAmountString": "98.64" } } }
Your Helius API key. You can get one for free in the dashboard.
Successfully retrieved the token account balance.
The response is of type object.
object
Was this page helpful?