Skip to content

Bitnet: Mining Bitnet

masayoshikob edited this page Aug 26, 2023 · 1 revision

⚠ Due to the current high difficulty, might take several days for you to mine a Bitnet if you're using your CPU.

CPU Mining

With your node running, you can start mining using the integrated Javascript Console. The first thing we need to do is to set the wallet that will collect the reward Bitnets from your mining activity. Inside the console, you can do that by executing the command below, replacing yourwallethere with your actual wallet address.

miner.setEtherbase('yourwallethere')

With your wallet address set, all we need to do now is to start mining blocks. For that, you can use the command below.

miner.start(1)

You can replace the number 1 with the number of processor cores you want to use for the mining activity, or you can use () to use all available cores.

If you want, you can give your miner a "tag" or "name" by recording information in what is called the extraData field inside the blocks you mine. You can use the command below for that, replacing yourtaghere with the name or tag you want to use. We recommend keeping it below 12 characters.

miner.setExtra('yourtaghere')

GPU Mining

To mine with your GPU, you need to set your wallet address directly on the starting script. You can do it by modifying Bitnet.cmd (on Windows) or Bitnet.sh (on Linux/MacOS) with any text editor, and editing the flag --miner.etherbase 0x0000000000000000000000000000000000000000 replacing the 0x0 address with your own wallet address.

With your node running, start the GPU mining script by double-clicking on it or running it via the terminal. On Windows devices the batch file script to run the GPU miner is named BitnetGPUMiner.cmd and on Unix devices, BitnetGPUMiner.sh.

Once running, the script will automatically start mining using your GPU hardware and sending the rewards to the wallet specified.

The script uses ethminer and you can personalize how you want to run it by modifying the script with any text editor. For more information about ethminer please visit https://github.com/ethereum-mining/ethminer.

Mining Pools

The most effective way for regular users to mine Bitnet is by joining a mining pool. It improve your chances of being rewarded while working together with other miners to solve the PoW. You can check on a list of available mining pools on Bitnet.Money/Mining-Pools.

Clone this wiki locally