- An airdrop program, applicable for various kinds of tokens.
- It will check all the blocks between
BEGIN_HEIGHT
andEND_HEIGHT
(includingBEGIN_HEIGHT
andEND_HEIGHT
), to find out specific transactions in each block.
- Execute
pip3 install -r requirements.txt
in the project. - Open
parsing blocks.py
and change the value ofURL
,BEGIN_HEIGHT
,END_HEIGHT
.
Notice that BEGIN_HEIGHT should be less than END_HEIGHT. - Run
python3 parsing_blocks.py
then a file namedaddresses.csv
will appear in the project root path. It has two columns: the first is erc20 addresses and the second is values. - Open
config.py
to change api_endpoiont, contranct address and wallet address. - Run
python3 main.py [CSV_FILE_PATH]
to execute airdrop.