Source codes of paper Trans2Graph: Mining Ethereum Phishers with Graph on Dynamic Heterogeneous Transaction Data
- Download the data (https://www.kaggle.com/competitions/forta-protect-web3/data) to the folder './kaggle_data/', decompress the data files.
- Run log_decoder.py with parameter 'train' and 'test' to obtain the token transfer events.
- Run data_process.ipynb to obtain the processed transaction records with transaction types.
- Create a folder './graph_data/raw/'
- Run train.py to train and test the model, with the randomly divided data split in 'train_index'. The final model will be saved in 'models/split{}/trans2graph/'.