🛠️Crunch bot
Crunch bot - automatic reward payments
Crunch is a command line interface (CLI) for easily automating staking reward payouts on Substrate-based chains
Crunch allows you to:
claim staking rewards for one or a list of validators at the end of each epoch or every X hours
receive notifications about the amount and rate of total staking rewards received by each validator and its nominators
get statistics for each validator. For example - inclusion rate, claimed reward rate, epoch score trend, activity for the current epoch
check for any unclaimed epochs for a given validator
You can check out all the features of Crunch on the official github page
Installing crunch-bot
Create a directory and download the binary file
When running on ubuntu 22.04, an error may occur with the openssl library You can install it yourself
Setting .env
Create a main .env configuration file and configure it. The example below provides a simplified configuration file that uses 1 Kusama validator stash wallet. You can see the full functionality here
By default crunch will try to connect to ws://IP:9944
If you use RPC to connect, then add the following flagCRUNCH_SUBSTRATE_WS_URL=ws://IP:9944
Replace:
CRUNCH_STASHES on your validator's stash
CRUNCH_MATRIX_USER to your main matrix account
CRUNCH_MATRIX_BOT_USER to your additional matrix account, which you will need to create in advance and from which you will receive messages
CRUNCH_MATRIX_BOT_PASSWORD to your password from the additional matrix account
We also need to create a separate wallet from which to pay for transactions. We top it up and enter the Seed phrase from the wallet in .private.seed
Launching crunch-bot
Now we can see in information form which awards from the last 84 eras were claimed and which were not claimed
Create a service file
'era' - run crunch immediately after EraPaid event is triggered in chain
'daily' - repeat crunch task every 24 hours
'turbo' - repeat crunch task every 6 hours
'once' - tries to payout once and exit
Last updated