0.1.0 • Published 9 months ago

eos-evm-miner v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

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

NameDescriptionDefault
PRIVATE_KEYThe private key of the miner account
MINER_ACCOUNTThe name of the miner account on the EOS Network
RPC_ENDPOINTSA list of EOS RPC endpoints to connect to, comma-delimited
PORTThe port to listen on for incoming Ethereum transactions50305
LOCK_GAS_PRICEIf set to true, one a gas price is set, this miner will not hit the EOS API node again to fetch a new gas pricetrue

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.