A simple utility to claim vote rewards and refresh vote strength daily on the WAX blockchain.
Important
This utility can only be used to delegate the votes to a proxy account, it cannot be used to vote for individual block producers
This utility checks if the last claim time is less than 24 hours, if yes, it waits until the next claim time. otherwise it checks if the account has voted before, if yes then it claims the rewards and refreshes the vote strength, otherwise it just votes.
This is an image of a flowchart shown below
Before using this utility, you need to have a config file.
By default, it will be look for a file named config.txt
in the current working directory.
The syntax of the config file is as shown below, 1 account per line, you can add as many accounts as you want.
account:permission:private_key:proxy
# blank lines and lines starting with # are considered as comments, they are ignored
Sample config.txt file
# this is an example config file
anchor.gm:claim:5K*************************************************:top21.oig
mycoolwallet:vote:5K*************************************************:waxcommunity
hello.wam:active:5K*************************************************:bloksioproxy
Note
If you want to use this with a Cloud Wallet account (.wam account), you will need to soft/hard claim your account first.
Warning
It is highly recommended that you create a custom permission that can only do the eosio::voteproducer
and eosio::claimgbmvote
actions for increased security.
You can read more about custom permissions in this article by Anyobservation Academy, and how to make custom permissions in this course from WAX sw/eden
Download the latest release, and run it in a terminal using the following command:
./stakeclaim
# Or you can pass a path to a config file
./stakeclaim --config-file /path/to/config.txt
When running the utility in Docker, you must create a config file named config.txt
and mount it to the container under the /config
folder.
# start the container
docker run -d --name=autoclaim -v /path/to/config.txt:/config/config.txt ghcr.io/benjiewheeler/stakeclaim:latest
Hire me ;)
Licensed under the MIT License