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
- Base URLhttps://rpc.ankr.com/multichain/569ca1f392f7d3d0bb1073a1173ecb649af1d9249231fe59fa95db19d5ae41fe
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
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.
Changes
No recorded changes to this operation across all 1 revision of this API.