0% found this document useful (0 votes)
34 views

BitStacks Mining Tutorial

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

BitStacks Mining Tutorial

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

BitStacks mining tutorial

I am using two machines in this guide: Windows 10 and Ubuntu 22.04.

First, i will configure a Windows machine.

1) Download Wallet QT 70032 for Windows: https://github.com/bitnet-io/bitnet-


core/releases/download/linux-windows-wallet/bitnet-24.99.0-win64-setup-03-01-2024.exe

2) Install it and go to %USERPROFILE%\AppData\Roaming\Bitnet

3) Edit file bitnet.conf

server=1
daemon=1
disablewallet=0
rest=1
rpcuser=1
rpcpassword=1
rpcallowip=192.168.0.0/16
dbcache=512
banscore=1
rpcthreads=256
rpcworkqueue=256
rpctimeout=100
txindex=1

bind=0.0.0.0:8333
rpcbind=0.0.0.0:8332
rpcport=8332
port=8333

Note: In rpcallowip parameter, you must use your LAN settings. Config or disable your Windows
firewall to allow connections from Ubuntu to Windows machine.

4) Run Bitnet Core and wait for sync.

5) Now you must create a legacy wallet.


Now we go to Ubuntu machine. Open Terminal and run these commands as root:

0) sudo su

1) curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

2) source ~/.bashrc

3) nvm install 21

4) wget https://github.com/bitnet-io/stacks.js/releases/download/patched-for-bitnet/stacks.js-02-23-
2024.tar.gz

5) tar -xvf stacks.js-02-23-2024.tar.gz

6) cd stacks.js

7) ./packages/cli/bin.js make_keychain

Now you see something like this:

In your case, the values will be different. Save this information and never share it with anyone.

Now we return to Windows machine.

1) Go to your wallet console (Ctrl+T) and type command:

importprivkey " QWH9dsfGRdB............................yx4dPUUUh8whnfFgZwg"

2) Press Enter
Now you must send a small amount of BIT to your wallet address. You can start with 10 BIT.

This deposit will burns for STX mining.

Now we go to Ubuntu machine. Open Terminal and run these commands as root:

0) sudo su

1) wget https://github.com/bitnet-io/stacks-core-
bitnet/releases/download/WEB_GUI_MINER/BitStacks-Web-Server-03-12-2024.tar.gz

2) tar -xvf BitStacks-Web-Server-03-12-2024.tar.gz

3) cd BitStacks-Web-Server/conf

4) nano miner-Mainnet.toml

5) Edit this file with your values.

6) Save (Ctrl+O) and exit (Ctrl+X)

7) npm run start

Open another Terminal instance to download and run Web-Miner.

0) sudo su

1) wget https://github.com/bitnet-io/stacks-core-
bitnet/releases/download/WEB_GUI_MINER/BitStacks-Web-Miner-03-12-2024.tar.gz
2) tar -xvf BitStacks-Web-Miner-03-12-2024.tar.gz

3) cd BitStacks-Web-Miner

4) export NODE_OPTIONS=--openssl-legacy-provider

5) npm run start

Now open browser on any PC on your local network and go to:

http://YOUR_UBUNTU_IP:8000

Come up with a password.


Click on Mainnet link.

Go to Wallet on left menu and click on "+Add".

Copy your mnemonic phrase from stacks.js and paste here.

Do it again with STX type.


Now you see your addresses and balance. Your balance of BIT must be greater than zero.

Go to Mining Client tab.

Before start mining, you need to download BitStacks-node. Then click on "Start Mining".

1) Select your Bitnet address with non-zero balance.

2) Set Burn Fee and Satoshi Per Bytes values. You can start with defaults or increase it.

3) Type your Windows machine IP address on "Peer host".

4) Click on "Finish"

5) Type "bitnet" on Auth Code window

6) Wait for Main Chain and Local Chain sync.

Congrats! Now you`re mining a BitStacks.


If you have done everything correctly, your wallet balance will decrease when you find a block.

However, this does not guarantee that you will receive a reward, because several miners can find the
same block in BitStacks.

The winner is determined based on the bet, which is influenced by the Burn Fee and Satoshi Per Bytes
parameters.

You might also like