Graph Analysis (Blockchain)
Blockchain graph analysis maps the flow of funds between addresses and entities to identify patterns, clusters, and suspicious activity.
Key Takeaways
- Graph analysis constructs directed graphs from blockchain transactions, then applies clustering heuristics like the common-input ownership heuristic to group addresses into real-world entities.
- Companies like Chainalysis, Elliptic, and TRM Labs use graph analysis to power AML compliance, law enforcement investigations, and sanctions screening across the global cryptocurrency ecosystem.
- Privacy countermeasures such as CoinJoin, PayJoin, and off-chain protocols like statechains can reduce the effectiveness of graph analysis by breaking the link between transaction inputs and outputs.
What Is Graph Analysis?
Graph analysis in the context of blockchain is the practice of modeling on-chain transaction data as a mathematical graph and then applying algorithms to trace the flow of funds, cluster addresses into entities, and identify suspicious patterns. Because most blockchains are public ledgers, every transaction is permanently recorded and available for inspection. Graph analysis transforms this raw data into structured intelligence.
The technique underpins the entire chain analysis industry. Analytics firms collect transaction data from blockchain nodes, construct graph representations, and layer on heuristics and machine learning to attribute addresses to known services such as exchanges, mining pools, darknet markets, and sanctioned entities. The output powers compliance programs at exchanges, investigations by law enforcement, and risk assessment by financial institutions.
While graph analysis is most commonly associated with Bitcoin's UTXO model, the same principles apply to account-based chains like Ethereum and to cross-chain fund flows. The blockchain analytics market was estimated at $2.5 billion in 2025 and is projected to reach $9.9 billion by 2032.
How It Works
Graph analysis proceeds in three stages: constructing the transaction graph, clustering addresses into entities, and attributing those entities to real-world identities.
Building the Transaction Graph
Blockchain transaction data is transformed into a weighted directed graph. In the UTXO model, there are two common representations:
| Model | Nodes | Edges | Best For |
|---|---|---|---|
| Transaction graph | Transactions | UTXO flows between transactions | Tracing fund provenance |
| Address graph | Addresses | Transactions linking addresses | Identifying address relationships |
| Entity graph | Clustered entities | Aggregated fund flows | High-level intelligence |
In a transaction graph, each node represents a transaction and each directed edge represents the flow of a UTXO from one transaction to the next. In an address graph, nodes are individual addresses and edges are weighted by the total value transferred between them. The entity graph is a higher-level abstraction where clustered addresses are collapsed into single nodes representing exchanges, wallets, or other services.
Address Clustering Heuristics
Raw address graphs contain millions of nodes. Clustering heuristics reduce this complexity by grouping addresses that likely belong to the same entity:
- The common-input ownership heuristic is the foundational clustering technique. When multiple addresses appear as inputs to the same transaction, the private keys for all of those inputs must have been available to a single party at signing time. Those addresses are therefore assumed to belong to the same entity.
- Change address detection identifies the change output in a transaction by analyzing signals such as non-round amounts, first-time-seen addresses, and wallet software fingerprints. The change address is linked to the sender's cluster.
- Temporal analysis examines timing patterns across transactions. Regular intervals, time-zone-consistent activity, and temporal correlations can link addresses to the same user.
- Behavioral pattern analysis uses spending frequency, typical amounts, and interaction patterns with known services to refine clusters beyond what input heuristics alone capture.
The Union-Find (disjoint set) algorithm is the workhorse of address clustering. When the common-input heuristic links two addresses, they are merged into the same set. This data structure handles millions of addresses with near-constant-time operations:
// Simplified Union-Find for address clustering
class UnionFind {
parent = new Map();
find(addr) {
if (!this.parent.has(addr)) this.parent.set(addr, addr);
if (this.parent.get(addr) !== addr)
this.parent.set(addr, this.find(this.parent.get(addr)));
return this.parent.get(addr);
}
union(a, b) {
this.parent.set(this.find(a), this.find(b));
}
}
// For each transaction, union all input addresses
const uf = new UnionFind();
for (const tx of transactions) {
const inputs = tx.inputs.map(i => i.address);
for (let i = 1; i < inputs.length; i++) {
uf.union(inputs[0], inputs[i]);
}
}Entity Attribution
Clustering alone produces anonymous groups of addresses. Attribution maps these clusters to named entities using off-chain intelligence: partnerships with exchanges that share deposit address data, open-source research on known service addresses, and law enforcement intelligence feeds. Chainalysis reports that of 172 million economically relevant Bitcoin addresses, 147 million (86%) have been attributed to named services.
Each address or entity then receives a risk score based on its proximity to known illicit actors, sanctioned addresses, or suspicious behavioral patterns. This scoring drives the compliance alerts that exchanges and financial institutions act on.
Graph Algorithms and Techniques
Beyond clustering heuristics, graph analysis applies standard graph algorithms to extract intelligence from transaction networks:
- Breadth-first search (BFS) traces the shortest paths between addresses, enabling hop-based fund tracing and neighborhood exploration around flagged wallets.
- Depth-first search (DFS) follows long chains of transactions to their endpoints, useful for tracing funds through layering schemes designed to obscure origins.
- Community detection algorithms like Louvain modularity and the Leiden algorithm identify groups of densely interconnected addresses, revealing relationships between entities that clustering heuristics alone might miss.
- PageRank and betweenness centrality identify influential or bridge nodes in the network, highlighting addresses that act as hubs (exchange hot wallets) or intermediaries (mixing services).
- Graph neural networks (GNNs) and representation learning are increasingly used for automated node classification, labeling addresses as exchange, mining pool, or illicit based on learned features from the graph topology.
These techniques build on taint analysis, which traces what percentage of funds in a wallet originated from a flagged source. Graph analysis provides the structural foundation that makes taint tracking possible at scale.
Major Analytics Providers
Several companies dominate the blockchain analytics market, each with distinct strengths:
| Provider | Key Products | Notable Details |
|---|---|---|
| Chainalysis | Reactor (investigation), KYT (compliance) | Used by 370+ government agencies; 86% Bitcoin address attribution rate |
| Elliptic | Lens, Navigator, Nexus engine | 550+ asset coverage; raised $120M Series D in 2026 at $670M valuation |
| TRM Labs | Forensics, sanctions screening | Reached $1B valuation in February 2026 |
| Crystal Intelligence | Crystal Blockchain analytics | Originally developed by Bitfury; strong in visualization |
| CipherTrace | Crypto intelligence (now Mastercard) | Acquired by Mastercard in 2021; integrated into cybersecurity offerings |
Independent validation by TU Delft in 2025 found true positive rates up to 94.85% and false positive rates as low as 0.01% for leading platforms. However, completeness varies: accuracy ranged from 25% for a mixer to 95% for a darknet marketplace, meaning analytics platforms rarely misattribute an address but can miss addresses that belong to an entity.
Use Cases
AML and Regulatory Compliance
Exchanges and virtual asset service providers (VASPs) use graph analysis for transaction monitoring, sanctions screening, and counterparty risk assessment. Compliance teams run incoming deposits and withdrawals through analytics platforms to check for connections to illicit activity before processing them.
The regulatory landscape has tightened significantly. The Travel Rule is now enforced in 85 of 117 jurisdictions globally, requiring VASPs to transmit sender and recipient identity data with qualifying transfers. The EU's MiCA regulation made Travel Rule compliance enforceable on December 30, 2024, with fines up to 5 million euros or 3-12.5% of annual turnover for non-compliance. The OECD's Crypto Asset Reporting Framework (CARF) took effect January 2026, with 75 countries committed to automatic crypto transaction data sharing.
Law Enforcement Investigations
Graph analysis has been central to several landmark cryptocurrency investigations:
- In the Colonial Pipeline ransomware case (2021), the FBI used blockchain analysis to trace 75 Bitcoin in ransom payments through six wallets and recovered 63.7 BTC (approximately $2.3 million, or 85% of the ransom).
- The DOJ recovered $3.6 billion in stolen Bitcoin from the 2016 Bitfinex hack using blockchain tracing techniques to follow funds across years of movement.
- The Silk Road investigation demonstrated that even early Bitcoin transactions could be traced through graph analysis combined with traditional investigative techniques.
Market Intelligence and Tax Enforcement
Beyond compliance, graph analysis supports monitoring of exchange flows, whale tracking, market manipulation detection, and DeFi protocol analysis. Tax authorities increasingly rely on blockchain analytics to identify unreported crypto income: US centralized brokers began issuing Form 1099-DA in early 2026, and mandatory cost-basis reporting begins for 2027.
Privacy Countermeasures
Several techniques exist to reduce the effectiveness of graph analysis by breaking the assumptions that clustering heuristics rely on:
- CoinJoin combines multiple users' transactions into a single joint transaction, making it difficult to link specific inputs to specific outputs. The anonymity set grows with participant count, though post-mix behavior (such as immediately consolidating outputs) can reduce effective privacy by 10-50%.
- PayJoin has the recipient add their own inputs during transaction creation. The resulting transaction looks indistinguishable from a standard Bitcoin transaction, making detection nearly impossible.
- Silent payments and stealth addresses generate unique one-time destination addresses for each payment, preventing address reuse-based clustering.
- The Lightning Network moves transactions off-chain, where only channel opens and closes are visible on the base layer. Intermediate payment states are never published, and onion routing obscures the payment path from intermediary nodes.
- Statechains, as implemented by Spark, transfer UTXO ownership by rotating cryptographic keys between sender, recipient, and a distributed operator set using FROST threshold signatures. On-chain, a Spark UTXO appears identical to any standard single-signer Taproot output: no observer can determine that multiple parties were involved in key rotation. The leaf architecture enables arbitrary payment amounts through off-chain splits and merges without revealing transaction relationships on the base layer.
For a deeper look at how Bitcoin transactions can be traced and what defenses exist, see the research article on Bitcoin transaction graph privacy defenses.
Risks and Considerations
False Positives and Over-Flagging
While leading platforms achieve low false positive rates (as low as 0.01%), the consequences of a false positive can be severe: frozen accounts, blocked withdrawals, and reputational damage for innocent users. Taint can spread through ordinary commerce, meaning users who unknowingly receive funds with an illicit history inherit elevated risk scores. There is no industry consensus on taint thresholds or propagation methodology.
Completeness Gaps
Analytics platforms rarely misattribute an address, but they frequently miss addresses that belong to an entity. This means that while flagged activity is likely real, unflagged activity is not necessarily clean. Users of analytics data should treat results as probabilistic, not definitive.
Privacy Versus Compliance
Graph analysis creates tension between financial surveillance and individual privacy. The same techniques that help law enforcement trace ransomware payments also enable broad surveillance of ordinary users. Privacy-enhancing technologies like CoinJoin and confidential transactions serve legitimate privacy needs but complicate compliance efforts. Protocols that operate off-chain or use cryptographic techniques to obscure transaction graphs offer stronger privacy guarantees while still supporting compliance at the application layer where exchanges and service providers interact with regulated systems.
Evolving Cat-and-Mouse Dynamic
The relationship between analytics and privacy is adversarial and evolving. After the US Treasury sanctioned Tornado Cash in August 2022 (sanctions reversed in March 2025 following a Fifth Circuit ruling), users migrated to alternative protocols: Railgun grew from 13% market share in 2022 to 71% by 2025. Meanwhile, analytics providers are integrating AI and graph neural networks to keep pace with increasingly sophisticated obfuscation techniques.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.