getCompressedTokenBalancesByOwner
Retrieves all token balances for compressed accounts owned by an address. Overview with RPC method guide.
post
Body
idstring · enumRequiredPossible values:
An ID to identify the request.
jsonrpcstring · enumRequiredPossible values:
The version of the JSON-RPC protocol.
methodstring · enumRequiredPossible values:
The name of the method to invoke.
Responses
200Success
application/json
429
Exceeded rate limit.
application/json
500
The server encountered an unexpected condition that prevented it from fulfilling the request.
application/json
post
POST / HTTP/1.1
Host: mainnet.helius-rpc.com
Content-Type: application/json
Accept: */*
Content-Length: 233
{
"id": "test-account",
"jsonrpc": "2.0",
"method": "getCompressedTokenBalancesByOwner",
"params": {
"cursor": "3J98t1WpEZ73CNm",
"limit": 1,
"mint": "11111113pNDtm61yGF8j2ycAwLEPsuWQXobye5qDR",
"owner": "11111113pNDtm61yGF8j2ycAwLEPsuWQXobye5qDR"
}
}
{
"context": {
"slot": 100
},
"value": {
"cursor": "3J98t1WpEZ73CNm",
"token_balances": [
{
"balance": 100,
"mint": "11111113pNDtm61yGF8j2ycAwLEPsuWQXobye5qDR"
}
]
}
}
Last updated