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