Sub topic 4
Active Addresses: Definition and Computation
Assume you understand basic blockchain transactions, wallets, and blocks. You should also be comfortable reading simple Python and interpreting distributions. This chapter uses an address-level definition of activity. An address is a public identifier that can send or receive blockchain data. It is not necessarily one person, company, or device.
What an active address measures
An active address is an address that appears in at least one qualifying transaction during a chosen time window. For a daily metric, the usual process is:
- Select transactions whose timestamps fall on a calendar day.
- Extract the sender and receiver addresses.
- Remove duplicates.
- Count the remaining addresses.
For a transfer from A to B, both A and B are often counted as active. Some data providers count only addresses that initiated transactions, while others include receivers. Therefore, “daily active addresses” is not a universal metric until its inclusion rules are specified.
| Design choice | Example rule | Effect on the count |
|---|---|---|
| Time zone | UTC calendar day | Makes results comparable across locations |
| Address roles | Senders and receivers | Usually produces a larger count |
| Transfer type | Token transfers only | Excludes unrelated contract calls |
| Deduplication | Count each address once per day | Measures unique addresses, not events |
The metric is a count of address activity, not a direct count of users. One person can control many addresses, and one service can control thousands.
Account-based and UTXO differences
On an account-based blockchain, such as Ethereum, an account balance changes when a transaction or contract execution changes it. An address can therefore be active even when it sends no ordinary payment, such as when it calls a decentralized application.
A UTXO, or unspent transaction output, is a spendable output created by an earlier transaction. Bitcoin uses this model. A single transaction can consume several input addresses and create several output addresses. Change outputs can create or reuse addresses controlled by the sender. As a result, counting Bitcoin addresses can reflect transaction construction as much as human participation.
The ledger model affects the question being answered. “How many addresses appeared in transfers?” is measurable on both models. “How many users were active?” requires additional identity or clustering assumptions.
Computing daily active addresses
The following example counts distinct senders and receivers for each UTC day. It assumes that every record is a relevant transfer and that address strings have already been normalized.
from collections import defaultdict
from datetime import datetime, timezone
transfers = [
{"ts": 1700000000, "from": "0xa", "to": "0xb", "value": 5},
{"ts": 1700003600, "from": "0xb", "to": "0xc", "value": 2},
{"ts": 1700090000, "from": "0xa", "to": "0xc", "value": 1},
]
def daily_active_addresses(transfers):
days = defaultdict(set)
for t in transfers:
day = datetime.fromtimestamp(t["ts"], tz=timezone.utc).date()
days[day].add(t["from"])
days[day].add(t["to"])
return {day: len(addrs) for day, addrs in sorted(days.items())}
print(daily_active_addresses(transfers))The first two transfers occur on the same UTC day. That day contains three distinct addresses: 0xa, 0xb, and 0xc. The third transfer occurs on another day and contributes two addresses. The output is therefore a mapping from dates to unique-address counts.
A production calculation also needs to handle malformed timestamps, missing addresses, chain reorganizations, and duplicate records from the data source.
Choosing the activity definition
Before comparing two active-address series, document these rules:
- Whether contracts count as addresses.
- Whether receiving an asset without sending a transaction counts.
- Whether failed transactions count.
- Whether internal contract transfers count.
- Whether zero-value or spam transfers count.
- Whether system addresses and burn addresses are excluded.
- Which time zone defines a day.
- Whether the data covers one asset, one application, or the whole chain.
A count based on native-coin transactions can differ sharply from a count based on token transfer events. A contract-heavy application may generate many active addresses through automated calls without a similar increase in individual users.
Common distortions
Automated bots can create activity across many addresses. Airdrops and token incentives can produce short-lived bursts. Exchanges may move funds between internal wallets, inflating address activity without bringing new participants. Conversely, an exchange may represent many customers with one deposit address, hiding customer activity.
Address reuse creates another problem. If one address is used repeatedly, the metric may understate the number of people involved. If wallets rotate addresses frequently, it may overstate the apparent breadth of participation.
A useful interpretation compares active addresses with transaction count, transfer volume, and known labels. A rise in active addresses alongside higher volume may indicate broader or more intense activity. A rise in addresses with tiny transfers and no volume growth may instead indicate spam or an incentive campaign.
Exercise
Exercise
A day contains three transfers: A to B, B to C, and A to C. Under the sender-and-receiver definition, how many active addresses are counted?
Show answer
Three: A, B, and C. Each address is counted once even though A and C appear in multiple transfers.