Claim your Hive-Engine tokens automatically

in HiveDevs5 years ago

When you curate or participate in the life of a community that has issued its own Hive-Engine token, you can earn new tokens. It's cool, isn't it!

But, as for the HBD and Hive Power earned on Hive when posting and curating, your have to claim your reward to see it appear in your wallet. As far as the authors' rewards are concerned, everyone is quite used to it and the various front-ends available give you the possibility of doing it easily.

Alas, when it comes to your Hive-Engine tokens, it's a whole different story. You may not even know that you are entitled to such tokens. Claiming your token can become nightmarish because you have to identify yourself on another application, check your wallet or notifications to finally be able to claim your tokens. And above all, you must not forget to do it regularly!

Enter the automation

To make your life cooler, I have created a small app that will automate this process.

Once a day (limit imposed by Hive Engine), it will check if you don't have any token(s) that you can claim. And if so, it will claim them all at once.

The app is open source and you can download the code from github

How to use?

  • Clone the repository locally
  • Make sure you have the latest LTS or greater version of Node JS installed
  • Go inside the cloned folder and type npm install
  • Rename settings.json.example.txt to settings.json and enter the information for the account(s) you want to automate.
  • To start the app, type npm start

To run the app continuously in the background, you can use PM2.

  1. Generate ecosystem.config.js file with pm2 init command and add the environment variables in the file.
  2. When you are done, start the app with the following command:
    pm2 start ecosystem.config.js --env production

Feel free to fork the repository and submit your changes.

Thanks for reading!


Support my work for the Hive community.

Vote for me as a witness

Sort:  

I barely understand a thing, can't the app be available on iOS store or play store for easy downloading

This post might provide you with answers to your questions 😉

The idea is worthwhile, but users who aren't tech savvy might find it difficult to apply.

Those who blog on mobile might have an issue too.

You have been heard @jacksondavies.
Here the answers to the issues you raised.

always getting better ! ✌️ 🚀

Curious about it... hmmm

This is interesting but I need a step by step video lol