Giter Site home page Giter Site logo

eos-evm-miner's Introduction

EOS EVM Miner

This tool allows you to accept Ethereum transactions and relay them to the EOS EVM.

For every transaction that you relay you will receive a reward in the form of EOS tokens.

Environment Variables

Name Description Default
PRIVATE_KEY The private key of the miner account
MINER_ACCOUNT The name of the miner account on the EOS Network
RPC_ENDPOINTS A list of EOS RPC endpoints to connect to, comma-delimited
PORT The port to listen on for incoming Ethereum transactions 50305
LOCK_GAS_PRICE If set to true, one a gas price is set, this miner will not hit the EOS API node again to fetch a new gas price true

Usage

โš  You must have registered your miner

You must have registered your miner account on the EOS Network. Head over to our docs to learn all about mining, claiming your rewards, and more.

Get the code

git clone https://github.com/eosnetworkfoundation/eos-evm-miner.git
cd eos-evm-miner

Install dependencies

yarn

OR

npm install

Environment Variables

Copy the .env.example file to .env and fill in the environment variables.

Start mining

This command will build and run the node.

yarn mine

OR

npm run mine

If you want to just run the node without building, you can run:

yarn start

OR

npm run start

Logging

This project uses Winston for logging.

When you run the miner a directory called logs will be created in the root of the project. Inside you will find two log files, combined.log and error.log.

eos-evm-miner's People

Contributors

nsjames avatar oschwaldp-oci avatar taokayan avatar yarkinwho avatar

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.