Blockstream

What Is Chain Analysis?

AddedAdvanced
TL;DR: Chain analysis is the study of Bitcoin's public ledger to cluster addresses, trace how funds move, and attach probabilities to who controls which coins. It works because every Bitcoin transaction is permanently visible to anyone. On its own, the ledger records addresses rather than identities. Attribution happens when an address is connected to off-chain data such as exchange KYC records. Confidential Transactions on the Liquid Network hide amounts, removing a major input to this kind of tracing.
Chain analysis (also called blockchain analysis) is the practice of examining a public blockchain to group related addresses, follow the flow of funds between them, and estimate the real-world entities behind on-chain activity. On Bitcoin it relies on the fact that the entire transaction history is open and permanent. Analytics firms apply statistical heuristics to this data, then combine the results with off-chain identity information to produce attribution. The same techniques serve compliance, forensic investigation, and academic research.

What Chain Analysis Is

Every Bitcoin transaction is written to a public ledger called the blockchain. Anyone, anywhere, can download the full history and read it. That openness is a deliberate security property: it lets every participant verify that no bitcoin was created out of thin air and that no coin was spent twice. The same openness also means transactions are not private by default.

Chain analysis turns that public record into intelligence. Analysts start from the raw data (addresses, inputs and outputs, amounts, and timestamps) and apply pattern-matching rules to answer questions the ledger does not answer directly. Which addresses are probably controlled by the same person? Which output is the payment and which is the change returning to the sender? Where did a given coin come from, and where did it go next?

None of these questions have certain answers from on-chain data alone. The ledger does not label anyone. Chain analysis produces probabilities whose confidence depends on how the people involved managed their coins.

On-chain Analysis vs. Blockchain Analysis

The terms "chain analysis," "blockchain analysis," and "on-chain analysis" all point at the same underlying activity: studying the public ledger to draw conclusions about fund flows and address ownership. Analytics firms, compliance teams, and academic papers use them interchangeably. Some traders use "on-chain analysis" more narrowly for aggregate network metrics (such as exchange inflows or coin age), but the forensic and privacy meaning is the one this article addresses.

Why Bitcoin Is Pseudonymous, Not Anonymous

A Bitcoin address is a string of letters and numbers derived from a cryptographic key, and you can generate a fresh one for every payment at no cost. Because addresses carry no built-in identity, people sometimes assume Bitcoin is anonymous. The accurate word is pseudonymous: every address acts like a pen name that has a complete, permanent, public record of everything it has ever done.

The difference becomes clear the moment a pen name is unmasked once. With cash, a single identified payment tells an observer almost nothing about your other spending. With Bitcoin, connecting one address to your identity can expose the transactions linked to it, and through clustering, potentially much of the activity connected to those.

For a fuller treatment of this distinction, see Are Bitcoin Transactions Private? Privacy on Bitcoin is a function of how coins are handled rather than a default the protocol provides.

How Firms Cluster Addresses: The Core Heuristics

Clustering is the heart of chain analysis. The goal is to group separate addresses that are probably controlled by a single entity, building up a picture of a wallet's full footprint from many individual transactions. Analysts do this with heuristics: rules of thumb that hold often enough to be useful, even though each one can be wrong in specific cases.

Common-input-ownership

When a Bitcoin transaction spends several inputs at once, those inputs were almost always controlled by the same wallet, because spending an input requires its private key. This is the common-input-ownership heuristic, and it is the single most powerful clustering tool. Academic researchers demonstrated it at scale in the 2013 study A Fistful of Bitcoins, which established address clustering as a practical technique. If addresses A, B, and C are spent together in one transaction, an analyst groups them as one entity. Repeat that across thousands of transactions and large clusters emerge.

The heuristic holds in ordinary spending, yet it has a known exception. Collaborative transactions, where multiple independent parties contribute inputs to a single transaction on purpose, break it. That is precisely the design intent behind techniques like CoinJoin, discussed below.

Change Detection

Most Bitcoin payments produce two outputs: the amount sent to the recipient and the "change" returned to the sender, much like getting coins back after paying with a larger bill. If an analyst can identify which output is the change, they can follow the sender's funds forward in time. Change-detection heuristics look for tells: an output that reuses an old address, an amount with the precise look of change rather than a round payment, or an output matching the wallet's known address format. Each tell is a guess, and modern wallets work to make the change output indistinguishable from the payment.

