Professor Franklin
Accessibility settings

Preferences are saved in this browser when storage is available.

Getting Started

Chapter 18 · Reading 2 of 3

Reading the public ledger

CHFI domains 1, 4, 5, 6

Calloway’s staff member, acting with the investigators’ approval, bought one box from frostline and supplied the transaction identifier 80c5f9e6757aa0dd27fd2b49765c3d0c06b3ccef8260a518c89153b50afaaa9f. Unlike almost every other record in this course, the record of that payment is held by thousands of independent computers, and anyone can check it.

Transactions spend outputs

The Bitcoin blockchain is a public ledger of transactions, grouped into blocks about every ten minutes. Bitcoin does not keep account balances. It uses the UTXO model: each transaction consumes earlier unspent transaction outputs as its inputs and creates new outputs, each assigning an amount to an address. An output is spent whole, so a payment smaller than the input sends the remainder back to the sender as change. Whatever the outputs do not claim is the fee, collected by the miner of the block.

Each transaction is identified by its transaction ID (txid), a 64-character hexadecimal value derived from a double SHA-256 hash of the transaction’s data. Amounts are often given in satoshis: one bitcoin is 100,000,000 satoshis.

Figure 1. The test purchase, from a blockchain explorerAddresses are shortened for display. The full addresses are in the exhibit.
PartAddressAmount (BTC)
Input 0bc1q…h3dz (the buyer’s earlier output)0.04210000
Output 0bc1q…k7m4 (marketplace deposit)0.03550000
Output 1bc1q…w2r9 (change)0.00646800
Fee—0.00013200
Figure 2. Where the fee comes from
0.04210000Inputs
0.04196800Outputs (0.03550000 + 0.00646800)
0.00013200Fee: 13,200 satoshis

The examiner knows output 1 is change because the buyer’s own wallet created it. In a stranger’s transaction, change has to be inferred, for example from the output that is not a round amount, or the one whose address type matches the input. Those are heuristics, and the report names which one was used.

Confirmations and time

The explorer shows the transaction in block 975,403 with 41 confirmations, meaning 40 more blocks have been built on top of it. Each confirmation makes reversal less practical. Six is a common threshold for treating a payment as settled.

Two times are worth separating. The block timestamp is set by the miner and the network only requires it to fall within loose limits, more than the median of the previous 11 blocks and no more than two hours ahead of the network’s time, so it can be off by an hour or more. The time an explorer says it first saw the transaction comes from that explorer’s own servers. The buyer’s wallet log records when the payment was sent. A timeline should say which of these each time is.

Addresses and other ledgers

Bitcoin address formats indicate how outputs are locked: addresses beginning 1 are legacy pay-to-public-key-hash, 3 are pay-to-script-hash, bc1q are SegWit version 0 and bc1p are Taproot. Wallet software chooses the format, so a wallet that always uses one type leaves a weak fingerprint.

Not every cryptocurrency is this transparent. Monero hides senders with ring signatures, recipients with one-time stealth addresses and amounts with confidential transactions, so the public ledger alone usually cannot follow a payment. Ethereum uses account balances rather than UTXOs, and its explorers show token transfers and smart-contract calls. Mixing services and CoinJoin transactions, where many users combine their inputs and outputs, are designed to break the links this reading relies on.

On the exam, inputs minus outputs equals the fee, change is inferred by heuristics, and block times are approximate. The next reading, From wallet to person, follows the deposit address toward the people who control it.

The test purchase

Inspect the three records, then use the evidence to answer the question.

1. Input

0.04210000 BTC from the buyer’s earlier output

2. Output 0

0.03550000 BTC to bc1q…k7m4 (marketplace deposit address)

3. Output 1

0.00646800 BTC to bc1q…w2r9 (change)

Apply the reading

The test purchase sent 0.03550000 BTC to the marketplace, but the transaction has a second output of 0.00646800 BTC. What is it most likely to be?

Compare your reasoning

Change returned to the buyer’s own wallet. Bitcoin spends whole earlier outputs, so the unspent remainder, minus the fee, goes back to an address the sender controls. It is likely, not certain, so the report says which heuristic identified it.