THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Bitcoin Chain Analysis: Transaction Graphs, Heuristics, and Limits

permalink THAMER
#bitcoin-chain-analysis#change-detection#clustering#transaction-graph#utxo

Bitcoin chain analysis studies public transaction relationships. It can identify how outputs are created and spent, but attributing them to people or organizations generally requires assumptions or external evidence.

Building the transaction graph

Each transaction consumes previous outputs and creates new outputs. An outpoint consists of a transaction identifier and an output index. Following outpoints produces a directed graph of spending relationships. Nodes can verify these edges from transaction data without knowing who controls the keys.

Common-input clustering

A frequent heuristic assumes that inputs to a transaction are controlled by one entity. This may be a reasonable working hypothesis for ordinary wallet transactions, but collaborative transactions and other protocols provide counterexamples. Treat the result as a hypothesis with confidence and provenance, not an identity proof.

Detecting change outputs

Analysts sometimes look at output script types, address history, amounts, or wallet-specific patterns to guess which output returns change to the sender. These signals are imperfect. Modern wallets may use the same script type for payment and change, and transactions can have more than two outputs.

CoinJoin and collaborative transactions

Some transactions combine inputs or outputs from multiple participants. Their structure can weaken simplistic ownership assumptions. Neither the presence nor absence of a particular pattern proves who participated or what they intended. Analysis must avoid conflating a transaction-level observation with a legal or personal conclusion.

Mempool and confirmation caveats

Unconfirmed transactions may be replaced, evicted, or conflict with other transactions. Confirmed history can be reorganized. Distinguish current mempool observation from active-chain confirmation and record the chain tip used for a result.

Reporting responsibly

Record the evidence source, observation time, network, rule applied, and uncertainty. Distinguish address clustering, service attribution, and individual identity. Never claim that a graph heuristic alone proves ownership. Respect privacy and legal obligations when combining on-chain data with external datasets.

Primary references

Bitcoin developer guide — transactions: https://developer.bitcoin.org/devguide/transactions.html

Bitcoin Core documentation: https://bitcoincore.org/en/doc/

Bitcoin Improvement Proposals: https://github.com/bitcoin/bips

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects