Skip to content

DeFireX/autoCompounder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  1. 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
  2. Run npm install in project directory

    npm i
  3. 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.

  4. Run the script, check it runs properly without any errors

    node ./index.js
  5. Install pm2 process manager

    npm i pm2 -g
  6. 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
  7. Enable to restart script on server reboot

    pm2 save
    pm2 startup

About

Auto compound script for DefireX pools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published