getCompressedTokenBalancesByOwnerV2
Last updated
Was this helpful?
Last updated
Was this helpful?
Returns the token balances for a given owner. This is a paginated endpoint. The V2 version fixes a minor naming issue.
An ID to identify the request.
The version of the JSON-RPC protocol.
The name of the method to invoke.
POST / HTTP/1.1
Host: mainnet.helius-rpc.com
Content-Type: application/json
Accept: */*
Content-Length: 235
{
"id": "test-account",
"jsonrpc": "2.0",
"method": "getCompressedTokenBalancesByOwnerV2",
"params": {
"cursor": "3J98t1WpEZ73CNm",
"limit": 1,
"mint": "11111114DhpssPJgSi1YU7hCMfYt1BJ334YgsffXm",
"owner": "11111114DhpssPJgSi1YU7hCMfYt1BJ334YgsffXm"
}
}
{
"context": {
"slot": 100
},
"value": {
"cursor": "3J98t1WpEZ73CNm",
"items": [
{
"balance": 100,
"mint": "11111114DhpssPJgSi1YU7hCMfYt1BJ334YgsffXm"
}
]
}
}