All articles
Blockchain Tracing & Forensics

Transaction Graph Analysis: Building the Money Trail

A transaction graph turns raw blockchain data into a visual trail of money. Learn how investigators build and analyze transaction graphs to follow funds from theft to cash-out.

NexusCore Investigations Team2026-08-1310 min read
Transaction Graph Analysis: Building the Money Trail

A transaction graph is the central artifact of a blockchain investigation. It transforms raw blockchain data — addresses, transactions, amounts, timestamps — into a visual representation of how money moved. By building and analyzing a transaction graph, an investigator can follow funds from a theft to a cash-out point, identify clusters of related addresses, and present a clear, understandable narrative to law enforcement and courts. This article explains how transaction graphs are built and analyzed.

What Is a Transaction Graph?

A transaction graph is a directed graph where:

  • Nodes represent addresses (or clusters of addresses, or entities like exchanges)
  • Edges represent transactions (or the flow of funds between addresses)
  • Edge weights represent amounts
  • Edge labels represent timestamps and transaction hashes

In a Bitcoin transaction graph, a single transaction with multiple inputs and outputs becomes a bipartite subgraph: all input addresses connect to all output addresses (because any input could have funded any output). In practice, investigators often simplify this to show the actual flow based on heuristics.

In an Ethereum transaction graph, each transaction is a single edge from the sender to the recipient (or to the smart contract). Internal transactions (calls between contracts) add additional edges.

Building a Transaction Graph

Step 1: Identify the Starting Point

Every investigation has a starting point — a known address or transaction. This might be:

  • The victim's wallet (in a theft case)
  • The ransom payment address (in a ransomware case)
  • The deposit address of a scam platform
  • The deployer address of a malicious contract

Step 2: Expand the Graph

From the starting point, the investigator expands the graph by following transactions:

  • Forward tracing: Following the outputs — where did the funds go? This is the primary direction for tracing stolen funds to a cash-out point.
  • Backward tracing: Following the inputs — where did the funds come from? This is useful for identifying the source of funds (e.g., an exchange deposit that funded a scam operation).

At each step, the investigator adds new nodes (addresses) and edges (transactions) to the graph. As the graph grows, patterns emerge.

Step 3: Apply Clustering

Using heuristics (common-input-ownership on Bitcoin, behavioral clustering on Ethereum), the investigator clusters addresses that appear to be controlled by the same entity. Clusters are represented as single nodes in the graph, simplifying the visualization and revealing the entity-level flow of funds.

Step 4: Attribute Nodes

As the graph grows, the investigator identifies nodes that can be attributed to known services:

  • Exchange deposit addresses: Identified through attribution data
  • Mixer contracts: Known mixer addresses
  • Bridge contracts: Known bridge addresses
  • DEX router contracts: Known DEX addresses

Attributed nodes are labeled in the graph, turning an abstract network of addresses into a meaningful map of entities and fund flows.

Step 5: Identify the Cash-Out

The goal of forward tracing is to identify where the funds are cashed out — typically an exchange. When the graph shows funds arriving at an attributed exchange deposit address, the cash-out point is identified. This is the target for law enforcement action.

Analyzing the Graph

Once the graph is built, several types of analysis are performed:

Path Analysis

The investigator identifies the path (or paths) from the starting point to the cash-out point. This path is the "money trail" — the sequence of transactions that moved the funds from source to destination. The path is documented with transaction hashes, amounts, and timestamps for each step.

Pattern Recognition

The graph reveals patterns in how the funds moved:

  • Peel chains: A linear chain with decreasing amounts
  • Fan-out: One node sending to many nodes
  • Consolidation: Many nodes sending to one node
  • Layering: Funds passing through multiple hops with no apparent purpose other than obfuscation
  • Mixer insertion: Funds entering and exiting a known mixer

Timing Analysis

The timestamps on the edges reveal the timing of the fund movement:

  • How quickly the funds were moved (fast movement suggests an automated process)
  • The time of day of transactions (which can suggest the operator's time zone)
  • The interval between hops (which can suggest whether the process is manual or automated)

Amount Analysis

The amounts on the edges reveal:

  • Whether the full amount was moved or split
  • Whether fees were taken at each step (and how much)
  • Whether the amounts match known mixer denominations
  • Whether the final cash-out amount is a significant portion of the original theft

Presenting the Graph

A transaction graph is not just an investigative tool — it is also a presentation tool. For law enforcement, prosecutors, and courts, a clear visual representation of the fund flow is invaluable. A good presentation:

  • Shows the entity-level flow (not just raw addresses)
  • Highlights the key nodes (the starting point, the mixer, the bridge, the cash-out exchange)
  • Documents each step with transaction hashes and timestamps
  • Shows the amounts at each step
  • Is clear enough for a non-technical audience to understand

Tools for Transaction Graph Analysis

Professional tools (Chainalysis Reactor, TRM Labs, Elliptic Investigator) provide automated graph building, clustering, and attribution. For manual investigation, tools like Maltego, Graphistry, or custom scripts can be used. Even a spreadsheet can serve as a basic tool for small graphs.

Challenges in Transaction Graph Analysis

  • Scale: A single theft can generate hundreds or thousands of transactions. The graph can become very large.
  • Mixers: Mixers break the direct graph, requiring de-anonymization techniques
  • Cross-chain: Funds moving across chains require matching deposits and withdrawals on different blockchains
  • Speed: Criminals move funds quickly; the investigator must be able to build and analyze the graph fast

Conclusion

Transaction graph analysis is the core methodology of blockchain investigation. By building a graph from a starting point, expanding it through forward and backward tracing, applying clustering and attribution, and analyzing the patterns, timing, and amounts, an investigator can follow funds from theft to cash-out. The resulting graph is both an investigative tool and a presentation artifact — the money trail that transforms raw blockchain data into actionable intelligence for recovery and prosecution.

Share this article