Skip to content

Token holders

View as Markdown
GET
/v2/token/{chain_id}/{address}/positions
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.

chain_id
required
integer
Allowed values: 1 56 8453 1399811149

Chain id: 1 Ethereum, 56 BNB Chain, 8453 Base, 1399811149 Solana.

Example

1
address
required
string

Token address. EVM is 40 lowercase hex characters without 0x; Solana is base58.

Example

c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
sort
string
default: balance
Allowed values: balance realized_pnl last_position_pnl

Ranking. Only balance is served today; realized_pnl and last_position_pnl answer 501.

Example

balance
limit
integer
default: 100 >= 1 <= 250

Rows per page. Larger values are clamped to 250.

Example

10
offset
integer
0

Rows to skip.

Example

0

A page of holders.

Media typeapplication/json
object
kind
required

The document type, for example token_stats.

string
version
required

The document schema version.

integer
chain_id
required

The chain the document is about.

integer
address

The token or wallet the document is about.

string
subject

The stream topic of this document: <kind>.<chain_id>.<address>.

string
lane
required

fast data is published as soon as a block is seen. safe data is published again once the block is final and replaces it.

string
Allowed values: fast safe
commitment
required

How settled the data is: processed (Solana fast), confirmed (EVM fast) or finalized (safe).

string
Allowed values: processed confirmed finalized
as_of

The block height (or Solana slot) the document reflects.

integer format: int64
seq
required

Increases with every newer version of the document. Keep the highest.

integer format: int64
updated_us

When the document was built, Unix microseconds.

integer format: int64
data
required

The document body. Its shape depends on kind.

object
data
required
object
chain_id
integer
token
string
sort
string
total_count

Number of ranked holders.

integer
total_count_approximate
boolean | null
positions
Array<object>
object
wallet
string
rank

1-based rank, offset included.

integer
balance

Raw integer balance in the token’s smallest unit.

string
supply_pct

Percent of supply held.

number
block

Block the balance was read at.

integer format: int64
approximate
boolean

Examples

Exampleweth

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.

Media typeapplication/json

Every error answer has this shape. error and message carry the same text.

object
error
required

What went wrong. For 5xx answers this is the status text.

string
message
required

The same text as error.

string
statusCode
required

The HTTP status.

integer

Examples

ExampleunknownChain
{
"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>.

Media typeapplication/json

Every error answer has this shape. error and message carry the same text.

object
error
required

What went wrong. For 5xx answers this is the status text.

string
message
required

The same text as error.

string
statusCode
required

The HTTP status.

integer

Examples

Examplemissing
{
"error": "api key missing",
"message": "api key missing",
"statusCode": 401
}

The chain is not served, or the token or resource is not known.

Media typeapplication/json

Every error answer has this shape. error and message carry the same text.

object
error
required

What went wrong. For 5xx answers this is the status text.

string
message
required

The same text as error.

string
statusCode
required

The HTTP status.

integer

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.

Media typeapplication/json

Every error answer has this shape. error and message carry the same text.

object
error
required

What went wrong. For 5xx answers this is the status text.

string
message
required

The same text as error.

string
statusCode
required

The HTTP status.

integer

Examples

Examplelimited
{
"error": "api key rate limit reached",
"message": "api key rate limit reached",
"statusCode": 429
}

The requested ranking is not served yet.

Media typeapplication/json

Every error answer has this shape. error and message carry the same text.

object
error
required

What went wrong. For 5xx answers this is the status text.

string
message
required

The same text as error.

string
statusCode
required

The HTTP status.

integer

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.

Media typeapplication/json

Every error answer has this shape. error and message carry the same text.

object
error
required

What went wrong. For 5xx answers this is the status text.

string
message
required

The same text as error.

string
statusCode
required

The HTTP status.

integer

Examples

Exampleunavailable
{
"error": "Service Unavailable",
"message": "Service Unavailable",
"statusCode": 503
}
Retry-After
integer

Seconds to wait before retrying.