Do you want to claim rewards for a steem account automatically twice a day? When:
- you use a linux system with python and systemctl
- have beem installed
- a wallet created (
beempy createwallet --wipe)
- and a posting key stored (
then you can follow this tutorial to add a systemd timer for claiming rewards.
Installing a timer for claiming rewards twice a day is convenient, but involves some risks. We are storing the posting key of an account on a (remote) server. Everyone that manages it to log in as root on the server will be able to receive the posting key. (The wallet password is stored in the script. After copying the wallet-sql library, the attacker can decrypt the stored posting key with the wallet password.)
Never store an owner key or a master key in a beem wallet!
Knowing this, it is advised to immediately change the posting key, when something unusual happens.
Description=Claim rewards twice daily
Description=Claim reward service
beempy claimreward yoursteemacc
We store steem-claimreward.timer and steem-claimreward.service in
cp steem-claimreward.* /etc/systemd/system
The bash script is moved to /root. In order to increase security, we assure that only root can read this file:
chmod 700 /root/claimreward.sh
It is also possible to replace the root user by another user in the
claimreward.sh has than to moved to a place the user can access.
yoursteemacc with the account name from which you want to claim (posting key of this account has to be stored into the beempy wallet). Then you have to replace
Your-Wallet-Password with your beempy wallet password.
systemctl reenable --now steem-claimreward.timer
activates the timer. With
systemctl status steem-claimreward.timer
you can check for the next execution time point.
The log file can be viewed by:
journalctl -f -u steem-claimreward
systemctl enable steem-claimreward.timer
systemctl disable steem-claimreward.timer
systemctl start steem-claimreward.timer
systemctl stop steem-claimreward.timer