Last updated 5 months ago
Was this helpful?
Returns the balance for a given token account.
An ID to identify the request.
test-account
The version of the JSON-RPC protocol.
2.0
The name of the method to invoke.
getCompressedTokenAccountBalance
Request for compressed account data
{"address":null,"hash":"11111111111111111111111111111111"}
POST / HTTP/1.1 Host: mainnet.helius-rpc.com Content-Type: application/json Accept: */* Content-Length: 149 { "id": "test-account", "jsonrpc": "2.0", "method": "getCompressedTokenAccountBalance", "params": { "address": null, "hash": "11111111111111111111111111111111" } }
{ "context": { "slot": 100 }, "value": { "amount": 100 } }