ansonla3 / staking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

staking

Install all the required dependencies

yarn

How to use

node claim.js 0 

By setting up the claim.js to your daily routine / scheduler in the OS level, it helps you to claim the KSM payouts automatically.

Add 0 to the last argument if you are nominator.

Add 1 to the last argument if you are validator.

Environment variables

WS_ENDPOINT - Websocket endpoint used to communicate with the network (e.g. wss://kusama-rpc.polkadot.io/ or wss://cc3-5.kusama.network/)

MNEMONIC - Your nominator/validator account (It also supports addFromSeed, free feel to change it for your need)

Output

node claim.js 1
Your address is DMTHrNcmA8QbqRS4rBq8LXn8ipyczFoNMb1X4cY2WD9tdBX
You have 1 unclaim payouts.
You last payout era is 632
Submitted with hash 0x3958a3badbd53ea30e7da47e531f9c2d870f81a41cabd9286eb00157b50236ff

About


Languages

Language:JavaScript 100.0%