Sub topic 6
Labeling Entities and Judging Label Quality
Assume you understand blockchain transactions, wallet addresses, and the basic difference between Bitcoin’s UTXO model and Ethereum’s account model. This chapter focuses on turning addresses into useful entity labels without treating those labels as facts.
What an entity label means
An entity is a person, organization, service, or system that may control one or more addresses. An entity label connects addresses that are believed to belong to the same owner.
Examples include:
- ExchangeA
- ExchangeA deposit wallet
- MiningPoolB
- Token issuer
- DeFi lending contract
- Unknown large holder
An address is an on-chain identifier. It does not reveal a legal name by itself. A label is an attribution, which is a reasoned claim based on evidence.
Labels come from several sources:
- The entity publishes an address.
- An explorer or analytics provider identifies the address.
- Transactions connect the address to already labeled addresses.
- The address behaves like a known service.
- A clustering heuristic groups it with other addresses.
A label should include its source, date, confidence, and scope. “ExchangeA hot wallet” is more useful than simply “ExchangeA” because it describes both the organization and the wallet’s role.
Clustering is evidence, not proof
Clustering means grouping addresses that may share control. On UTXO chains, a common-input heuristic groups addresses used together as inputs in one transaction. The assumption is that one spender could authorize all those inputs.
def cluster_by_common_input(transactions):
parent = {}
def find(address):
parent.setdefault(address, address)
if parent[address] != address:
parent[address] = find(parent[address])
return parent[address]
def union(left, right):
left_root = find(left)
right_root = find(right)
if left_root != right_root:
parent[right_root] = left_root
for inputs in transactions:
for address in inputs:
find(address)
for address in inputs[1:]:
union(inputs[0], address)
return {address: find(address) for address in parent}
print(cluster_by_common_input([["A", "B"], ["B", "C"], ["D"]]))This heuristic can fail when a transaction combines funds from different users, such as in a CoinJoin transaction. It also does not apply directly to Ethereum accounts, where addresses are usually tracked separately unless other evidence connects them.
How to judge label quality
Evaluate a label along four dimensions:
| Dimension | Strong evidence | Weak evidence |
|---|---|---|
| Source | Entity disclosure or several independent sources | An unattributed social-media post |
| Coverage | Many known addresses and wallet roles | One address assumed to represent the whole entity |
| Freshness | Recently verified | Never reviewed after an address change |
| Specificity | Exchange and deposit-wallet role identified | Generic “exchange” label |
Confidence should describe evidence quality, not the importance of the address. A high-balance address with a weak label remains uncertain.
Keep an attribution record such as:
- Address or cluster identifier
- Proposed entity
- Wallet role
- Evidence links or transaction references
- First-seen and last-reviewed dates
- Confidence level
- Reason for inclusion or exclusion
Common labeling errors
Internal transfers between two wallets controlled by one exchange can look like external inflows and outflows if each wallet receives a separate label. A custodian may hold customer funds for many people, so its balance does not represent one investor. Smart contracts, bridges, and treasury wallets can also move large amounts without indicating buying or selling.
Treat labels as versioned data. If evidence changes, update the label and preserve the earlier version. This prevents a later analysis from silently rewriting history.
Exercise
An address receives funds from a known exchange, then sends funds to many unrelated addresses. Should you label it as an exchange wallet?
Show answer
No. The transfer pattern alone is insufficient. Check public disclosures, wallet role patterns, independent labels, and whether the address may instead be a customer, broker, or service provider.