Shred Delivery and Sender are now live! Get earliest access to raw Solana data and optimized transaction sending. Learn about Shred Delivery | Learn about Sender
Returns the token balances for a given owner.
cURL
curl --request POST \ --url https://mainnet.helius-rpc.com/ \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": "1", "method": "getCompressedTokenBalancesByOwner", "params": { "cursor": "3J98t1WpEZ73CNm", "limit": 1, "mint": "11111113pNDtm61yGF8j2ycAwLEPsuWQXobye5qDR", "owner": "11111113pNDtm61yGF8j2ycAwLEPsuWQXobye5qDR" } }'
{ "context": { "slot": 100 }, "value": { "cursor": "3J98t1WpEZ73CNm", "token_balances": [ { "balance": 100, "mint": "11111113pNDtm61yGF8j2ycAwLEPsuWQXobye5qDR" } ] } }
Your Helius API key. You can get one for free in the dashboard.
Successfully retrieved compressed token balances by owner from the Solana blockchain
The response is of type object.
object
Was this page helpful?