Skip to content

fullon-labs/flon-evm-miner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FLON EVM Miner

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

For every transaction that you relay you will receive a reward in the form of FLON 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 FLON Network
RPC_ENDPOINTS A list of FLON 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, once a gas price is set, this miner will not hit the FLON 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 FLON Network. Head over to our docs to learn all about mining, claiming your rewards, and more.

Get the code

git clone https://github.com/fullon-labs/flon-evm-miner.git
cd flon-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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%