Automated staking payout tool for substrate-based chains. Can either function in single-run mode (default), or in daemon mode, where it will run at defined periods. Supports list-only mode. A simplified and daemonized version of canontech/staking-payouts.
- Clone the repository
git clone https://github.com/helikon-labs/substrate-simple-payout.git. - Enter the source code directory
cd substrate-simple-payout. - Make the
.envfile by copying the sample config filecp .env.sample .env. - Configure the parameters in the
.envfile.SUBSTRATE_RPC_URL: Substrate full node RPC URL.MNEMONIC: Mnemonic of the account that will submit the payout extrinsics.STASHES: Validator stash addresses for which the payouts will be made.ERA_DEPTH: Payout search era depth (i.e. a value of 12 means 12 eras prior to the active era will be searched for unclaimed payouts for each entered stash address).PAYOUT_CHECK_PERIOD_MINS: Payouts will be repeated at this period of time - expected in minutes. Ignored in the single-run mode (default).
- Run
npm install. - Run
npm startfor single-run payout mode, ornpm start -- --daemonfor the daemon mode (regular checks at defined intervals). Use the--listflag to only list the unclaimed eras for each stash and not make any payouts, e.g.npm start -- --list.
