File size: 1,966 Bytes
1ed225f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# 🕸 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**.

---

## 📑 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`.