Automate claiming staking reward payouts for Validators and Nomination Pools on Avail DA Network.
This tool is for:
- Validators who want to automate claiming their pending rewards for previous and upcoming eras.
- Nomination Pool Operators who want to automate compounding rewards of their Pool Members who have unclaimed pending rewards above a set amount.
- Clone the Repo
git clone https://github.com/0xrishitripathi/avail-stake-flow.git && cd avail-stake-flow
- Make sure you have Node.js v16 or above installed.
node -v
# check current Node.js version on your system. To install latest version follow below steps
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
# Download and setup the NodeSource repository
sudo apt-get install -y nodejs
# Install Node.js- Proceed to install all required dependencies, including avail-js-sdk, using the following npm command:
npm install
- NOTE: Before running the script, please go though the configuration file config.ts to understand the settings and make neccesary changes for successful operation of the tool.
- Give Permission to the bash script
chmod +x staking-payout.sh
- Run the bash script
./staking-payout.sh
https://web3alert.io/link/7HDdRR9SXLiKF48bqsqSz