Toward Open Data Blockchain Analytics: A Bitcoin Perspective

Dan McGinn, Doug McIlwraith, Yike GuoarXiv 2018

Abstract

Bitcoin is the first implementation of what has become known as a 'public permissionless' blockchain. Guaranteeing security and protocol conformity through its elegant combination of cryptographic assurances and game theoretic economic incentives, it permits censorship resistant public read-write access to its append-only blockchain database without the need for any mediating central authority. Not until its advent has such a trusted, transparent, comprehensive and granular data set of digital economic behaviours been available for public network analysis. In this article, by translating the cumbersome binary data structure of the Bitcoin blockchain into a high fidelity graph model, we demonstrate through various analyses the often overlooked social and econometric benefits of employing such a novel open data architecture. Specifically we show (a) how repeated patterns of transaction behaviours can be revealed to link user activity across the blockchain; (b) how newly mined bitcoin can be associated to demonstrate individual accumulations of wealth; (c) through application of the naive quantity theory of money that Bitcoin's disinflationary properties can be revealed and measured; and (d) how the user community can develop coordinated defences against repeated denial of service attacks on the network.

Introduction: The Challenge of Opaque Ledgers

While the Bitcoin blockchain is a public ledger, its raw form consists of a sequential series of proprietary binary files. This unindexed and unstructured format makes direct, complex analysis—such as tracing the provenance of funds across multiple hops—computationally prohibitive. Furthermore, a growing trend in the enterprise sector toward "private permissioned" blockchains threatens to sacrifice the radical transparency and "open data" benefits that allow for deep network analysis, fraud detection, and economic modeling. This paper demonstrates how transforming raw blockchain data into a high-fidelity graph model enables sophisticated socio-econometric and security analysis.

Methodology: High-Fidelity Graph Modeling

The authors propose a High Fidelity Graph Model that avoids the over-simplification found in previous research. Instead of abstracting data away, they map every block, transaction, input, output, and address as distinct nodes in a graph.

The graph model schema showing relationships between blocks, transactions, and addresses.

To implement this, a custom C++ parser was developed to deserialize binary blockchain data in parallel using a 400-core High-Performance Computing (HPC) cluster. The parsed data was then imported into Neo4j, allowing for efficient path-traversal queries using the Cypher query language. This study analyzed the primary Bitcoin blockchain from its genesis in 2009 up to Block #425,000, covering nearly eight years of data, including 148 million transactions and 196 million unique addresses.

Uncovering Transactional "DNA"

By visualizing the flow of value between blocks as an adjacency matrix, the authors identified "heat" along the diagonal, indicating that the highest percentage of value is transferred into new blocks from very recent ones.

A visualization of the entire blockchain as an adjacency matrix, highlighting repeated patterns of behavior.

This "spectrograph" approach revealed horizontal and vertical linear features representing massive consolidations or distributions of wealth by single actors. Additionally, the authors identified an "extranonce" fingerprint. Miners use an extranonce field in the coinbase transaction to find valid block solutions; in Bitcoin's early days, this was often incremented linearly. This field acts as a "slow real-time clock" for specific mining hardware, allowing researchers to link blocks to the same entity (such as Satoshi Nakamoto) even when different addresses were used.

Economic and Security Results

The graph model introduced "bitcoin dwell time"—a measure of how many blocks a bitcoin remains stationary before being spent. This allows for a granular application of the Quantity Theory of Money (MV=PT) to measure the velocity of circulation.

  • Velocity of Circulation: Analysis revealed that the velocity of circulation is high and stable, with a typical bitcoin transacted approximately every six days.
  • Hoarding Trends: Despite supply "halving" events, dwell time data showed no significant trend toward increased hoarding behavior among transacted coins.
  • DoS Attack Identification: The model successfully identified "worm-like" structures in transaction data corresponding to known Denial of Service (DoS) attacks, allowing researchers to observe the evolution of attack algorithms in real-time.

Conclusion and Future Directions

The primary limitation of this approach is the scale of the graph, requiring significant hardware (nearly 600GB of RAM) to keep the entire graph resident in memory for optimal performance. While newer protocols like ZCash and extranonce randomization make de-anonymization harder, the high-fidelity graph method remains a powerful tool for open data analytics. Future work involves applying these methods to other blockchains like Ethereum to develop cross-chain analytic tools for fraud and tax investigation.

Summary updated

BibTeX
@misc{mcginn2018toward,
  author = {Dan McGinn and Doug McIlwraith and Yike Guo},
  title = {{Toward Open Data Blockchain Analytics: A Bitcoin Perspective}},
  year = {2018},
  eprint = {1802.07523},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.07523},
}
Figure