βš’οΈSetting up a miner

This tutorial will guide you through how to setup a miner on your local machines. Currently we only support Intel-based chip, using x64:

  • Linux-x64

  • MacOS-x64

  • Windows-x64

Part 1: Setup the binary (Mac OS)

  1. Download the latest binary according to your architecture via the github release page here.

  2. You may need to add the permission for the binary to run by running chmod +x command

./miner-macos-x64-ec7a715
zsh: Permission denied: ./miner-macos-x64-ec7a715

chmod +x ./miner-macos-x64-ec7a715

  1. Allow in the miner binary in your privacy & security settings

If you see the following pop up screen, you need to open your privacy settings yourself and allow the binary to run. Go to System settings > Privacy & Security > Security > click Allow Anyway

Finally, you should see a success terminal like this.

Part 2: Setup your wallet for mining

  1. Create a wallet using SUI wallet chrome extension or any other usable tool.

  2. Export its private key. Copy and save it somewhere, we will need that later.

  1. Request test tokens from the faucet. Please run and replace <YOUR_ADDRESS> to your wallet address. You should receive 1000 or 5x200 test tokens.

  1. Run it for 2 or 3 times to ensure you have 2000~3000 SUI balance. You can add the private network RPC to SUI wallet chrome extension https://privnet-rpc.suidaiya.com/

  2. Ensure that you can see the balance from SUI wallet chrome extension.

Part 3: Setup the miner config

  1. Setup your miner.json config file by running the make-config command

  1. Replace the minerPrivateKey field of the miner.json with the private key associated to your Sui address. You can also choose a different minerName as you prefer.

  1. Workers can be set to a number between 2 and your max CPU cores. You can start with 2 and increase by 1 to know which value can maximize the mining speed.

Don’t set it this value too high because we are just testing. Maximizing the mining speed will also produce more heat on your computer/server.

Part 4: Run the miner

  1. Now run the following command to run the miner and if you see the following output, you know that the miner has started successfully:

Last updated