Sub topic 1
What a Public Ledger Does and Does Not Reveal
Prerequisites
This chapter assumes you already know the following:
- A blockchain is a shared, append-only record of transactions. A wallet address is an identifier that can receive and hold funds.
- Bitcoin and Ethereum work differently at a high level. You do not need the details yet, because the next chapter covers them.
- You can read basic Python: lists, dictionaries, and functions.
You do not need any on-chain analytics experience. This chapter sets the frame for the rest of the tutorial. Every later technique, such as clustering, labeling, netflow, and whale alerts, depends on what the ledger can and cannot tell you.
Why This Matters for Flow Tracking
Tracking exchange flows and large holders starts from one fact. Anyone can download the full history of a public blockchain and read every transfer. That openness is what makes analysis possible. It also hides a trap: the ledger records movements of value between addresses, not facts about people or intentions. Most mistakes in on-chain analysis come from treating the first as if it were the second.
By the end of this chapter you should be able to:
- List what a public ledger reliably reveals.
- List what it does not reveal.
- Explain why the gap between the two shapes every signal you build later.
What the Ledger Reveals
A public ledger such as Bitcoin or Ethereum is replicated across thousands of nodes. Each node can validate and store every transaction. Every confirmed transaction exposes the following data.
- Sender and receiver addresses. These are strings, not names.
- Amounts. The quantity of the native coin or token moved.
- Timing. The block number and block timestamp. Block time is coarse. A block on Ethereum arrives roughly every 12 seconds, and Bitcoin blocks arrive roughly every 10 minutes.
- Fees paid. What the sender offered the network to include the transaction.
- Ordering. The exact position of each transaction within its block.
- Smart contract activity. On chains that support it, which contract was called, with what input, and which events it emitted.
Three consequences follow.
- Balances are derivable. You can compute the balance of any address at any past block by replaying history. There is no private account book to request.
- History is permanent. Confirmed data does not change except in a rare chain reorganization near the tip. You can audit the past years later and get the same answer.
- Everyone sees the same data. Two analysts who read the same chain should get identical raw transfers. Disagreements come from interpretation, not from the data.
Here is a minimal example. It replays transfers to compute balances at a chosen block, which is the core operation behind every holder ranking later in this tutorial.
from collections import defaultdict
transfers = [
{"block": 98, "from": None, "to": "addr_a", "amount": 10.0}, # new coins
{"block": 100, "from": "addr_a", "to": "addr_b", "amount": 4.0},
{"block": 101, "from": "addr_b", "to": "addr_c", "amount": 1.5},
]
def balances_at(transfers, block):
"""Replay transfers up to and including `block`."""
balances = defaultdict(float)
for t in transfers:
if t["block"] > block:
continue
if t["from"] is not None:
balances[t["from"]] -= t["amount"]
balances[t["to"]] += t["amount"]
return dict(balances)
print(balances_at(transfers, 100)) # {'addr_a': 6.0, 'addr_b': 4.0}
print(balances_at(transfers, 101)) # {'addr_a': 6.0, 'addr_b': 2.5, 'addr_c': 1.5}The function answers "how much does this address hold?" exactly. It cannot answer "who is addr_b?" Nothing in the data does.
What the Ledger Does Not Reveal
The ledger is silent on several things that analysts care about most.
| Question | Does the ledger answer it? | Why not |
|---|---|---|
| Who owns this address? | No | Addresses are generated by software. No identity is attached. |
| Are two addresses controlled by the same party? | Not directly | Only heuristics can suggest it. |
| Is this address an exchange? | No | A label must come from outside the chain. |
| Why was this transfer made? | No | The chain records the move, not the motive. |
| Was this a sale, a loan, or a custody move? | No | All of them look like a transfer. |
| What happened off-chain? | No | Trades inside an exchange never reach the chain. |
| How much does a person own in total? | No | Holdings may be split across many addresses, or held on a platform. |
Two of these deserve a closer look.
Pseudonymous, Not Anonymous
A blockchain address is a pseudonym. It is stable and linkable across time, but it is not tied to a name. Identity enters only when someone links an address to a person or company. That can happen through a public announcement, a published list of exchange addresses, a leaked database, or a deposit made from a regulated service. Once one address in a group is identified, other addresses can sometimes be tied to it using the heuristics in a later chapter. So the ledger is better described as pseudonymous and linkable than as private.
Off-Chain Activity Is Invisible
When you buy a coin on an exchange, the exchange usually updates its own internal database. No transaction appears on the chain. Funds hit the chain only when they are deposited or withdrawn. An exchange can therefore have heavy trading activity with no visible on-chain flow. An analyst who sees a quiet exchange may be looking at a very busy one.
Observable Facts Versus Inferred Claims
A useful habit is to keep two lists apart.
- Observed facts. "Address X sent 1,200 coins to address Y in block N."
- Inferred claims. "Address Y belongs to Exchange A, so a holder deposited coins to sell."
The first sentence is checkable by anyone. The second contains three separate guesses: that Y belongs to Exchange A, that the sender is a holder rather than another service, and that the purpose was selling. Each guess has its own error rate. Errors multiply, so a chain of plausible inferences can be much less reliable than any single step.
This tutorial follows the same path. Early chapters cover the observed layer, the middle chapters cover entities and labels, and the final chapters cover how to read the signals with caution.
Transparency Has Limits Beyond Identity
Even the on-chain part has edge cases that can mislead a careless reader.
- Many addresses, one owner. A person or company can spread funds across thousands of addresses. Looking at any single address understates their holdings.
- One address, many owners. An exchange or custodian address holds the pooled funds of many customers. A large balance there is not one large investor.
- Contract-held funds. Coins locked in a smart contract, such as a lending pool or a bridge, show up as a huge balance for the contract address. That balance belongs to many depositors under rules written in code.
- Moves that are not trades. Shifting funds between a company's own wallets creates a transfer without any change in ownership.
- Privacy tools. Mixers, CoinJoin-style transactions, and privacy-focused chains deliberately break the links an analyst would follow.
- Reorganizations. Near the tip of the chain, a block can be replaced. Data at low confirmation counts can change.
Practical Rules of Thumb
These rules apply to everything that follows in the tutorial.
- State which part of a claim is observed and which is inferred.
- Treat every label as a claim with a source and a confidence, not as a fact.
- Check whether a transfer is internal, such as between two wallets of one entity, before counting it as a flow.
- Remember that on-chain flow covers only the on-chain share of activity.
- Wait for enough confirmations before relying on recent data.
- Compare any signal with a baseline, because a number without context says little.
Why Transparency Still Pays Off
None of this means the data is weak. Compared with traditional finance, the ledger gives analysts something rare: a complete, verifiable record of settlement that no party can edit and that does not depend on trusting a company's reports. You can reproduce a number from raw data. That reproducibility is what makes it possible to build, test, and criticize signals. The limits above mean those signals must be handled as evidence, not as proof.
Exercises
Exercise
An analyst sees a transfer of 2,000 coins from address P to address Q. Write one observed fact and one inferred claim that someone might draw from it, and say why the second needs outside information.
Show answer
Observed fact: address P sent 2,000 coins to address Q in a specific block. An inferred claim: "a whale deposited coins to an exchange to sell." This needs outside information because the ledger does not say who owns P or Q, whether Q is an exchange address, or why the transfer happened. Labels and context must come from sources outside the chain, and each adds its own uncertainty.
Exercise
An exchange reports record trading volume for the day, but on-chain data shows almost no inflow or outflow for its known addresses. Does this contradict the report? Explain.
Show answer
No. Trades between customers on an exchange are usually recorded in the exchange's own database and do not create blockchain transactions. Only deposits and withdrawals cross the chain boundary. High volume with low on-chain flow is consistent, so on-chain flow cannot measure total trading activity.
Exercise
Using the balancesat function from this chapter, what does balancesat(transfers, 99) return for the example data, and why is addr_b missing?
Show answer
It returns {'addra': 10.0}. At block 99 only the block 98 mint has happened. The transfer from addra to addrb occurs in block 100, so addrb has no balance entry yet and addr_a still holds all 10.0.