getCompressedBalance

Returns the balance for the compressed account with the given address or hash

post
Body
idstring · enumRequired

An ID to identify the request.

Possible values:
jsonrpcstring · enumRequired

The version of the JSON-RPC protocol.

Possible values:
methodstring · enumRequired

The name of the method to invoke.

Possible values:
Responses
200Success
application/json
post
POST / HTTP/1.1
Host: mainnet.helius-rpc.com
Content-Type: application/json
Accept: */*
Content-Length: 144

{
  "id": "test-account",
  "jsonrpc": "2.0",
  "method": "getCompressedAccountBalance",
  "params": {
    "address": null,
    "hash": "11111111111111111111111111111111"
  }
}
{
  "context": {
    "slot": 100
  },
  "value": 100
}

Last updated

Was this helpful?