This tool can be used to distribute a set amount of tokens to random addresses passed in recipients.json
-
Create a secretsManager.js file and add mnemonic for wallet that has some matic (or eth etc) and token for distribution
-
Configure config.js (Most significantly here for "mumbai" / "polygon")
yarn
yarn distribute
- Distributes tokens to list on config network
Tip for generating mnemonic:
yarn add global bip39
node -e 'console.log(require("bip39").generateMnemonic())'
https://github.com/kyledewy/eth-keys <- ethersjs wrapper that can be used to convert mnemonic to pvt key & get public address of mnemonic (I reviewed the code, at time of writing no weird backdoors)