# Crypto user counts: frozen address-role audit

**Actual observations, not simulated data.** This package supports the 2027 edition of “Crypto User Counts in 2027: Wallets, Traders and People Are Different Denominators.” Documentation and public observations were retrieved/reviewed on **29 November 2026**. The observed chain interval is historical: **1 June 2024**, not November 2026 or 2027.

## Scope and result

- Ethereum mainnet, chain ID 1.
- Inclusive blocks 20,000,000 through 20,000,020: 21 blocks; endpoint block times 22:36:47–22:40:47 UTC on 1 June 2024.
- Emitting pool contract: `0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640`.
- Event: `Swap(address,address,int256,int256,uint160,uint128,int24)`.
- Topic 0: `0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67`.
- 15 observed Swap logs, 15 distinct transaction hashes, 14 transaction-origin addresses, 6 event senders, 9 event recipients.
- Sender/recipient intersection: 4 addresses; union: 11. The union of origins, event senders and event recipients is 25 addresses. None is a human or trader-entity estimate.
- 0 observed duplicate event keys; 7 events have the same sender and recipient; all 15 events have an origin different from the event sender.

The chosen short interval is a bounded demonstration, not a random or representative sample. It cannot measure market growth, protocol-wide usage, unique customers, people, bot shares or any provider's full-network active-address metric.

## Reproduce the actual counts offline

From this folder, run:

```sh
python reproduce.py
python test-reproduce.py
```

Only Python's standard library is required. The script reads the saved source responses, checks the emitting contract/topic/block range, matches every event against its transaction's retained log payload, checks block timestamps, and derives a block-hash-qualified event key. It then calculates the result independently with Python sets and SQLite `DISTINCT`, `UNION` and `INTERSECT`. It writes normalized JSON/CSV, summary JSON, the SQL queries and capture-file checksums. It stops if the frozen expected results change.

The actual sample is `data/`. `pool-swap-logs.json` contains the decoded API response. `transactions/` contains all 15 complete decoded `gettxinfo` responses, including logs. `block-headers.json` preserves selected fields and exact source URLs from separately requested BlockCypher headers for the range endpoints and every event-bearing block. It is not a capture of all transactions in every block or a continuous parent-hash validation.

### Event and address conventions

The deduplication key is `(chain_id, block_hash, transaction_hash, log_index)`. Identical observations with the same key collapse. Conflicting payloads fail validation. Addresses are lowercased 20-byte Ethereum identifiers within chain 1, without name-based merging or heuristic entity clustering. A transaction is distinct by hash inside this fixed chain/interval. The `origin` column is the transaction response's `from` field; `sender` and `recipient` are the two indexed fields of the pool's `Swap` event. A sender is the caller receiving the pool callback; a recipient receives this pool's output. These roles do not identify the final beneficiary or a person.

Failed transactions without retained Swap logs, other event types, other pools/contracts, other chains/blocks and offchain customers are outside the event population. No address is removed as a router, relayer, bot, contract or alleged Sybil identity. No inferred real-world identities are appended.

## Public source queries and capture method

The original bounded logs request is:

```
https://eth.blockscout.com/api?module=logs&action=getLogs&fromBlock=20000000&toBlock=20000020&address=0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640&topic0=0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67
```

For every returned transaction hash:

```
https://eth.blockscout.com/api?module=transaction&action=gettxinfo&txhash=TRANSACTION_HASH
```

For endpoint/event-bearing headers:

```
https://api.blockcypher.com/v1/eth/main/blocks/BLOCK_HEIGHT?txstart=0&limit=1
```

The first boundary-header query used `limit=50`; the saved record retains that exact URL. Only header fields were retained, not its partial transaction list.

The research environment obtained these public responses using an HTML-rendering fetch service. Their JSON `<pre>` contents were decoded and saved without adding observations. This is a capture of public API JSON values, not original wire bytes or HTTP headers. `capture-checksums.json` hashes the saved JSON files. Direct command-line access was unavailable in that environment. The optional standard-library `acquire.py` implements the same public GET requests for an independent environment:

```sh
python acquire.py /path/to/new-capture
```

It refuses an existing destination to preserve the frozen record. It rejects unsuccessful/capped logs and paginated transaction responses rather than silently treating them as complete. It has not been end-to-end network-tested in this environment. Public provider endpoints, access conditions and rate limits may change. The raw query returned 15 rows, below Blockscout's documented 1,000-log cap, and all 15 transaction responses reported no next log page. That supports this bounded extraction; it is not independent proof that the provider indexed every canonical-chain event correctly. Block headers came from a second provider, but the event/transaction payloads came from the same explorer service. An independent archival node comparison would be a stronger check.

## The separate hypothetical worksheet

`tool.js`, `cases.json` and `test-tool.mjs` concern fictional aggregate arithmetic. They do not read the actual data directory. The article's interactive defaults are 14 raw rows minus 2 verified duplicate rows = 12 retained events; 8 transactions; 6 origins; 3 senders; 7 recipients; intersection 2; union 8. These intentionally differ from the observed sample. Run `node test-tool.mjs` to check the 38 arithmetic/validation fixtures. The shared production runtime adds form parsing, reset, exports and accessible status updates.

Source definitions are in the accompanying source register. The analysis interprets only observable address roles. There is no validated identity linkage, so a unique-human count remains unknown.
