A script for claim ChainX PCX interest and nominate node automatically
Chinese Version README.md
This script involves the user's account private key and email password, better used if you have some knowledge of the code. If you don't trust the script, don't use it. Please ensure that this script is used in a safe environment. For account security, do not use it on a public computer!!!
EasyPCXClaim is a script that can help users to claim interest and vote node automatically. Compared to other scripts, it can not only auto claim, but also send you email report about how much interest you claimed in past time.
Due to the special top-up and voting mining methods of PCX, the unextracted interest will be diluted after the new asset top-up comes in. In order to ensure the maximization of mining interests, it is better to withdraw the interest in time for re-investment. But the manual timing of the process is too tedious, so it requires a fully automated claim and vote script.
- Auto claim BTC/SDOT channel interest
- Auto claim vote interest
- Auto vote to some node after claim interest
- Send email report about cliam interest and your total account balance
To install nodejs and NPM, please refer the official website tutorial
Execute the following commands successively:
- npm install chainx.js
- npm install nodemailer
- npm install nodejs-nodemailer-outlook
Before using scripts, make sure that the above script environment dependencies are installed correctly
Open the autoclaimv3.js script file and modify the following parameters
parameters | instruction |
---|---|
private_key | your account private key |
wallet_address | your account address |
nominate_address | the candidate address |
claimInterval | time interval between claim the interest and voting (in milliseconds, the default is 3 hours) |
The email address and password used to send the email. Currently only supports outlook(microsoft live) email
parameters | instruction |
---|---|
userMail | outlook email address for sending emails |
userMailPwd | email password |
toMail | any email address used to receive email report |
Note: if you log in the mailbox with new IP for the first time, the script may trigger email warning. You need to log in the mailbox to check the mail and trust this log in activity. After more than 10 minutes, you can successfully send the mail
node autoclaimV3.js
If you want run the script in specific time interval, it's best to deploy it on a server(vps) and run it in the background. Using the command nohup node autoclaimV3.js &
If you run the above steps successfully, you can receive regular email reports of claim interest and nominate results.
- support other email address to send report
- optimize code