File size: 2,063 Bytes
1f94ea7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# πŸ•Έ Ethereum Transaction Graph Dataset (GNN)

This dataset represents **Ethereum transactions as edges** between addresses.  
It is designed for Graph Neural Networks (GNN), both **static embeddings** and **temporal graph learning**.  
The dataset contains 2-hop graphs, i.e., it includes neighbors of neighbors for each address.

---

## πŸ“‘ Contents

- `edges_all/edges.parquet` β€” all transactions (full edge list).
- `edges_by_week/week=YYYY-Www/edges.parquet` β€” weekly slices.
- `edges_by_month/month=YYYY-MM/edges.parquet` β€” monthly slices.
- `meta/{week,month}_window_meta.parquet` β€” time window ranges and statistics.
- `labels/targets_global.parquet` β€” labeled addresses `(node_id, is_scam, is_contract, address)`.
- `mapping/address_id_map_labels.parquet` β€” `(address, node_id)` mapping.
- `targets/{week,month}_targets.parquet` β€” labeled nodes active in each window.

---

## πŸ”‘ Edge Schema

| Field            | Type   | Units    | Description |
|------------------|--------|----------|-------------|
| src_id           | UInt64 | β€”        | Source node ID (hash of lowercase Ethereum address). |

| dst_id           | UInt64 | β€”        | Destination node ID (hash of lowercase Ethereum address). |
| ts               | Int64  | seconds  | Unix timestamp of the transaction (UTC). |
| value_wei        | STRING | wei      | Transaction value in wei (exact decimal stored as string). |

| tx_fee_wei       | STRING | wei      | Transaction fee in wei (exact decimal stored as string). |

| block_number     | Int64  | block    | Ethereum block number of the transaction. |
| contract_creation| Bool   | β€”        | True if transaction created a smart contract. |

| tx_hash          | STRING | hex      | Unique transaction hash. |

---

## Notes

- Transactions are **not filtered**: all edges included.  
- **Supervision**: loss computed only on labeled addresses.  
- **Dynamic GNN**: use `edges_by_week/` or `edges_by_month/`.  
- **Static embeddings**: use `edges_all/edges.parquet`.