Address Reuse

Reusing the same address across multiple transactions is the most direct gift to chain analysis. Every transaction that touches a reused address is trivially linked to every other transaction that touches it, no probabilistic heuristic required. A single identified reuse can collapse an entire history into one labeled cluster. Modern wallets generate a fresh address for each receive specifically to avoid this. The mechanics and the fixes are covered in depth in How Does Address Reuse Affect Bitcoin Privacy?

Other Signals

Beyond the three core heuristics, analysts use round-number payment amounts, transaction timing and time-zone patterns, fee behavior, the specific address types a wallet produces, and known service deposit addresses to refine clusters. No single signal is conclusive. Chain analysis works by stacking many weak signals until a confident picture forms.

Heuristic What it links How reliable How it is defeated
Common-input-ownership All inputs in one transaction to a single owner High in ordinary spending Collaborative transactions (CoinJoin)
Change detection The sender's change output to the sender's wallet Moderate and probabilistic Uniform outputs, fresh change addresses
Address reuse Every transaction sharing an address Certain when present A new address per receive
Amount and timing patterns Behavioral fingerprints across transactions Weak on its own Varied amounts, batching, layer-2 payments

How Exchanges and KYC Link Identities to Addresses

Clustering groups addresses, but it cannot name anyone on its own. Attribution, the step that puts a real person behind a cluster, almost always comes from off-chain data. The most common source is a regulated exchange.

A regulated exchange collects identity documents under know-your-customer (KYC) rules before opening an account. When you withdraw bitcoin to your own wallet, the exchange records the address it sent your coins to, connecting your verified legal identity to a specific entry point on the public ledger. From there, an analytics firm follows your funds outward using the clustering heuristics above. The reverse holds too: when you deposit bitcoin back to an exchange, the deposit address ties the originating cluster to your account.

Other attribution sources include IP addresses captured when a transaction is broadcast, addresses posted publicly (a donation address on a website, a payment request in a forum), merchant payment records, and data from earlier breaches or subpoenas. The choice between buying through an identity-verified exchange and acquiring coins without that linkage has lasting privacy consequences, explored in What Are the Differences Between KYC and Non-KYC Bitcoin?

What Is and Is Not Deanonymizable

Chain analysis is powerful, but it has hard limits.

What Chain Analysis Can Usually Determine

  • That a set of addresses is probably controlled by one entity, when ordinary spending patterns are present.
  • The path funds took between clusters, including hops through identified services.
  • When a cluster has interacted with a regulated, identity-verified service, which can anchor the cluster to a person.
  • Approximate behavioral patterns: activity hours, typical amounts, and which wallet software likely produced the transactions.

What Chain Analysis Cannot Determine From On-chain Data Alone

  • The legal identity behind an address that has never touched any identified service or off-chain data point.
  • The true ownership of inputs in a well-formed collaborative transaction, where the common-input heuristic fails by design.
  • Transaction amounts when those amounts are cryptographically hidden, as with Confidential Transactions on Liquid.
  • Payments that never settle on the base chain, such as most activity inside a Lightning Network channel.

The reliability question has real-world stakes. In 2023, public court filings in the United States surfaced testimony that a major analytics provider could not point to a defined error rate for some of its heuristic outputs. These heuristics are estimates: accurate often enough to be operationally useful for compliance and investigation, and uncertain enough that treating their output as proof of identity is a mistake.

Legitimate Uses and Surveillance Concerns

Chain analysis serves more than one purpose. Reading the public ledger is legal everywhere, because the data is public by design.

Legitimate Uses

Regulated exchanges use chain analysis to meet anti-money-laundering obligations, screening deposits against known illicit sources. Law enforcement uses it in forensic investigations to trace stolen funds, and high-profile recoveries of hacked exchange funds have relied on it. Researchers use it to study network economics, and auditors use it to verify that funds came from acceptable sources. These applications are unambiguously lawful and, in regulated finance, often mandatory.

Surveillance Concerns

The same capability enables pervasive financial surveillance. Because the ledger is permanent and public, an attribution made today can expose years of past activity, and a single point of identification can ripple outward through clustering. A person's salary, savings, donations, and spending can become legible to any party with the dataset, including parties the person never transacted with. Financial privacy is widely treated as a legitimate interest rather than a sign of wrongdoing.

