Skip to main content
POST
Get holder counts for many tokens in one call with getTokenHolderCounts. Powered by Ridge DB. Even USDC, USDT and wSOL together answer in well under a millisecond.
  • Pass 1 to 5,000 mint addresses. Results come back in request order.
  • A holder is a token account with a balance above zero, SPL Token and Token-2022 together. Counts are token accounts, not unique owners.
  • Every count in a reply is read at the same slot (context.slot), so tokens compare fairly.
  • Use commitment and minContextSlot to choose the view and refuse stale data.
Costs 1 credit per call and counts only against General RPS. Request setup and error handling: RPC quickstart. Billing: credits and limits.

Authorizations

api_key
string
query
required

Body

application/json
jsonrpc
enum<string>

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string

A unique identifier for the request.

Example:

"1"

method
enum<string>

The name of the RPC method to invoke.

Available options:
getTokenHolderCounts
Example:

"getTokenHolderCounts"

params
(string[] | object)[]

The list of mints, then an optional configuration object.

Token mint addresses, as base-58 encoded strings. 1 to 5,000 mints per request.

Required array length: 1 - 5000 elements
Example:

Response

Successfully retrieved holder counts.

jsonrpc
enum<string>

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string

Identifier matching the request.

Example:

"1"

result
object

Holder counts, all read at the same slot.