- install Node.js & npm
- clone this repo
cd
into the repo and runnpm i
- download the transaction data for your contract by going to it on etherscan scrolling down and clicking on "Download CSV Export"
- rename the file to
input.csv
and place it in this repo - Do one of these:
- run
node snapshot.js <YOUR_FUNCTION>
. Replace<YOUR_FUNCTION>
with the name of the staking (or any other) function in the contract you wish to take a snapshot of. You will now get the output asaddressesThatStaked.csv
- run
node uniqueAddressSnapshot.js <YOUR_FUNCTION>
if the transactions are not too high. Replace<YOUR_FUNCTION>
with the name of the staking (or any other) function in the contract you wish to take a snapshot of. You will now get the output asuniqueAddressesThatStaked.csv