Python script that performs an airdrop of LKMEX to NFT holders.
There are two different scripts :
- "LKMEXSender_SameForEveryHolder.py" performs an equal airdrop for all addresses, not accounting for the number of NFTs hold.
- "LKMEXSender_WeightedByNFTHold.py" performs an airdrop weighted by the quantity of NFTs hold for each address. More NFTs means higher airdrop.
Erdpy needs to be installed.
Pandas as well.
Both libraries versions are in the requirements file, and they can be installed with pip. However I would recommend visiting Elrond's doc on Erdpy in order to be sure to install all necessary libraries.
In a terminal the command should look like :
python3 LKMEXSender_WeightedByNFTHold.py --filename LIST_OF_HOLDER_ADDRESSES.csv --amount_airdrop TOTAL_LKMEX_QUANTITY --id LKMEX_ID --pem PATH_TO.pem
The CSV file should have two columns: "Address" and "Count" (for the number of NFTs hold).
Note that there is a somewhat not accurate filter for smart contract addresses (supposedly filtering out marketplaces), by checking if the address has a minimum of 6 "q". However if you have an accurate list of marketplaces addresses, or for whatever reasons some of the holders have many "q" in the address you might need to update the code. So far the current version has always worked.