I wrote a script to assist with air-drops to Hive-Engine token holders. You can find it here: https://github.com/Stormrose/hepayer
A node js script for token airdrops for the HIVE blockchain based on membership holdings of a specified Hive-Engine token.
This project is intended for airdrops: either dropping more of the same token to existing users or airdropping a token to owners of another token. Using this project for profit distributions/dividends might violate Hive-Engine's T&Cs regarding security tokens and additionally there are likely other legal compliances issues to consider. Support for Steem and Steem-engine may be deprecated in future. This project has minimal error checking. You are assumed to know what you're doing.
node index.js token_config.json amttoairdrop [activekey]
Without activekey: print the airdrop distribution schedule.
With activekey: execute the airdrop distribution schedule.
node index.js token_SOMETOKEN.json 17.021')
Uses the config specified in
token_SOMETOKEN.json and prints out a schedule for the pro-rata air-dropping of 17.021 tokens.
Requires node js.
General usage only requires the
package.json and a token config.json file but it doesn't hurt to have all of the files. Change into the folder and then type:
npm install --production
Then edit the token config.json file to your specific needs.
Developers should download everything. Place these into their own folder and then:
npm install -g typescript
Then edit the token config.json file to your specific needs. The project uses TypeScript so you should only edit the .ts files.
Token config.json files
Please see the example files.
- Hive blockchain tokens can use a list of nodes in a JSON array to enable automatic failover.
- Test run your distribution without an active key to review the distribution schedule before executing the distribution.
- Test run your token config.json with a small distribution first. Often 1.0 tokens will be enough for a test run.
- The distribution schedule printed when an active key is not supplied is optimised for importing into a spreadsheet. Redirect the output to a
.txtfile and then open in your favourite programme.
- On unix, use the
teecommand to output to a log file and to the console.
x | tee logfile.txt. In Windows PowerShell you can use
x | Tee-Object -FilePath "logfile.txt"