Lambda functions for your Ethereum mining rig.
Comes with a status page, and auto-sell automation. By using the nanopool and GDAX APIs, Ethaxe enables you to 'set and forget' your returns on your mining investment and have any USD sale funds deposited to your bank account.
Make sure you have Serverless installed and your AWS credentials are set up.
Next, clone the repo.
git clone git@github.com:alfonsogoberjr/ethaxe.git
cd ethaxe
If you haven't already, make sure you create GDAX API keys.
Open up the file credentials.example.json
. Replace the GDAX values with your credentials.
Rename it to credentials.json
and save. This file is listed in .gitignore so you don't have to worry about accidentally checking it in to Git.
You will need an Ethereum mining rig with EthOS installed, mining on Nanopool.
Copy your ethOS Dashboard address and paste it into credentials.json
.
You will of course need an Ethereum wallet address from GDAX. Open up your Deposit menu from the ETH dashboard, and copy/paste the deposit address GDAX gives you into credentials.json
.
You might notice that there is a different address each time you click "Deposit". Don't worry, all of those addresses are linked to your account permanently.
If you'd like to keep track of how close your rig is to paying for itself, you can enter your total expenditure on your rig (you are keeping track of this, aren't you?) into credentials.json
.
This is the percentage of your mined Ethereum you'd like to auto-convert into USD when the payout is detected.
Set your moment.js time zone. Default is America/New_York
.
You're all set! Now you're ready to deploy your functions.
A scheduled function which will run once per day, checking nanopool's API for payments in the last 24 hours. If it finds one that's confirmed, it will sell a percentage of those funds and withdraw the USD into your bank account. 100% automated returns from your rig.
A handy status page for your overall mining financials. Calculates ROI and notes how much time you have left until your rig(s) pays for itself.
Just run
yarn build && yarn deploy
In the output you will see
endpoints:
GET - https://xxxxxxxxxx.execute-api.us-east-1.amazonaws.com/prod/
Open that URL in a browser to see your new stats page. Bookmark it, share it, refresh it constantly on your phone while riding the subway, etc.
yarn test
open file://$(pwd)/index.html