Token holders
const url = 'https://api.chainmetric.io/v2/token/1/c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/positions?sort=balance&limit=10&offset=0';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.chainmetric.io/v2/token/1/c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/positions?sort=balance&limit=10&offset=0' \ --header 'Authorization: <Authorization>'Returns the wallets that hold one token, ranked by balance, largest first.
Use it to answer “who are the top holders of this token and what share do they hold”.
Each row carries the wallet, rank, raw balance and percentage of supply.
total_count is the number of holders.
EVM chains; Solana support in progress.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Chain id: 1 Ethereum, 56 BNB Chain, 8453 Base, 1399811149 Solana.
Example
1Token address. EVM is 40 lowercase hex characters without 0x; Solana is base58.
Example
c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2Query Parameters
Section titled “Query Parameters”Ranking. Only balance is served today; realized_pnl and last_position_pnl answer 501.
Example
balanceRows per page. Larger values are clamped to 250.
Example
10Rows to skip.
Example
0Responses
Section titled “Responses”A page of holders.
object
The document type, for example token_stats.
The document schema version.
The chain the document is about.
The token or wallet the document is about.
The stream topic of this document: <kind>.<chain_id>.<address>.
fast data is published as soon as a block is seen. safe data is published again once the block is final and replaces it.
How settled the data is: processed (Solana fast), confirmed (EVM fast) or finalized (safe).
The block height (or Solana slot) the document reflects.
Increases with every newer version of the document. Keep the highest.
When the document was built, Unix microseconds.
The document body. Its shape depends on kind.
object
object
Number of ranked holders.
object
1-based rank, offset included.
Raw integer balance in the token’s smallest unit.
Percent of supply held.
Block the balance was read at.
Examples
WETH on Ethereum, limit 3
{ "kind": "token_positions", "version": 1, "chain_id": 1, "address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "subject": "token_positions.1.c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.balance", "lane": "fast", "commitment": "confirmed", "as_of": 26527665, "seq": 0, "updated_us": 1796037751920795, "data": { "chain_id": 1, "token": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "sort": "balance", "total_count": 3332381, "total_count_approximate": false, "positions": [ { "wallet": "4d5f47fa6a74757f35c14fd3a6ef8e3c9bc514e8", "rank": 1, "balance": "376351098585663147440537", "supply_pct": 16.295668654534037, "block": 26527665, "approximate": false }, { "wallet": "2f0b23f53734252bda2277357e97e1517d6b042a", "rank": 2, "balance": "297645549425290649621921", "supply_pct": 12.887788206700987, "block": 26527665, "approximate": false } ] }}The request is malformed, for example a bad address, an unknown chain or an out-of-range parameter. Do not retry unchanged.
Every error answer has this shape. error and message carry the same text.
object
What went wrong. For 5xx answers this is the status text.
The same text as error.
The HTTP status.
Examples
{ "error": "blockchain: unknown chain: \"ethereum\"", "message": "blockchain: unknown chain: \"ethereum\"", "statusCode": 400}The key is missing (api key missing), unknown (api key unknown) or revoked (api key revoked). Send Authorization: <key>.
Every error answer has this shape. error and message carry the same text.
object
What went wrong. For 5xx answers this is the status text.
The same text as error.
The HTTP status.
Examples
{ "error": "api key missing", "message": "api key missing", "statusCode": 401}The chain is not served, or the token or resource is not known.
Every error answer has this shape. error and message carry the same text.
object
What went wrong. For 5xx answers this is the status text.
The same text as error.
The HTTP status.
Example generated
{ "error": "example", "message": "example", "statusCode": 1}The key’s request rate limit is reached. No Retry-After is sent; back off and retry.
Every error answer has this shape. error and message carry the same text.
object
What went wrong. For 5xx answers this is the status text.
The same text as error.
The HTTP status.
Examples
{ "error": "api key rate limit reached", "message": "api key rate limit reached", "statusCode": 429}The requested ranking is not served yet.
Every error answer has this shape. error and message carry the same text.
object
What went wrong. For 5xx answers this is the status text.
The same text as error.
The HTTP status.
Example generated
{ "error": "example", "message": "example", "statusCode": 1}The service is busy or catching up. Wait for the Retry-After header’s seconds when present (5 or 10), then retry. Without it, retry with exponential backoff.
Every error answer has this shape. error and message carry the same text.
object
What went wrong. For 5xx answers this is the status text.
The same text as error.
The HTTP status.
Examples
{ "error": "Service Unavailable", "message": "Service Unavailable", "statusCode": 503}Headers
Section titled “Headers”Seconds to wait before retrying.