Sub topic 2
Addresses Are Not People: Entities and Clustering
Prerequisites and the working model
This chapter assumes you understand blocks, transactions, wallet addresses, and basic Python. It also assumes you can read simple statistics such as counts and percentages.
An address is a blockchain identifier that can send, receive, or hold assets. An entity is the person, company, protocol, exchange, or other controller behind one or more addresses. One person can control many addresses. One exchange can control thousands or millions of deposit and operating addresses.
Therefore, an address count is not automatically a user count. On-chain analysis often tries to group addresses that probably belong to the same entity. This process is called entity clustering.
Why the distinction matters
Suppose a payment service uses 10,000 deposit addresses. A transaction involving each address may look like activity from 10,000 users. If those addresses are grouped under one known service, the result can instead be interpreted as activity involving one service and many customers.
The reverse problem also occurs. An analyst may fail to recognize that several addresses belong to the same person. The analysis then overstates the number of holders and understates the balance controlled by that entity.
| On-chain object | What it represents | Common interpretation error |
|---|---|---|
| Address | A ledger identifier | Treating it as one person |
| Entity | A likely common controller | Treating a heuristic as proof |
| Labeled service | A known exchange, protocol, or organization | Assuming every related address is known |
| Cluster | A group of addresses inferred to share control | Ignoring false positives and false negatives |
How clustering works
The available evidence depends on the ledger model.
UTXO-based ledgers
In a UTXO, or unspent transaction output, ledger, a transaction usually consumes one or more previous outputs and creates new outputs. Analysts often use the common-input heuristic:
- If several addresses provide inputs to the same transaction, one controller may control them all.
- A newly created output may be change returned to the sender.
- Repeated input and change patterns can connect more addresses.
These clues are useful but not certain. CoinJoin transactions deliberately combine inputs from multiple participants. Applying the common-input heuristic to such a transaction can incorrectly merge unrelated users.
Account-based ledgers
In an account-based ledger, each account has a balance and transactions update that balance directly. Ethereum is a common example. A transaction usually shows a sender and receiver, but it does not prove that two sender addresses share one controller.
Analysts instead use evidence such as:
- A known public label from the organization.
- Repeated funding from a common source.
- Identical operational behavior or timing.
- Shared interactions with a service.
- Information from explorers, filings, or the organization itself.
These signals are weaker than direct ownership evidence. A common funding source may be an exchange, a payroll service, or a bridge rather than a common owner.
Labels, heuristics, and clustering errors
A label is metadata that associates an address with a named service or entity. Labels may come from public disclosures, blockchain analytics companies, or analyst research. They are not all equally reliable, and they can become outdated when an organization changes infrastructure.
Clustering has two main error types:
- A false positive merges addresses controlled by different entities.
- A false negative leaves addresses from the same entity in separate clusters.
Privacy tools increase false positives and false negatives. Mixers, CoinJoin transactions, stealth addresses, and cross-chain bridges can hide or change relationships. Smart contracts create another complication: a contract address may hold assets or route transactions but does not behave like a human-owned wallet.
A sound data set should keep the original address records even after clustering. Store the cluster identifier, the evidence used, the source of each label, and a confidence level. This makes later corrections possible.
A small entity-level calculation
The following example replaces selected addresses with known entity labels before counting entities involved in transfers. Addresses without a label remain separate. This is a simple illustration, not a complete clustering system.
transfers = [
{"from": "0xdeposit1", "to": "0xuser1"},
{"from": "0xdeposit2", "to": "0xuser2"},
{"from": "0xuser1", "to": "0xexchange"},
]
labels = {
"0xdeposit1": "Example Exchange",
"0xdeposit2": "Example Exchange",
"0xexchange": "Example Exchange",
}
def entity_for(address):
return labels.get(address, address)
entities = set()
for transfer in transfers:
entities.add(entity_for(transfer["from"]))
entities.add(entity_for(transfer["to"]))
print(sorted(entities))
print("entity count:", len(entities))The two deposit addresses become one labeled entity. The two unlabeled user addresses remain distinct because the data does not justify merging them.
Choosing the right unit
Use address-level metrics when the question concerns ledger operations, such as how many addresses appeared in transactions. Use entity-level metrics when the question concerns likely controllers, such as whether ownership is concentrated among a few organizations.
Always state the unit and the data coverage. “Ten active addresses” and “ten active entities” are different claims. A result based only on labeled addresses may also miss most of the network.
Exercise
An exchange creates 1,000 deposit addresses, and all of them receive funds during one day. Should an analyst report 1,000 users?
Show answer
No. The data shows 1,000 active addresses. They may represent many customers, but they are also controlled operationally by one exchange. The analyst should report the address count separately from any customer or entity estimate.