LICENSE GPL
Solves proof of work to mine supported ERC20 tokens. This is a CPU miner. (See Releases for links to GPU miners.)
- Install NodeJS 20 (nvm install 20)
- Clone/download the project
- Open a terminal, cd into the project folder and run 'npm install' to install dependencies
- Run the command 'npm run build' to build C files with node-gyp
- Set up the config file 'miner-config.json' (duplicate miner-config-sample as a reference)
- Start the miner with 'npm run miner'
- Install Homebrew & NodeJS 20
- Run 'brew install yarn' to install yarn package manager
- Clone/download this project
- Open a terminal, cd into the project folder and run 'yarn'
- Run the command 'yarn build' to build C files with node-gyp
- Set up the config file 'miner-config.json' (duplicate miner-config-sample as a reference)
- Start the miner with 'node index.js' or 'npm run miner'
Make sure you have build-essential installed to compile C code and make sure you have python3. (probably 3.10) !
Try these commands:
node-gyp rebuild
You must create a file called 'miner-config.json' in the same directory as index.js. Duplicate 'miner-config-sample.json' and rename it.
If you do not have a public address or private key, use Metamask or another Etherum wallet to make them.
REMINDER: You >can< set the web3provider to a ropsten, mainnet, or other type of test-network provider and the software will still work. If solo mining (not to a pool) just be sure to define the correct contract address for that network and be sure your account has a small amount of ether (or test-ether).
"mining_account_public_address":"0x111111",
"mining_account_private_key":"1234567",
"mining_style":"solo" OR "pool",
"contract_address":"0xb6...",
"pool_url":"http://tokenminingpool.com:8080",
"gas_price_gwei":10,
"cpu_thread_count": 1,
"web3provider": "https://infura.io/API/apikey...."
- Install NodeJS v10
- Clone this repo
- Install dependencies with "npm install"
- Duplicate the 'miner-config-sample.json' file and rename it to 'miner-config.json'
- Set the parameters in this file appropriately
- In the console, run the command 'npm run miner' to start mining
- When mining into a pool, your gasprice does not matter and you will pay NO GAS FEES
- Every pool is different so consult each pool owner. Typically, pools will offer a token withdraw mechanism or automatically send tokens to your address on a periodic basis or when a limit is reached
- IF SOLO MINING it is necessary to fill the mining account (it is an Ethereum account) with a small amount of ether.
- Typically 0.005 eth is good enough to get started. The ether is used for gas to make function calls to the token smart contract when your miner finds a solution to the Proof of Work.
- When the gas is spent that means that you have found a solution! If you were the first to find it, you will be rewarded with 0xbitcoin tokens. (See the block explorer for typical gas prices at the current moment.)
npm run test
-
Zegordo (Developed the accelerated CPU Miner)
ETH address [0x8AE981d92875C88f713600EB7dC4D23FA7E0E621]
- 0xBitcoin token - http://0xbitcoin.org - https://github.com/0xbitcoin/0xbitcoin-token