XBlock-ETH: Extracting and Exploring Blockchain Data From Ethereum

Peilin Zheng, Zibin Zheng, Jiajing Wu, Hong-Ning Dai

TL;DR

This paper introduces XBlock-ETH, a comprehensive, up-to-date, and publicly released dataset of Ethereum's on-chain data, including transactions, smart contracts, and cryptocurrencies. By addressing challenges in data acquisition and processing, XBlock-ETH aims to facilitate big data analytics and unlock new research opportunities in blockchain system analysis, smart contract security, and cryptocurrency market trends.

What Problem Does This Paper Address?

The proliferation of blockchain technologies, particularly public blockchains like Ethereum, has led to an explosion of data. This data holds immense potential for business value and research insights, ranging from understanding user behavior to detecting fraud and analyzing market dynamics. However, accessing and analyzing this data is fraught with challenges. Existing datasets are often incomplete, outdated, or difficult to process due to their raw, heterogeneous, and sometimes binary or encrypted formats. Furthermore, there's a lack of standardized tools for extracting and exploring this data, hindering large-scale big data analytics. This paper tackles these issues by providing a well-processed, comprehensive, and accessible Ethereum dataset, XBlock-ETH, along with a framework for its exploration.

Methods

The core of XBlock-ETH's methodology lies in its systematic approach to collecting, processing, and categorizing raw Ethereum blockchain data. The authors leverage the parity_trace interface, which they find more efficient and reliable than Geth's for obtaining detailed runtime data, including blocks, traces, and receipts. This raw data is then transformed into six distinct, well-structured datasets:

  • Block and Transaction: Basic statistics about blocks and transactions.
  • Internal Ether Transaction: Captures Ether transfers that occur within smart contract executions, often missed by standard block explorers.
  • Contract Info: Information about deployed smart contracts, including creator, creation time, and initial value.
  • Contract Call: Details of interactions between smart contracts.
  • ERC20 Token Transaction: Data related to fungible tokens on Ethereum.
  • ERC721 Token Transaction: Data for non-fungible tokens on Ethereum.

This categorization and processing are crucial for making the data amenable to big data analytics. The paper also presents basic statistical analysis and visualizations for each dataset.

Datasets

The primary contribution of this paper is the introduction of the XBlock-ETH dataset. This dataset is derived from the raw on-chain data of the Ethereum blockchain and is made publicly available online. It comprises:

  • Raw Data: Blocks, traces, and receipts from Ethereum.
  • Processed Datasets: Six distinct datasets as described in the "Methods" section, covering transactions, internal transactions, contract information, contract calls, ERC20 token transactions, and ERC721 token transactions.

The authors emphasize that XBlock-ETH is periodically updated and aims to be a comprehensive resource, unlike previous works that often focused on partial data or specific research questions.

Key Insights and Ideas

  • The "Matthew Effect" in Token Transactions: The data reveals a significant concentration of activity in a few ERC20 token contracts, mirroring the "Matthew Effect" where a few entities gain disproportionately more than others.
  • Predictable Gas Price Fluctuations: Analysis of gas prices suggests that their fluctuations, while seemingly erratic, might follow a "tidal law" and could potentially be predicted, offering economic value for users.
  • Smart Contract Similarity is Pervasive: The analysis of contract calls indicates a high degree of similarity among smart contracts, particularly in token-related functions like transfer and balanceOf, suggesting potential for code reuse and also for identifying common vulnerabilities.
  • DoS Attacks Leave a Trace: The data clearly shows the impact of past DoS attacks, particularly in the frequency of contract calls and errors during specific block ranges, highlighting the importance of on-chain data for security analysis.
  • ERC721 Adoption is Slower but Growing: While ERC20 tokens are more prevalent, the paper notes that ERC721 applications require more complex visualization and development, potentially explaining their lower adoption rate but also hinting at future growth potential.

Key Results

  • Dataset Size: The processed XBlock-ETH dataset is approximately 313 GBytes.
  • Number of Blocks and Transactions: The dataset includes data from 8,100,000 blocks, containing over 491 million transactions.
  • Smart Contracts: Over 16.6 million smart contracts were created, with a mean contract hex code size of 958.20 bytes.
  • ERC20 Tokens: 106,683 ERC20 contracts were identified, facilitating over 227 million transactions among 42 million holder addresses.
  • ERC721 Tokens: 1,954 ERC721 contracts were found, with over 7.5 million transactions and 414,000 holder addresses.
  • Contract Calls: The dataset contains over 1.1 billion contract calls.

Limitations and Future Work

The authors acknowledge several limitations and propose future directions:

  • Off-Chain Data: XBlock-ETH currently focuses solely on on-chain data. Future work will incorporate off-chain data, such as exchange prices and GitHub repository information, to provide a more holistic view.
  • More Features: The current dataset provides basic features. Future improvements will explore more complex aspects of the Ethereum ecosystem, including decentralized finance (DeFi) and stablecoins.
  • Combined Analysis: The paper suggests extending the analysis to include other blockchain systems to enable comparative studies.
  • Fake User Detection: The authors express interest in improving the framework to support fake user detection, which is more challenging in permissionless blockchains.

Summary updated

BibTeX
@article{zheng2019xblock,
  author = {Peilin Zheng and Zibin Zheng and Jiajing Wu and Hong-Ning Dai},
  title = {{XBlock-ETH: Extracting and Exploring Blockchain Data From Ethereum}},
  journal = {IEEE Open J. Comput. Soc.},
  year = {2019},
  doi = {10.1109/ojcs.2020.2990458},
}
Figure