--- language: - en tags: - ethereum - eth - cryptocurrency size_categories: - 10B1M), with scam/contract metadata, **not used directly** (later downsampled & balanced). - **`addr_labels_balanced.csv`** — final balanced list of ~115k addresses (scam vs non-scam, contract vs EOA), used for both **GNN** and **LSTM** datasets. All parquet files in this dataset are compressed using **Zstandard (zstd)** for efficient storage and fast access. These files are the **starting point** for the preparation scripts: - `build_unified_dataset.py` → creates `gnn_dataset/` (GNN). - `build_lstm_dataset_lowmem.py` → creates `lstm_dataset/` (LSTM). --- ## ⚖️ Labels - Source: Etherscan tags + curated scam lists. - Balanced across: - **Scam vs Non-Scam** - **Contract vs EOA** - Provided in: - `gnn_dataset/labels/targets_global.parquet` - `gnn_dataset/mapping/address_id_map_labels.parquet` --- ### Address Label Files Both `addr_labels_big.csv` (full set) and `addr_labels_balanced.csv` (balanced subset) share the same schema: | Field | Type | Units | Description | |--------------------|----------|-------|-------------| | address | STRING | hex | Ethereum address (0x..., lowercase). | | is_scam | INT64 | 0/1 | Scam label: 1 = scam, 0 = non-scam. | | description | STRING | — | Free-text description (e.g. "Verified", "Phishing"). | | activity_start_ts | TIMESTAMP| UTC | First observed activity timestamp. | | activity_end_ts | TIMESTAMP| UTC | Last observed activity timestamp. | | is_contract | INT64 | 0/1 | Address type: 1 = smart contract, 0 = EOA. | - **`addr_labels_big.csv`** — ~1M+ raw addresses with scam/contract metadata, **not used directly** (later downsampled and balanced). - **`addr_labels_balanced.csv`** — final balanced subset (~115k addresses, scam vs non-scam, contract vs EOA), used in both **GNN** and **LSTM** datasets. --- ## 📦 Use Cases - **Graph ML:** Train static embeddings (GraphSAGE, Node2Vec) or temporal GNNs. - **Sequence ML:** Train LSTM/Transformer on address time-series features. - **Fusion:** Combine GNN embeddings and LSTM features via `node_id`. - **Fraud detection:** Predict scam addresses, contracts vs EOAs. --- ## 🛠 Collection Details - Source: Ethereum mainnet via BigQuery. - Labels: from Etherscan + custom curated lists. - Timezone: UTC. - ETH amounts stored as Decimal(38,9), exported as strings for precision. - Data preparation optimized for BigQuery + Polars, fits in 12–24 GB RAM. ## 🗂 Source Datasets The address list and labels (scam/non-scam, description) were compiled from the following public datasets: - **Primary sources:** - [xblock.pro Dataset #13](https://xblock.pro/#/dataset/13) - [xblock.pro Dataset #25](https://xblock.pro/#/dataset/25) - [xblock.pro Dataset #50](https://xblock.pro/#/dataset/50) - [PTXPhish](https://github.com/blocksecteam/PTXPhish/tree/main?tab=readme-ov-file) - [Phishing Contract Sigmetrics](https://github.com/blocksecteam/phishing_contract_sigmetrics25/tree/main) - [Etherscan Open Source Contract Codes](https://etherscan.io/exportData?type=open-source-contract-codes) - [MyEtherWallet Ethereum Lists](https://github.com/MyEtherWallet/ethereum-lists) - [EtherScamDB](https://github.com/MrLuit/EtherScamDB/tree/master) - [CryptoScamDB Blacklist](https://github.com/CryptoScamDB/blacklist) - [ScamSniffer Scam Database](https://github.com/scamsniffer/scam-database) - [Forta Network Labelled Datasets](https://github.com/forta-network/labelled-datasets) - [Kaggle: Labelled Ethereum Addresses](https://www.kaggle.com/datasets/hamishhall/labelled-ethereum-addresses?select=eth_addresses.csv) - [Etherscan Labels](https://github.com/brianleect/etherscan-labels/tree/main/data/etherscan/combined) - [Kaggle: Ethereum Fraud Detection Dataset](https://www.kaggle.com/datasets/vagifa/ethereum-frauddetection-dataset/data) - [Ethereum Fraud Datasets](https://github.com/surajsjain/ethereum-fraud-datasets/tree/main) - [Kaggle: Ponzi Scheme Contracts](https://www.kaggle.com/datasets/polarwolf/ponzi-scheme-contracts-on-ethereum) - [Ethereum Fraud Detection](https://github.com/eltontay/Ethereum-Fraud-Detection) - **Integration:** - Addresses and labels from these sources were merged and deduplicated. - The final balanced address list (~115k addresses) was constructed based on these datasets.