Blockstream's view is that strong privacy and lawful compliance can work together. The right architecture lets users keep financial details private from the general public while still disclosing to a specific counterparty when there is a legitimate reason to. Confidential Transactions are built around that balance.

How Confidential Transactions Change the Picture

Most chain analysis runs on two ingredients: the graph of which addresses paid which, and the amounts attached to it. Remove the amounts, and a large share of the technique loses its footing. Value-based clustering, change-amount fingerprinting, and following a specific sum through the ledger all depend on amounts being visible.

Confidential Transactions do exactly that. Deployed by default on every transaction on the Liquid Network, they hide both the transaction amount and the asset type from outside observers, while still letting every participant verify that no value was created or destroyed. The mathematics rests on cryptographic commitments and range proofs: an observer can confirm a transaction is valid without learning the figures inside it. The full mechanism appears in What Are Confidential Transactions?

Confidential Transactions do not erase the transaction graph; the structure of who-paid-whom can still be observed on Liquid. What they remove is the financial detail that powers amount-based analysis. They also support selective disclosure: the parties to a transaction can share unblinding keys with an auditor or regulator to reveal specifics when needed, so privacy from the public and accountability to a counterparty can coexist.

On the base Bitcoin chain, where amounts are visible, the practical defenses are behavioral and structural: never reuse addresses, manage which coins you spend together, run your own node so a third party does not learn your addresses, and use payment channels for spending that never needs to settle on-chain. Collaborative transactions such as CoinJoin deliberately break the common-input heuristic by combining inputs from many independent participants, though their regulatory treatment varies by jurisdiction and their use is a personal decision rather than a recommendation. The practical stack is laid out in How Do I Keep My Bitcoin Transactions Private?

Why Running Your Own Node Matters Here

When you check your balance through someone else's server, that server learns which addresses are yours, handing chain analysis a ready-made link without any heuristics. Running your own Bitcoin node removes that leak: your wallet queries your own copy of the ledger, so no third party builds a profile of your addresses. Self-custody, your own node, and a hardware wallet such as Jade Plus form a practical privacy baseline that keeps your activity off the books analytics firms rely on.

Frequently Asked Questions

Is chain analysis the same as blockchain analysis?

Yes. Chain analysis and blockchain analysis describe the same practice: examining the public Bitcoin ledger to cluster addresses, trace fund flows, and attach probabilities to who controls which coins. The terms are used interchangeably by analytics firms, researchers, and compliance teams. "On-chain analysis" usually means the same thing, though traders sometimes use it for reading aggregate market metrics.

Can chain analysis identify who owns a Bitcoin address?

On-chain data alone cannot. The blockchain records addresses rather than identities. Attribution happens when an address is connected to off-chain information, most often KYC records from a regulated exchange, an IP address captured at broadcast, or a public disclosure. Without that external link, an address remains pseudonymous, even though all of its activity is permanently visible.

What heuristics does chain analysis use?

The main heuristics are common-input-ownership (inputs spent together likely share an owner), change detection (identifying which output returns to the sender), and address-reuse linking (transactions sharing an address are tied together). Analysts also use amount patterns, timing, and known service addresses. Each heuristic is a probabilistic guess, not a proof, and well-designed wallets can defeat several of them.

How do exchanges link my identity to my Bitcoin?

Regulated exchanges collect identity documents under know-your-customer rules and record the address they send your withdrawals to. That ties your verified identity to a specific on-chain entry point. Analytics firms then follow the fund flow outward from that point using clustering heuristics. Deposits work the same way in reverse, connecting an incoming cluster to your verified account.

Do Confidential Transactions stop chain analysis?

They remove a major input to it. Confidential Transactions on the Liquid Network hide both transaction amounts and asset types from outside observers, so amount-based clustering and value-flow tracing no longer work. The transaction graph remains visible, but the financial detail that powers much of chain analysis is cryptographically concealed, with optional selective disclosure for auditors.

Is chain analysis legal?

Yes. The Bitcoin ledger is public by design, and reading it is legal everywhere. Analytics firms sell their findings to exchanges for compliance, to law enforcement for investigations, and to researchers. The legality of reading public data does not settle the separate question of whether pervasive financial surveillance is desirable, which is a legitimate privacy concern that reasonable people weigh differently.

Mockup view Refreshed Added Overlap resolution