- Run this mining client to continuously mine the contract and earn Vether by burning Ether.
- You can enter your own config variables and deploy via your own heroku app.
- You can deploy this app without touching any code. See guide below.
This is your local dotenv
file, or add these variables to Heroku via config vars that you manually enter.
PAYER_KEY = <!!!MAINNET-ETH-PRIVATEKEY!!!>
PAYOUT_ADDR = <your-cold-wallet-address>
DAY_CAPITAL = 1
DYNO_URL = <your-dyno-url>
PORT = 3000
PAYER_KEY
: The address which holds funds to send Ether (hot wallet) (recommend funding with Tornado.Cash)PAYER_XPUB
BIP39 XPub to allow random sending of funds to other addresses.PAYOUT_ADDR
: The address which will be the beneficiary of funds (cold wallet)DAY_CAPITAL
: Maximum capital to spend every dayDYNO_URL
: Needed forwokeDyno.js
to keep your dyno alive every 25 minsPORT
: Heroku Port
- Fork this repo
- Go to Heroku and Create New App -> Connect to Github option
- Select this repo after searching
- Go to Settings -> Reveal config vars
- Add all the
dotenv
config variables individually - Deploy -> Manual Deploy -> Deploy Branch
- Open App -> View dashboard
Follow this guide to deploy to a Heroku app to run continuously:
https://devcenter.heroku.com/articles/getting-started-with-nodejs
Make sure you add the dotenv
config variables (Settings -> Reveal config vars)
The dashboard is available at the app domain: <app-domain>.herokuapp.com
yarn
Configuration (DotEnv)
Add your private key and config details to the dotenv
file:
Rename it to .env
Start You can run on local:
yarn start
View the dashboard by going to this: http://localhost:3000
WokeDyno doesn't play nice locally. Change the wokeDyne port to 3001
in app.js
:
app.listen(3001, () => {
wakeUpDyno(process.env.DYNO_URL); // will start once server starts
})
If you run into trouble, you can kill it:
sudo lsof -i:3000
Make sure you change back to 3000
before deploying to Heroku.