Code Monkey home page Code Monkey logo

ethaxe's Introduction

Ethaxe โ›

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.

Donate with Bitcoin Donate with Ethereum Donate with Litecoin

Getting Started

Make sure you have Serverless installed and your AWS credentials are set up.

Next, clone the repo.

git clone [email protected]:alfonsogoberjr/ethaxe.git
cd ethaxe

API Keys

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.

EthOS and Nanopool

You will need an Ethereum mining rig with EthOS installed, mining on Nanopool.

Copy your ethOS Dashboard address and paste it into credentials.json.

Ethereum Wallet Address

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.

Mining Investment

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.

Sell Percentage

This is the percentage of your mined Ethereum you'd like to auto-convert into USD when the payout is detected.

Time Zone

Set your moment.js time zone. Default is America/New_York.

You're all set! Now you're ready to deploy your functions.

Functions

nanopoolScan

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.

statusPage

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.

Deploy

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.

Test

yarn test
open file://$(pwd)/index.html

ethaxe's People

Contributors

alfonsogoberjr avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tanitall

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.