-
Install Node.js (nodejs.org)
We recommend to use Ubuntu and install nodejs via package manager.
Node.js v12.x:
# Using Ubuntu curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt-get install -y nodejs # Using Debian, as root curl -fsSL https://deb.nodesource.com/setup_12.x | bash - apt-get install -y nodejs
-
Run npm install in project directory
npm i
-
Create .env file (nano ./.env) and add required information
USER_ADDRESS= USER_PK= WITH_PROFIT_ONLY=1
USER_ADDRESS is a wallet address like 0xc8F595E2084DB484f8A80109101D58625223b7C9
USER_PK is a private key for USER_ADDRESS, private key is required to automated sending transactions
WITH_PROFIT_ONLY indicates that we send trx only when user has a profit
Make sure you have some BNB on your USER_ADDRESS balance (not less than 0.03 BNB).
Don't use you main wallet, just create empty one and send some BNB.
-
Run the script, check it runs properly without any errors
node ./index.js
-
Install pm2 process manager
npm i pm2 -g
-
Add script to pm2 to loop the process
pm2 start ./index.js --name DefireXAutoCompounder
You may check the logs via
pm2 logs
Stop the script
pm2 stop DefireXAutoCompounder
or
pm2 stop 0
-
Enable to restart script on server reboot
pm2 save pm2 startup
-
Notifications
You must be signed in to change notification settings - Fork 4
DeFireX/autoCompounder
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Auto compound script for DefireX pools
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published