# Token Holder Clusters (`johto.data/token-holder-clusters`) Actor

Top holders, linked wallets and holder concentration for Solana, Ethereum and Hyperliquid tokens, with a risk score per token.

- **URL**: https://apify.com/johto.data/token-holder-clusters.md
- **Developed by:** [Johto Data](https://apify.com/johto.data) (community)
- **Categories:** Developer tools, AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.50 / 1,000 token reports

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Token Holder Clusters

See who really holds a token. One JSON report per token: top holders with % of supply, labels, linked-wallet clusters, insider flags, concentration numbers and one risk score. Built for trading bots and AI agents.

Not affiliated with Bubblemaps. We compute everything ourselves from public chain data.

### Chains

| Chain | What you get | Source |
|---|---|---|
| Solana | 20 largest holders (merged by owner), clusters, insiders, mint and freeze authority | Solana JSON-RPC. Bring your own RPC URL (free Helius or QuickNode works). The public RPC throttles the holder call. |
| Ethereum | Up to 100 holders with explorer labels (exchanges, pools, burn), clusters, insiders | Blockscout public API |
| Hyperliquid | Spot (HIP-1) holders found among genesis wallets, the deployer and the top 100 accounts, plus open perp whales in the same coin | Hyperliquid public info API |
| Bitcoin | Entity view of an address: balance, co-spent addresses, cluster balance, whale tier | mempool.space (Blockstream fallback) |
| Zcash | Not yet. Shielded funds are private by design. Transparent addresses are planned. | |
| Monero | Not possible. Monero hides senders, receivers and amounts, so there is no holder data to read. We return a clear "not supported" row instead of guessing. | |

### How clusters work

Two top holders are linked when one of these is true:

- the same wallet sent both of them their first funds (busy service wallets are ignored)
- one holder funded the other
- tokens moved directly between them
- they got their first tokens from the same wallet
- the same exchange wallet funded both within a few minutes (`fundingWindowMinutes`)
- (Hyperliquid) one is a sub-account of the other
- (Bitcoin) they were spent together as inputs in one transaction

Exchanges, pools, burn, program and contract holders are never clustered.

### Insider flags

A holder is flagged when it is the deployer, was funded by the deployer, got its first tokens straight from the deployer, got tokens in the first blocks or slots after creation, or was first funded in the 24 hours before creation. On Hyperliquid, a small genesis list counts as an insider allocation; a big one (over 200 wallets) is treated as an airdrop.

### Input

```json
{
  "tokens": ["solana:<MINT>", "ethereum:0x6982508145454ce325ddbe47a25d4ec3d2311933", "hyperliquid:HYPE", "bitcoin:34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo"],
  "topHolders": 20,
  "walletsToTrace": 15,
  "solanaRpcUrl": "https://mainnet.helius-rpc.com/?api-key=YOUR_KEY"
}
```

Your RPC URL and API keys are secret inputs. They are never logged or stored in the output.

### Output (one item per token)

```json
{
  "chain": "ethereum", "symbol": "PEPE", "token": "0x6982...", "deployer": "0xfbfe...", "createdAt": "2023-04-14T14:51:35Z",
  "topHolders": [{"rank": 1, "address": "0xf977...", "pctSupply": 11.92, "type": "cex", "label": "Binance: Hot Wallet 20",
                  "fundedBy": null, "firstTokenFrom": null, "clusterId": null, "insider": false, "insiderReasons": []}],
  "clusters": [{"clusterId": "C1", "size": 2, "pctSupply": 1.5, "linkTypes": ["token_transfer"], "members": ["0x7d32...", "0x9d93..."]}],
  "metrics": {"top10Pct": 36.5, "top10AdjustedPct": 16.4, "giniTopN": 0.35, "hhiTopN": 2188, "cexPct": 31.3, "largestClusterPct": 0, "insiderPct": 0},
  "risk": {"score": 10, "level": "low", "summary": "LOW risk (10/100): Top 10 non-exchange wallets hold 16.4% of supply."},
  "coverage": {"holdersAnalyzed": 20, "walletsTraced": 15, "notes": ["..."]}
}
```

`type` is one of `wallet`, `cex`, `lp`, `burn`, `program`, `contract`, `bridge`, `system`. `top10AdjustedPct` leaves out exchanges, pools, burn and contracts. `nakamotoTopN` is how many analyzed wallets it takes to pass 50% of supply (null if the analyzed set never does).

### For agents

- Read `risk.score` (0 to 100) and `risk.reasons` for a quick go or no-go.
- Use `clusters[].pctSupply` to see how much supply one group controls.
- Use `topHolders[].insiderReasons` to see why a wallet was flagged.
- Rows with `error` are not charged.

Works well from the Apify MCP server: call the Actor with `{"tokens": ["hyperliquid:HYPE"]}` and read the dataset.

### Limits

- Solana: up to 20 holders. Without your own RPC, the Actor scans the mint's token accounts on the public RPC, capped at 250 MB (roughly 400k holders). Bigger tokens like BONK need your own `solanaRpcUrl` or a higher `solanaScanLimitMb`. Creation time and deployer are only found for tokens with short histories. Funding is traced only for wallets with under 1000 transactions.
- Hyperliquid has no public full holder list, so holders outside genesis, the deployer, the top accounts and your `extraWallets` are not seen. Tokens moved to HyperEVM show up as the bridge address.
- Ethereum: wallet tracing stops after about 2 minutes per token on a slow explorer; `coverage.timeBudgetHit` tells you when that happened.
- Labels come from public explorer tags and a short built-in list. An unlabeled wallet can still be an exchange.
- Clusters and insider flags are heuristics, not proof of common ownership.

### Pricing

$0.015 per token report. Error and "not supported" rows are free.

### FAQ

**How do I export the results?**
Results are saved to a dataset you can download as JSON, CSV or Excel, or read through the Apify API.

**Can I run it on a schedule or from other tools?**
Yes. Use Apify Schedules, the Apify API, or the Make, Zapier and n8n integrations.

**Can AI agents use it?**
Yes. Every public Actor can be called as a tool through the Apify MCP server at mcp.apify.com.

### Related Actors

- [Hyperliquid Market Data](https://apify.com/johto.data/hyperliquid-market-data)

# Actor input Schema

## `tokens` (type: `array`):

One per line. Solana mint, Ethereum ERC-20 contract, Hyperliquid spot ticker (HYPE) or tokenId, or a Bitcoin address. Add a chain prefix to mix chains in one run, like ethereum:0x6982... or hyperliquid:HYPE or bitcoin:bc1q...

## `chain` (type: `string`):

Used for entries without a chain prefix.

## `topHolders` (type: `integer`):

Ethereum and Hyperliquid up to 100. Solana returns at most the 20 largest token accounts.

## `walletsToTrace` (type: `integer`):

How many top wallets get funding and first-transfer tracing. More is slower.

## `fundingWindowMinutes` (type: `integer`):

Holders funded by the same exchange wallet within this window are linked.

## `solanaRpcUrl` (type: `string`):

Your own HTTPS Solana RPC, for example a free Helius or QuickNode endpoint. The public RPC throttles the holder lookup.

## `solanaScanLimitMb` (type: `integer`):

When the RPC throttles the largest-holder call, the Actor scans all token accounts of the mint. Tokens with about 400k+ holders exceed 250 MB; raise this or use your own RPC.

## `blockscoutApiKey` (type: `string`):

Raises Ethereum explorer rate limits.

## `earlySlots` (type: `integer`):

Wallets that got tokens within this many slots of creation are flagged.

## `earlyBlocks` (type: `integer`):

Wallets that got tokens within this many blocks of creation are flagged.

## `creationPages` (type: `integer`):

Pages of 1000 signatures to walk back to find the mint's first transaction.

## `genesisWallets` (type: `integer`):

Largest genesis recipients to check for current balances.

## `leaderboardAccounts` (type: `integer`):

Largest Hyperliquid accounts by value to check for this token.

## `perpWhaleAccounts` (type: `integer`):

Top accounts to check for open perp positions in the same coin. 0 turns it off.

## `extraWallets` (type: `array`):

Extra 0x wallets to check for the token.

## `btcTxPages` (type: `integer`):

How many recent transaction pages to scan for co-spends.

## `maxClusterMembers` (type: `integer`):

Cap on linked addresses returned.

## `maxTokens` (type: `integer`):

Safety cap.

## Actor input object example

```json
{
  "tokens": [
    "hyperliquid:HYPE"
  ],
  "chain": "solana",
  "topHolders": 20,
  "walletsToTrace": 15,
  "fundingWindowMinutes": 10,
  "solanaScanLimitMb": 250,
  "earlySlots": 150,
  "earlyBlocks": 20,
  "creationPages": 3,
  "genesisWallets": 100,
  "leaderboardAccounts": 100,
  "perpWhaleAccounts": 50,
  "btcTxPages": 4,
  "maxClusterMembers": 25,
  "maxTokens": 10
}
```

# Actor output Schema

## `reports` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tokens": [
        "hyperliquid:HYPE"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("johto.data/token-holder-clusters").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "tokens": ["hyperliquid:HYPE"] }

# Run the Actor and wait for it to finish
run = client.actor("johto.data/token-holder-clusters").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tokens": [
    "hyperliquid:HYPE"
  ]
}' |
apify call johto.data/token-holder-clusters --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,johto.data/token-holder-clusters"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/rlVjosR0mMUXZb6kP/builds/TwLt7s0VMdvhtJZ5i/openapi.json
