Token API

List wallet holders of an ERC-20 token, ranked by balance

Returns wallet addresses that hold the specified ERC-20 token, with each holder's human-readable balance and the raw integer balance (value × 10^decimals). Holders are returned ranked by balance, descending.

Pass contractAddress of the token plus the blockchain it lives on. Paginate with pageSize (default 10000, max 10000) and the nextPageToken echoed in each response.

Part of the Token API product (700 compute units per call, $0.00007 at base rate).

post/?ankr_getTokenHolders

Request

Request body

idinteger required

Client-supplied request ID echoed in the response.

jsonrpc'2.0' required
method'ankr_getTokenHolders' required

Example request

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "ankr_getTokenHolders",
  "params": {
    "blockchain": "eth",
    "contractAddress": "0x40eb746dee876ac1e78697b7ca85142d178a1fc8",
    "pageSize": 2
  }
}

Response

Success. JSON-RPC result carries holder list plus token decimals and total holder count. JSON-RPC errors are returned with HTTP 200; check the response body for an error key.

idinteger required
jsonrpc'2.0' required

Changes

No recorded changes to this operation across all 1 revision of this API.