curl "https://api.metastreams.dev/v1/holders?tokens=DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263&chains=solana&limit=50" \
-H "Authorization: Bearer $API_KEY"
curl "https://api.metastreams.dev/v1/holders?tokens=DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263&chains=solana&flags=bundler,insider" \
-H "Authorization: Bearer $API_KEY"
const url = new URL("https://api.metastreams.dev/v1/holders");
url.searchParams.set("tokens", "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263");
url.searchParams.set("chains", "solana");
url.searchParams.set("limit", "50");
url.searchParams.set("period", "cycle");
const response = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const [{ holders, holderCount, top10 }] = await response.json();
use serde_json::Value;
let series: Vec<Value> = reqwest::Client::new()
.get("https://api.metastreams.dev/v1/holders")
.query(&[
("tokens", "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"),
("chains", "solana"),
("limit", "50"),
("period", "cycle"),
])
.bearer_auth(std::env::var("API_KEY")?)
.send()
.await?
.error_for_status()?
.json()
.await?;
[
{
"chain": "solana",
"address": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
"holders": [
{
"rank": 7,
"address": "7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5",
"nativeBalance": "412.7",
"balance": "20500000000",
"supplyPct": "0.0231",
"buyVolume": { "native": "2500", "usd": "450000" },
"tokensBought": "25000000000",
"buyCount": 14,
"sellVolume": { "native": "598.5", "usd": "108000" },
"tokensSold": "4500000000",
"sellCount": 3,
"firstPurchaseAt": 1781250000000,
"avgEntryPrice": { "native": "0.0000001", "usd": "0.000018" },
"avgExitPrice": { "native": "0.000000133", "usd": "0.000024" },
"avgEntryMarketCap": { "native": "8880000", "usd": "1598400000" },
"avgExitMarketCap": { "native": "11810400", "usd": "2131200000" },
"realizedPnl": { "native": "148.5", "usd": "27000" },
"remainingPct": "82",
"funding": {
"status": "resolved",
"address": "5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9",
"amount": "500",
"asset": null,
"symbol": "SOL",
"sourceKind": "cex",
"sourceLabel": "Binance",
"timestamp": 1781200000000,
"tx": "3nVq8Fz1kT7pR2mWcX9sLdHfA4jEuY6gVnX1oB5iC0wQ2rT8yU3iO7pA1sD4fG6h"
},
"flags": ["whale"],
"platforms": [{ "platform": "photon" }],
"identities": [
{
"source": "gmgn",
"displayName": "Bonk Whale",
"handle": "bonkwhale",
"twitter": "bonkwhale",
"telegram": null,
"farcaster": null,
"avatar": null
}
]
}
],
"holderCount": 982114,
"top10": {
"avgEntryPrice": { "native": "0.000000094", "usd": "0.0000169" },
"avgExitPrice": { "native": "0.000000128", "usd": "0.0000231" }
},
"nextCursor": "eyJyIjozMH0",
"hasMore": true
}
]
[]
REST
Holders
Returns the current holders of up to 10 tokens, largest balance first, with each wallet’s trading figures on the token.
GET
/
v1
/
holders
curl "https://api.metastreams.dev/v1/holders?tokens=DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263&chains=solana&limit=50" \
-H "Authorization: Bearer $API_KEY"
curl "https://api.metastreams.dev/v1/holders?tokens=DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263&chains=solana&flags=bundler,insider" \
-H "Authorization: Bearer $API_KEY"
const url = new URL("https://api.metastreams.dev/v1/holders");
url.searchParams.set("tokens", "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263");
url.searchParams.set("chains", "solana");
url.searchParams.set("limit", "50");
url.searchParams.set("period", "cycle");
const response = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const [{ holders, holderCount, top10 }] = await response.json();
use serde_json::Value;
let series: Vec<Value> = reqwest::Client::new()
.get("https://api.metastreams.dev/v1/holders")
.query(&[
("tokens", "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"),
("chains", "solana"),
("limit", "50"),
("period", "cycle"),
])
.bearer_auth(std::env::var("API_KEY")?)
.send()
.await?
.error_for_status()?
.json()
.await?;
[
{
"chain": "solana",
"address": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
"holders": [
{
"rank": 7,
"address": "7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5",
"nativeBalance": "412.7",
"balance": "20500000000",
"supplyPct": "0.0231",
"buyVolume": { "native": "2500", "usd": "450000" },
"tokensBought": "25000000000",
"buyCount": 14,
"sellVolume": { "native": "598.5", "usd": "108000" },
"tokensSold": "4500000000",
"sellCount": 3,
"firstPurchaseAt": 1781250000000,
"avgEntryPrice": { "native": "0.0000001", "usd": "0.000018" },
"avgExitPrice": { "native": "0.000000133", "usd": "0.000024" },
"avgEntryMarketCap": { "native": "8880000", "usd": "1598400000" },
"avgExitMarketCap": { "native": "11810400", "usd": "2131200000" },
"realizedPnl": { "native": "148.5", "usd": "27000" },
"remainingPct": "82",
"funding": {
"status": "resolved",
"address": "5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9",
"amount": "500",
"asset": null,
"symbol": "SOL",
"sourceKind": "cex",
"sourceLabel": "Binance",
"timestamp": 1781200000000,
"tx": "3nVq8Fz1kT7pR2mWcX9sLdHfA4jEuY6gVnX1oB5iC0wQ2rT8yU3iO7pA1sD4fG6h"
},
"flags": ["whale"],
"platforms": [{ "platform": "photon" }],
"identities": [
{
"source": "gmgn",
"displayName": "Bonk Whale",
"handle": "bonkwhale",
"twitter": "bonkwhale",
"telegram": null,
"farcaster": null,
"avatar": null
}
]
}
],
"holderCount": 982114,
"top10": {
"avgEntryPrice": { "native": "0.000000094", "usd": "0.0000169" },
"avgExitPrice": { "native": "0.000000128", "usd": "0.0000231" }
},
"nextCursor": "eyJyIjozMH0",
"hasMore": true
}
]
[]
Returns the current holders of each token in
tokens, a comma-separated list of 1 to 10 addresses. Each series ranks holders by balance, largest first. chains limits the read to a comma-separated list of chain slugs. Omit it to read every chain. Pools and lockers are ranked alongside other wallets and carry the liquidity_pool or locker flag. The spot.holders stream delivers the same rows.
Filters
flagstakes a comma-separated list of wallet classifications, such asbundler,insider. A holder is included when it has at least one of them.periodsets the span of the trading figures.lifetime, the default, covers every round trip the wallet made on the token.cyclecovers the current round trip, from the time the wallet last had a zero balance.limitsets the number of rows returned for each token. The default is 30, and out-of-range values are clamped to 1–150 rather than rejected.
Response
The response is a list with one series per chain that holds each requested token, in the order of the request. Each series containschain, address, holders, holderCount, top10, nextCursor and hasMore. Each token costs one credit.
Pagination
Each series pages on its own, largest balance first.hasMore is true while the token has more holders, and nextCursor reads the next page. Send it as cursor with the same options, with that series’ token alone in tokens and, for an EVM token, its chain in chains. A holder whose balance changes between two pages can move across the page boundary.
holderslists the rows.rankis 1-based and, whenflagsis set, ranks within the matching wallets.holderCountis the token’s total number of holders and is not affected bylimitorflags. It counts trading wallets only, so it can be lower than a list that includes pools.top10containsavgEntryPriceandavgExitPrice, weighted by balance, across the first 10 rows returned. Each isnullwhen no row has a value.top10isnullon every page after the first.
realizedPnl cover the selected period. balance, supplyPct, nativeBalance and funding reflect the wallet’s current state. With period=cycle, avgEntryPrice is the cost basis of the open position. flags, platforms and identities are omitted from a row when empty.
Rows do not include a value or unrealized PnL. Calculate them from the token’s price, available from Tokens or spot.tokens:
- The value is
balancetimes the token’s price. - The unrealized PnL is the value minus
balancetimesavgEntryPrice.
404.
Errors
| Code | When |
|---|---|
UNSUPPORTED_CHAIN | A slug in chains is not supported |
VALIDATION_ERROR | No token or more than 10, a malformed address, an unknown flag or period, a cursor sent with other tokens, chains or options than its own series, or an unknown parameter |
curl "https://api.metastreams.dev/v1/holders?tokens=DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263&chains=solana&limit=50" \
-H "Authorization: Bearer $API_KEY"
curl "https://api.metastreams.dev/v1/holders?tokens=DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263&chains=solana&flags=bundler,insider" \
-H "Authorization: Bearer $API_KEY"
const url = new URL("https://api.metastreams.dev/v1/holders");
url.searchParams.set("tokens", "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263");
url.searchParams.set("chains", "solana");
url.searchParams.set("limit", "50");
url.searchParams.set("period", "cycle");
const response = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const [{ holders, holderCount, top10 }] = await response.json();
use serde_json::Value;
let series: Vec<Value> = reqwest::Client::new()
.get("https://api.metastreams.dev/v1/holders")
.query(&[
("tokens", "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"),
("chains", "solana"),
("limit", "50"),
("period", "cycle"),
])
.bearer_auth(std::env::var("API_KEY")?)
.send()
.await?
.error_for_status()?
.json()
.await?;
[
{
"chain": "solana",
"address": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
"holders": [
{
"rank": 7,
"address": "7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5",
"nativeBalance": "412.7",
"balance": "20500000000",
"supplyPct": "0.0231",
"buyVolume": { "native": "2500", "usd": "450000" },
"tokensBought": "25000000000",
"buyCount": 14,
"sellVolume": { "native": "598.5", "usd": "108000" },
"tokensSold": "4500000000",
"sellCount": 3,
"firstPurchaseAt": 1781250000000,
"avgEntryPrice": { "native": "0.0000001", "usd": "0.000018" },
"avgExitPrice": { "native": "0.000000133", "usd": "0.000024" },
"avgEntryMarketCap": { "native": "8880000", "usd": "1598400000" },
"avgExitMarketCap": { "native": "11810400", "usd": "2131200000" },
"realizedPnl": { "native": "148.5", "usd": "27000" },
"remainingPct": "82",
"funding": {
"status": "resolved",
"address": "5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9",
"amount": "500",
"asset": null,
"symbol": "SOL",
"sourceKind": "cex",
"sourceLabel": "Binance",
"timestamp": 1781200000000,
"tx": "3nVq8Fz1kT7pR2mWcX9sLdHfA4jEuY6gVnX1oB5iC0wQ2rT8yU3iO7pA1sD4fG6h"
},
"flags": ["whale"],
"platforms": [{ "platform": "photon" }],
"identities": [
{
"source": "gmgn",
"displayName": "Bonk Whale",
"handle": "bonkwhale",
"twitter": "bonkwhale",
"telegram": null,
"farcaster": null,
"avatar": null
}
]
}
],
"holderCount": 982114,
"top10": {
"avgEntryPrice": { "native": "0.000000094", "usd": "0.0000169" },
"avgExitPrice": { "native": "0.000000128", "usd": "0.0000231" }
},
"nextCursor": "eyJyIjozMH0",
"hasMore": true
}
]
[]
Authorizations
Query Parameters
Response
One series per chain each named token trades on, in the order the request named them, each with one page of its current holders, largest balance first.