Sub topic 8
Holder distribution and balance cohorts
This chapter assumes you know what an address, a balance, and a token supply are. It also assumes you can read short Python programs and know what a percentile and a share of a total are. Earlier chapters covered ledger models, entities and clustering, and how to get on-chain data. Here you will turn a list of balances into a cohort table and learn what that table can and cannot say.
What a holder distribution is
A holder distribution answers one question: how is the supply of an asset spread across the places that hold it? Active addresses and flows measure movement over a period. A holder distribution measures a state at one moment. It is a snapshot of who holds how much.
You build one in three steps:
- Take a snapshot of balances at a chosen block or timestamp.
- Group the balances into ranges. Each range is a balance cohort.
- For each cohort, report the number of holders and the amount of supply they hold.
Two numbers per cohort matter. The first is the holder count. The second is the supply share, which is the cohort's coins divided by total supply. Most real distributions are very skewed. Many holders sit in the smallest cohorts and own almost nothing, and a few holders in the largest cohorts own most of the supply. Reporting only one of the two numbers hides this.
Getting balances
How you get a balance depends on the ledger model.
- Account-based chains store a balance per account. You can read it directly from state at a given block, or rebuild it by summing all transfers in and out.
- UTXO chains store unspent transaction outputs. An address's balance is the sum of the unspent outputs that pay to it. You compute it by scanning the set of unspent outputs, not by looking up a single number.
In both cases, record the snapshot time. A distribution with no timestamp cannot be compared with another one. Your data source determines how much work this is. A node gives you state at a block. An indexer or analytics API often provides daily snapshots that are already computed.
Choosing cohort boundaries
Boundaries are a judgment call, and they change what the table shows. There are three common approaches.
| Approach | Example boundaries | Strength | Weakness |
|---|---|---|---|
| Powers of ten | 1, 10, 100, 1,000, 10,000 coins | Simple, works for any asset, stable over time | A fixed range means different things at different prices |
| Fiat value | Under $100, $100 to $10,000, and so on | Reflects economic size to a holder | Boundaries move as the price moves, so cohorts drift |
| Percentile | Top 1%, next 9%, and so on | Always compares like with like | Holder counts per cohort are fixed by construction, so it hides growth in holder count |
Powers of ten are the usual default for a first analysis because the boundaries do not change between snapshots. Some analytics providers use named cohorts, with labels such as "shrimp" and "whale". The labels are informal. Different providers use different thresholds, so check the definition before you compare two sources.
Use half-open ranges, where the lower bound is included and the upper bound is excluded. A balance of exactly 10 then belongs to exactly one cohort. If you skip this rule, boundary values get double-counted or dropped.
Computing a cohort table
The following program builds a cohort table from a dictionary of balances. It uses bisect_right to find the cohort, which gives half-open ranges. It skips zero balances and any address in an exclude set.
from bisect import bisect_right
EDGES = [1, 10, 100, 1_000, 10_000]
LABELS = ["<1", "1-10", "10-100", "100-1k", "1k-10k", "10k+"]
def cohort_table(balances, exclude=frozenset()):
rows = [{"label": label, "addresses": 0, "coins": 0.0} for label in LABELS]
for address, balance in balances.items():
if balance <= 0 or address in exclude:
continue
row = rows[bisect_right(EDGES, balance)]
row["addresses"] += 1
row["coins"] += balance
total = sum(row["coins"] for row in rows)
for row in rows:
row["share"] = row["coins"] / total if total else 0.0
return rows
balances = {
"0xa1": 0.4,
"0xa2": 3,
"0xa3": 12,
"0xa4": 75,
"0xa5": 640,
"0xa6": 2500,
"0xa7": 18000,
"0xa8": 0,
"0xa9": 0.05,
}
print(f"{'cohort':>8} {'addrs':>5} {'coins':>10} {'share':>7}")
for row in cohort_table(balances):
print(
f"{row['label']:>8} {row['addresses']:>5} "
f"{row['coins']:>10.2f} {row['share']:>7.2%}"
)Total supply among non-zero holders is 21,230.45 coins across eight addresses. The table the program prints is approximately:
| Cohort | Addresses | Coins | Share |
|---|---|---|---|
| <1 | 2 | 0.45 | 0.00% |
| 1-10 | 1 | 3.00 | 0.01% |
| 10-100 | 2 | 87.00 | 0.41% |
| 100-1k | 1 | 640.00 | 3.01% |
| 1k-10k | 1 | 2500.00 | 11.78% |
| 10k+ | 1 | 18000.00 | 84.78% |
Address 0xa8 has a zero balance, so it appears in no cohort. Six of the eight holders in the table hold under 100 coins, yet together they hold less than half a percent of supply. One address holds almost 85%. The next chapter turns this skew into single numbers, top-N share and the Gini coefficient.
The pipeline from raw balances to a cohort table has several stages where choices enter:
Reading a cohort table
Compare two columns for each cohort: its share of holders and its share of supply. Here the largest cohort has one of eight holders (12.5%) but 84.78% of supply. The smallest cohort has two holders (25%) and under 0.01% of supply. The gap between the two shares is what the table is showing you.
It is also useful to compare the same cohort across dates. Look at which cohorts gain holders and which lose them. A growing count in the smallest cohorts can mean new users arriving. A growing supply share in the largest cohorts can mean accumulation by big holders. Both readings are only hypotheses, because the data cannot tell you why a balance changed. The later chapter on combining metrics returns to this.
Cohorts also lose and gain holders as balances cross a boundary. If a holder moves from 9.9 coins to 10.1 coins, the holder count in "1-10" drops by one and the count in "10-100" rises by one. The holder did almost nothing, but the table changed. Keep this in mind for any holder whose balance sits near a boundary. It matters most for the many small balances clustered just under round numbers.
What distorts a holder distribution
A raw cohort table is easy to compute and easy to misread. These are the main problems, in rough order of importance.
Addresses are not holders
A holder count here is really an address count. One person can split funds across many addresses, which inflates the small cohorts. One exchange or custodian can hold millions of users' coins in a few addresses, which inflates the top cohorts. Clustering addresses into entities, covered earlier, reduces this error but never removes it, because clustering heuristics can be wrong in both directions. Treat any "number of holders" figure as "number of addresses with a balance" unless the source states otherwise.
Custodians and exchanges
Exchange wallets are often among the largest balances. Their coins belong to many customers, so a top cohort that is mostly exchanges says little about concentration of ownership. Consider running the table twice, once with all addresses and once with labeled exchange addresses passed in exclude. Compare the two runs. If the top cohort's share drops sharply, your original picture of concentration was mostly an artifact of custody. Be careful with the opposite step too. Removing a labeled address removes its coins from the total as well, so shares recompute against a smaller supply.
Contracts, burn addresses, and locked supply
Not every address with a balance is a holder in a meaningful sense.
- Smart contracts such as staking contracts, bridges, and liquidity pools hold coins on behalf of users. A single pool contract can look like a very large holder.
- Burn addresses hold coins that nobody can spend. They appear as very large holders but represent removed supply.
- Treasury, vesting, and escrow wallets hold coins that are not circulating yet.
Decide in advance which of these you include. Write that decision down with the results, because two analysts who choose differently will get different tables from the same data.
Dust and lost coins
Many addresses hold tiny balances, often left over from fees or sent as unsolicited "dust". Including them inflates the lowest cohort's holder count. Some analyses set a minimum balance, for example 0.001 coins. The choice changes only the count in the smallest cohort, not the supply shares, but it can make holder growth look faster or slower than it is. Lost coins have the opposite effect. Coins at addresses whose keys are gone still appear in the data as normal balances and cannot be told apart from a patient holder.
Normalization and time
Absolute coin counts mean different things for different assets, so cohort boundaries need to make sense for the asset. A boundary of 1 coin is large for an asset priced at $60,000 and trivial for one priced at $0.01. For comparing across assets, percentile cohorts or fiat-value cohorts are often more informative than powers of ten.
If supply grows over time through issuance, compare shares rather than coin amounts. Also, snapshot at consistent times. Comparing a Monday snapshot with a Sunday snapshot confuses real change with weekly patterns, and a snapshot taken mid-block-range on one chain may not line up with one taken on another.
A checklist before you publish a table
- State the snapshot block or time and the asset's total supply used for shares.
- State the cohort boundaries and whether ranges are half-open.
- State how you treated zero balances, dust, contracts, burn addresses, and labeled exchanges.
- State whether holders are addresses or clustered entities.
- Check that the shares add up to 100% and that holder counts add up to the number of non-excluded, non-zero addresses.
Step 5 is cheap and catches boundary bugs, such as a balance falling into two cohorts or into none.
Exercises
Exercise
In the cohort table above, the 10k+ cohort has 1 of 8 holders but 84.78% of supply. Suppose address 0xa7 is a labeled exchange wallet and you pass it in exclude. What happens to the supply share of the 1k-10k cohort, and why?
Show answer
Excluding 0xa7 removes 18,000 coins from the total, so total supply falls from 21,230.45 to 3,230.45. The 1k-10k cohort still holds 2,500 coins, so its share rises from about 11.78% to about 77.39% (2,500 divided by 3,230.45). The share changes only because the denominator shrank. The 10k+ cohort now has no holders and a share of 0.
Exercise
A balance of exactly 100 coins appears in the data. Using the code above, which cohort does it fall into, and what would go wrong if the ranges were closed on both ends?
Show answer
bisect_right(EDGES, 100) returns 3, so the balance falls in "100-1k". The lower bound is included and the upper bound is excluded. If both ends were included, a balance of exactly 100 would match both "10-100" and "100-1k" and be counted twice, so holder counts and supply shares would no longer add up to the true totals.
Exercise
Over a month, the number of addresses in the "<1" cohort doubles, while the supply share of that cohort barely changes. Give two explanations that the data alone cannot distinguish, and one check that would help.
Show answer
One explanation is that many new small users arrived. Another is that existing holders split their coins across more addresses, or that someone sent dust to many addresses. A useful check is to apply a minimum balance (for example, ignore balances under 0.001) and see whether the growth disappears. If it does, the growth was mostly dust. You could also look at whether the new addresses were funded by a few common senders, which suggests one entity creating many addresses.