πŸ–₯️ How to: CPU Mine $DAIKI

This guide explains the required steps to CPU mine $DAIKI with your PC.

Linux / Windows

For Windows you might need to download and install 'Desktop development with C++'. Follow the instructions here.

1. Install NodeJS 10

sudo npm install -g n
sudo n 10.24.1
nvm use 10.24.1

# Or
nvm install 10

2. Clone 0xbitcoin-miner from Github

Clone the 0xbitcoin-miner repository to your local system.

git clone https://github.com/daikirifinance/0xbitcoin-miner.git

3. Change branch to the desired network

Enter the following command to change the repository to the desired network.

git checkout matic_mainnet

4. Install dependencies

Open a terminal, cd into the project folder, and run the following command to install the dependencies:

npm install

5. Build the project

Run the following command to build C files with node-gyp:

npm run build

6. Create a 'miner-config.json' file

Duplicate the example file miner-config-sample.json as a reference. You can view the available mining contracts here.

{
  "mining_account_public_address": "<YOUR_PUBLIC_KEY>",
  "mining_account_private_key": "<YOUR_PRIVATE_KEY>",
  "mining_style": "solo",
  "contract_address": "<MINING_CONTRACT_ADDRESS>",
  "pool_url": "",
  "gas_price_gwei": 10,
  "cpu_thread_count": 1,
  "web3provider": "<WEB3_PROVIDER>"
}

7. Start mining!

Run the following command to start mining:

npm run miner

Need help?

Follow the instructions here or Contact us on Telegram.

Last updated

Was this helpful?