Sub topic 2
Why active address counts mislead
This chapter assumes you understand blockchain transfers and wallets, and that you can read simple Python. It covers the first four parts of the plan: active address distortions, transfer volume, exchange netflow, and balance cohorts.
Why active address counts mislead
An active address is an address that sends or receives at least one transfer in a time window, usually one day. The count looks like a user count, but it is not one. Three distortions matter most:
- Address splitting: one person spreads funds across many addresses, which inflates the count.
- Shared addresses: an exchange or payment service routes many users through one address, which deflates the count.
- Automated activity: bots and token contracts create transfers that do not reflect human use.
Transaction counts and transfer volume
A transaction count tallies transactions. Transfer volume sums the value moved. One large transfer can dominate volume while adding only one to the count. Report both, and state which definition you used.
Exchange inflows, outflows, and netflow
Inflow is value sent to labeled exchange addresses. Outflow is value sent from them. Netflow is inflow minus outflow. Transfers between two exchange addresses are excluded. Labels come from clustering and public tags, and they contain errors, so a mislabeled wallet shifts the result.
def exchange_netflow(transfers, exchange_addresses):
inflow = 0
outflow = 0
for t in transfers:
from_ex = t["from"] in exchange_addresses
to_ex = t["to"] in exchange_addresses
if to_ex and not from_ex:
inflow += t["value"]
elif from_ex and not to_ex:
outflow += t["value"]
return {"inflow": inflow, "outflow": outflow, "netflow": inflow - outflow}
exchanges = {"0xb"}
transfers = [
{"from": "0xa", "to": "0xb", "value": 10},
{"from": "0xb", "to": "0xc", "value": 4},
]
print(exchange_netflow(transfers, exchanges))The output is {'inflow': 10, 'outflow': 4, 'netflow': 6}.
Holder distribution and balance cohorts
A balance cohort is a group of addresses with balances in the same range, such as 1 to 10 units. Count the addresses and the supply in each cohort. This shows whether supply sits with many small holders or a few large ones. Cohorts depend on entity mapping too. If one owner splits a large balance across addresses, the balance moves into smaller cohorts.
Exercise
Using the netflow example above, what is netflow if a second transfer of 3 units goes from 0xa to 0xb?
Show answer
Inflow rises to 13 (10 + 3), outflow stays at 4, so netflow is 9.