A docker-compose project that will help you automate claiming your Algorand stake rewards. For this repo, I used the basic examples provided by the Algorand developer team.
By default, a cron job will run every 6 hours when you start the docker container transferring a minimum amount of Algo to the address you want to claim your stake rewards.
- You will need to install Docker and Docker Compose if you don't have them already.
- Open an account under PureStake and retrieve an API token.
- Clone the project.
- Copy the
.env.example
file and call it.env
. - Create a temporal Algorand Wallet, save the seed, and transfer just a few Algo. We will use the seed for the next step.
- Fill the env variables inside
.env
with the required info. (Warning: Do not use the seed of the account you want to claim the rewards, use the temporal one we created above)
docker-compose up -d
Once you run it, by default the docker container will start every time you start the system and it will run in the background.
- If you need to change the interval of the transactions, you can do it under the crontab file. Just make sure to rebuild your docker image with
docker-compose build --no-cache
and then usedocker-compose up -d
again.