Sub topic 1
How Ledger Design Shapes What You Can Measure
Prerequisites
Assume you understand blocks, wallets, transactions, and basic Python syntax. You should also know that an address is a ledger identifier, not necessarily a person or organization. This distinction becomes important when interpreting every on-chain metric.
A blockchain's ledger model determines what a transaction records and how balances change. The two common models are the account-based model and the unspent transaction output (UTXO) model. The same question, such as “How many holders moved coins today?”, can produce different results under each model.
Account-Based Ledgers
An account-based ledger stores a current state for each account. The state usually includes a balance and, on programmable chains, a transaction counter or contract storage.
Ethereum uses this model. An externally owned account can send funds to another address. A smart contract can also update balances, emit events, or move tokens on behalf of users.
A simple native-asset transfer looks like this:
| Field | Example meaning |
|---|---|
| Sender | Account whose balance decreases |
| Receiver | Account whose balance increases |
| Value | Amount transferred |
| State change | New balances after execution |
This structure makes address-level balance and activity queries relatively direct. You can identify the sender and receiver in a transaction, then inspect the resulting state.
However, one transaction can contain many meaningful transfers. A contract call might move tokens between several addresses, distribute rewards, or route a swap through multiple pools. Counting only top-level transactions can therefore understate transfer activity. Counting every emitted token event can overstate economic activity if contracts generate internal bookkeeping events.
UTXO Ledgers
A UTXO ledger does not store one balance for each address. Instead, it stores unspent transaction outputs. Each output locks a specific amount under a spending condition. A later transaction consumes one or more existing outputs as inputs and creates new outputs.
Bitcoin uses this model. A wallet's balance is the sum of spendable outputs controlled by its keys.
A typical payment may have:
- Several input outputs selected by the wallet.
- One output for the recipient.
- One change output returning the remainder to the sender's wallet.
- A transaction fee represented by the difference between inputs and outputs.
The transaction count is one, even though the transaction may involve many inputs and outputs. If an analyst counts every input and output as a separate participant, the active-address figure will not mean the same thing as it does on an account-based chain.
Why the Difference Changes Metrics
Ledger design affects the unit being counted.
For active addresses, an account-based chain commonly counts addresses appearing as senders, receivers, or participants in selected contract events. A UTXO chain may count addresses found in inputs and outputs. But change outputs can create addresses that did not represent a new economic participant.
For transaction counts, one account transaction may contain many contract-level transfers. One UTXO transaction may combine many payments. Comparing raw transaction counts across chains is therefore unsafe.
For transfer volume, an account-based analyst might sum native transfers or token events. A UTXO analyst might sum outputs, input value, or adjusted payments. Summing all outputs can count change and make volume look larger than the amount paid to other parties.
For holder distribution, account chains expose balances associated with addresses more directly. UTXO chains require aggregating unspent outputs. The result depends on address reuse, key ownership, and whether the analyst can identify change outputs.
Choosing the Measurement Unit
Before calculating a metric, state what one observation represents:
- A transaction is a recorded state transition.
- An address is a ledger identifier.
- An output is a UTXO created by a transaction.
- An entity is a presumed owner or organization controlling one or more addresses.
- A transfer is a value movement defined by the dataset and rules.
These units are not interchangeable. A metric can be internally consistent while still answering a different question than intended.
Practical Consequences
When building a cross-chain dataset, record at least:
- The ledger model.
- The asset being measured.
- Whether contract events or only top-level transactions are included.
- Whether change outputs are removed or classified.
- Whether addresses are grouped into entities.
- Whether volume is gross, net, or adjusted for known internal transfers.
This metadata makes later comparisons reproducible. It also prevents a common error: treating a change in the metric as a change in user behavior when it may result from a protocol upgrade, wallet software, exchange batching, or a different indexing rule.
Exercise
Why can summing every output in a UTXO transaction overstate payment volume?
Show answer
A transaction can create both recipient outputs and change outputs. The change returns value to the sender's wallet, so counting it as external payment volume counts internal wallet movement as economic transfer.