The ethereum-datafarm aims to provide quick access to historical Ethereum event data by offering an easy-to-use interface to parse event logs from contracts and save them in .csv format.
-loc
or --location
flag: E.g. python3 run.py -loc ./myfolder
Or check out this sample output file of dai transfers
$ cd ./src
$ python3 run.py
OR
from ethereum_datafarm import *
if __name__=="__main__":
# Initialize Farm
farm = Farm()
# Load Contracts
farm.load_contracts()
# Start parsing
farm.farm()
-c
or --cores
flag to set the amount of cores to be used. A value of -c 4
is recommended.-log
or --log
flag. The logs are stored at "./logs.txt"$ git clone https://github.com/Nerolation/ethereum-datafarm
$ cd ethereum-datafarm
$ python3 -m venv .
$ source bin/activate
$ pip install -r requirements.txt
0x30f938fED5dE6e06a9A7Cd2Ac3517131C317B1E7,giveth,Donate(uint64,uint64,address,uint256),5876857,50000
0x30f938fED5dE6e06a9A7Cd2Ac3517131C317B1E7,giveth,DonateAndCreateGiver(address,uint64,address,uint256),5876857,50000
0xDe30da39c46104798bB5aA3fe8B9e0e1F348163F,gitcoin,Transfer(address,address,uint256),12422079,50000
0x1fd169A4f5c59ACf79d0Fd5d91D1201EF1Bce9f1,molochdao,SubmitVote(uint256,address,address,uint8),7218566,50000
Initialize farm and starts parsing data:
@misc{Wahrstaetter2022,
title = {Ethereum-datafarm},
url = {https://github.com/Nerolation/ethereum-datafarm},
urldate = {2022-08-18},
publisher = {Github},
author = {Anton Wahrsttter},
year = {2022},
}
Visit toniwahrstaetter.com for further details!
Anton Wahrsttter, 18.08.2022