├── Hemi_Testnet commands └── README.md /Hemi_Testnet commands: -------------------------------------------------------------------------------- 1 | ------------------1------------------- 2 | sudo apt update && sudo apt upgrade -y 3 | sudo apt install screen 4 | 5 | ------------------2------------------- 6 | mkdir POP && cd POP && wget https://github.com/hemilabs/heminetwork/releases/download/v0.11.1/heminetwork_v0.11.1_linux_amd64.tar.gz 7 | 8 | ------------------3------------------- 9 | tar xvf heminetwork_v0.11.1_linux_amd64.tar.gz 10 | 11 | ------------------4------------------- 12 | screen -S Hemi 13 | 14 | ------------------5------------------- 15 | cd heminetwork_v0.11.1_linux_amd64 16 | 17 | ------------------6------------------- 18 | ./popmd --help 19 | 20 | ------------------7------------------- 21 | chmod +x keygen && ./keygen -secp256k1 -json -net="testnet" > ~/popm-address.json 22 | 23 | ------------------8------------------- 24 | cat ~/popm-address.json 25 | 26 | ------------------9------------------- 27 | export POPM_BTC_PRIVKEY=[Same private key that you have generated RN] 28 | export POPM_STATIC_FEE=110 29 | export POPM_BFG_URL=wss://testnet.rpc.hemi.network/v1/ws/public 30 | ------------------10------------------- 31 | 32 | ./popmd 33 | ------------------11------------------- 34 | 35 | screen -r Hemi 36 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ⚙️How to run a Hemi Miner (Mainnet)⚙️ 2 | ![image](https://github.com/user-attachments/assets/e3deafee-6310-45a6-b3d9-6d33539a07c4) 3 | 4 | --- 5 | ## Step 1 : Setting up a VPS 6 | 7 | You can choose CLOUP VPS 2 on Contabo : https://www.tkqlhce.com/click-101114590-13484397 8 | 9 | ![image](https://github.com/user-attachments/assets/0848b3d0-8a01-4b50-9adb-5a95d181fa75) 10 | 11 | Select Ubuntu 22.04 12 | 13 | ![image](https://github.com/user-attachments/assets/50143399-91e5-4e71-b7e9-0d46d7462caa) 14 | 15 | 16 | ## Step 2: Connect to your VPS 17 | ``` 18 | ssh root@ 19 | ``` 20 | ## Step 3: Setup your Hemi node 21 | 22 | - Update your system 23 | ``` 24 | sudo apt update && sudo apt upgrade -y 25 | ``` 26 | - Install screen 27 | ``` 28 | sudo apt install screen 29 | ``` 30 | - Install Hemi file 31 | ``` 32 | mkdir POP && cd POP && wget https://github.com/hemilabs/heminetwork/releases/download/v1.6.2/heminetwork_v1.6.2_linux_amd64.tar.gz 33 | tar -xvzf heminetwork_v1.6.2_linux_amd64.tar.gz 34 | ``` 35 | - Create an Hemi Screen 36 | ``` 37 | screen -S Hemi 38 | ``` 39 | - Go to Hemi directory 40 | ``` 41 | cd heminetwork_v1.6.2_linux_amd64 42 | ``` 43 | - Verify the config of the node 44 | ``` 45 | ./popmd --help 46 | ``` 47 | - Give permission to wallet file 48 | ``` 49 | chmod +x keygen && ./keygen -secp256k1 -json -net="mainnet" > ~/popm-address.json 50 | ``` 51 | - Save your wallet 52 | ``` 53 | cat ~/popm-address.json 54 | ``` 55 | - Fund your address with BTC send it to the pubkey_hash 56 | pubkey_hash = wallet address 57 | 58 | Set the node gas fees (replace fee_per_vB_integer by the amount for gas fee) 59 | I recommend you to setup to 3 60 | 61 | - You can check the current gas fee here => https://mempool.space/ 62 | ``` 63 | export POPM_STATIC_FEE= 64 | ``` 65 | - Set Mainnet to env variable 66 | ``` 67 | export POPM_BTC_CHAIN_NAME=mainnet 68 | ``` 69 | - Launch your node 70 | ``` 71 | ./popmd 72 | ``` 73 | - Leave your screen CTRL+A+D 74 | 75 | --- 76 | Thank’s for reading 77 | If you need help you can join Discord : https://discord.com/invite/szXyZSgSYg 78 | Twitter : https://x.com/TRTtheSalad 79 | Disclaimer : Not a financial Advice an education tutorial do your own research 80 | --------------------------------------------------------------------------------