How to Mine HTN
Windows CPU Mining with Hoosat Network Miner
This guide will walk you through mining HTN on the Hoosat Network using the HTN CPU miner on a Windows system.
Prerequisites:
- A Windows computer.
- A Hoosat Network wallet address. You can create one on the node or through a compatible wallet software.
- The HTN CPU miner which is included in the node.
1. Obtain Your Pool Connection Information
You will need the following information to connect to:
- Node Address: The address of the node you want to connect to.
- Port: The RPC port number used by the node.
- Your Wallet Address: The Hoosat Network wallet address where you want to receive mining rewards.
2. Run the Miner
The htnminer.exe is in same directory as htnd.exe, you can execute it on powershell or any terminal and start mining with the following command:
htnminer.exe -s localhost –miningaddress=hoosat:blaablaablaa
3. Monitor Your Mining Activity
The miner window will display information about your mining activity, including hashrate, accepted shares, and rejected shares. You can monitor your mining rewards on your wallet or the network explorer using your wallet address.
4. Disclaimer:
This tutorial is for informational purposes only. Mining profitability can fluctuate, and there are inherent risks involved. Do your own research before deciding to mine HTN.
Linux CPU Mining with Hoosat Network Miner
This guide will walk you through mining HTN on the Hoosat Network using the HTN CPU miner on a Linux system.
Prerequisites:
- A Linux computer.
- A Hoosat Network wallet address. You can create one on the node or through a compatible wallet software.
- The HTN CPU miner which is included in the node.
1. Obtain Your Pool Connection Information
You will need the following information to connect to:
- Node Address: The address of the node you want to connect to.
- Port: The RPC port number used by the node.
- Your Wallet Address: The Hoosat Network wallet address where you want to receive mining rewards.
2. Run the Miner
The htnminer is in same directory as htnd, you can execute it on any terminal and start mining with the following command:
htnminer -s localhost –miningaddress=hoosat:blaablaablaa
3. Monitor Your Mining Activity
The miner window will display information about your mining activity, including hashrate, accepted shares, and rejected shares. You can monitor your mining rewards on your wallet or the network explorer using your wallet address.
4. Disclaimer:
This tutorial is for informational purposes only. Mining profitability can fluctuate, and there are inherent risks involved. Do your own research before deciding to mine HTN.
Windows GPU mining with HTN stratum bridge.
In this guide we will use lolMiner with HTN stratum bridge to connect to HTND node. This is simple way and does not help you with Docker containers, Prometheus or Grafana.
Prerequisites:
- Latest lolMiner with support for Blake3 mining also known as Hoohash
- HTN Stratum Bridge: https://github.com/Hoosat-Oy/htn-stratum-bridge
- Working Hoosat Network node: View guide
1. Clone HTN Stratum Bridge:
In this guide, I expect you have downloaded lolMiner, running HTND and wallet created, but then you have to use git to clone the htn stratum bridge node:
git clone https://github.com/Hoosat-Oy/htn-stratum-bridge
Once you have cloned it change directory to htn-stratum-bridge:
cd htn-stratum-bridge
Once you have cloned it change directory to htn-stratum-bridge.
2. Build the stratum bridge
To build the stratum bridge change directory to the cmd htnbridge folder:
cd cmd/htnbridge
Once you are in that folder, build the stratum bridge with the command:
go build
3. Run stratum bridge
You need to have HTND running first, but if you do launch the built stratum bridge with the following command. You must be in the htn-stratum-bridge/cmd/htnbridge folder.
.\htnbridge.exe
By default the stratum bridge listens for miners on port 5555 and connects to localhost node. You can change these settings in the configuration.
4. Start mining SRBMiner 2.6.6
Once you are successfully running HTND and HTN Stratum Bridge you can launch your SRBminer-Multi with by opening start-mining-htn.bat and copying the following into it:
setx GPU_MAX_HEAP_SIZE 100
setx GPU_MAX_USE_SYNC_OBJECTS 1
setx GPU_SINGLE_ALLOC_PERCENT 100
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_MAX_SINGLE_ALLOC_PERCENT 100
setx GPU_ENABLE_LARGE_ALLOCATION 100
setx GPU_MAX_WORKGROUP_SIZE 1024
@echo off
cd %~dp0
cls
SRBMiner-MULTI.exe --disable-cpu --algorithm hoohash --pool localhost:5555 --wallet hoosat:blaablaawwallet
Then you can start your miner with the following command:
.\start-mining-htn.bat
Then your miner should be running and mining HTN.
Linux GPU mining with HTN stratum bridge.
In this guide we will use lolMiner with HTN stratum bridge to connect to HTND node. This is simple way and does not help you with Docker containers, Prometheus or Grafana.
Prerequisites:
- SRBMiner 2.6.6 with support for Hoohash mining.
- HTN Stratum Bridge: https://github.com/Hoosat-Oy/htn-stratum-bridge
- Working Hoosat Network node: View guide
1. Clone HTN Stratum Bridge:
In this guide, I expect you have downloaded lolMiner, running HTND and wallet created, but then you have to use git to clone the htn stratum bridge node:
git clone https://github.com/Hoosat-Oy/htn-stratum-bridge
Once you have cloned it change directory to htn-stratum-bridge:
cd htn-stratum-bridge
Once you have cloned it change directory to htn-stratum-bridge.
2. Build the stratum bridge
To build the stratum bridge change directory to the cmd htnbridge folder:
cd cmd/htnbridge
Once you are in that folder, build the stratum bridge with the command:
go build
3. Run stratum bridge
You need to have HTND running first, but if you do launch the built stratum bridge with the following command. You must be in the htn-stratum-bridge/cmd/htnbridge folder.
htnbridge
By default the stratum bridge listens for miners on port 5555 and connects to localhost node. You can change these settings in the configuration.
4. Start mining SRBMiner 2.6.6
Once you are successfully running HTND and HTN Stratum Bridge you can launch your SRBMiner where you have it installed.
setx GPU_MAX_HEAP_SIZE 100
setx GPU_MAX_USE_SYNC_OBJECTS 1
setx GPU_SINGLE_ALLOC_PERCENT 100
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_MAX_SINGLE_ALLOC_PERCENT 100
setx GPU_ENABLE_LARGE_ALLOCATION 100
setx GPU_MAX_WORKGROUP_SIZE 1024
@echo off
cd %~dp0
cls
./SRBMiner-MULTI --disable-cpu --algorithm hoohash --pool localhost:5555 --wallet hoosat:blaablaawwallet
Then your miner should be running and mining HTN.