> For the complete documentation index, see [llms.txt](https://node.z4ch.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://node.z4ch.xyz/miners/shaicoin.md).

# Shaicoin

Shaicoin is a  CPU mineable cryptocurrency that operates as a fork of Bitcoin, focusing on a unique mining algorithm known as ShaiHive.  The following guide is for those who are familiar running Linux

Disclaimer:\
This is not financial advise. Mining can damage your hardware.

### Get Started

This guide is purely made for those who wants to try mining [$SHA](https://x.com/search?q=%24SHA\&src=cashtag_click) with their Linux machines. \
Do not have a Linux computer or spare CPU to mine? \
Rent one here: [https://cloud.vast.ai/?ref\_id=94252](https://t.co/BgNghk4FL4)

The steps involved include:&#x20;

\* Setting up a Shaicoin Core Wallet&#x20;

\* Generating a [$SHA](https://x.com/search?q=%24SHA\&src=cashtag_click) address&#x20;

\* Building [$SHA](https://x.com/search?q=%24SHA\&src=cashtag_click) miner&#x20;

\* Connecting to a mining pool

### Setting up Core Wallet

On your Terminal, run the following commands:

#### Install dependencies

```
sudo apt install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 libevent-dev libboost-dev libsqlite3-dev -y
```

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2FPg8MFOWZ0E8LE6YBjUI3%2Fimage.png?alt=media&amp;token=99e4d491-8eba-49c3-9810-8c77bd68dc9e" alt=""><figcaption></figcaption></figure>

#### Clone the repo

```
git clone https://github.com/shaicoin/shaicoin  
cd shaicoin
```

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2FPRB2ie3u9yRPAi0I9cdu%2Fimage.png?alt=media&amp;token=ad4231a9-3b3d-415a-8faa-4ca24c3b870d" alt=""><figcaption></figcaption></figure>

#### Build the wallet

```
./autogen.sh
./configure
```

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2Fp9Xyy6K1HQrAMNINFomG%2Fimage.png?alt=media&amp;token=f5fafd65-a6a3-461c-8530-1d43f46580ac" alt=""><figcaption></figcaption></figure>

Depending on the number of CPU cores of your machine, the next command will require you to indicate that number. The build process might take a while. Please be patient.

```
# example make -j8
make -jmake -j [# CPU cores]
```

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2FDFk1XFpt05RBfLeFx9OD%2Fimage.png?alt=media&amp;token=d6c58168-3611-4000-90d7-3b28614518bf" alt=""><figcaption></figcaption></figure>

### Run Core Wallet and Sync

#### Run Wallet

Navigate to the `/src` folder and then run the following command to launch the core wallet in the background.

```
./shaicoind -daemon
```

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2Fcddg3vig4334YK6BzwjY%2Fimage.png?alt=media&amp;token=cbc9062a-ac1e-49cf-af5a-c1a4055ba34e" alt=""><figcaption></figcaption></figure>

#### Check Logs

To view the logs navigate to the `.shaicoin` folder.

```
cd
cd .shaicoin
```

Next, run this command.

```
tail -f debug.log
```

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2FkBGXIq6udcJTf22sskAE%2Fimage.png?alt=media&amp;token=cc82ed7f-bda0-4c62-956d-775fb90399e1" alt=""><figcaption></figcaption></figure>

Wait for your core wallet to fully sync before you proceed to the next step.

To check the current block, go here: [https://blocks.shaicoin.com](https://t.co/OSFKwpJ5IO). Compare the "height" value shown on the logs to the most recent block on the Shaicoin block explorer.

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2F4ziu4Xf63MmuWSZLrtlO%2Fimage.png?alt=media&amp;token=74f4a8ae-fc83-4e0d-92dc-55587af5d043" alt=""><figcaption></figcaption></figure>

### Generate Wallet&#x20;

Navigate to `/shaicoin/src` folder:&#x20;

```
cd
cd shaicoin
cd src 
```

Then run the command to generate a wallet:&#x20;

```
./shaicoin-cli createwallet "yourwalletname" 
```

You can put in a wallet name that you like.&#x20;

Next, generate a [$SHA](https://x.com/search?q=%24SHA\&src=cashtag_click) address: &#x20;

```
./shaicoin-cli getnewaddress
```

Take note of the address since this will be used for your miner.

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2FDc5N9N9fsftg7vZsR4rO%2Fimage.png?alt=media&amp;token=ebdd8000-629c-4996-8cf6-8b9a8ba7a6f7" alt=""><figcaption></figcaption></figure>

### Backup Wallet

Always make a backup of your wallet. Here is how to do it.&#x20;

Go back to the `.shaicoin` folder to see your wallet backup.

```
cd
cd .shaicoin
cd wallets
```

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2Fm8cQ25F4TnxNs0xJthJw%2Fimage.png?alt=media&amp;token=a16b3dff-28c8-4ae4-b284-7ec2c3399e85" alt=""><figcaption></figcaption></figure>

Save the contents of the folder in order to restore your wallet in case you need to move to a different machine.

### Build [$SHA](https://x.com/search?q=%24SHA\&src=cashtag_click) miner&#x20;

#### Install dependencies

```
apt install libssl-dev
```

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2FwKE8JYxOuxMuRATZ3dMm%2Fimage.png?alt=media&amp;token=a531d005-93ee-4cd3-adb6-c83396ce9075" alt=""><figcaption></figcaption></figure>

#### Install Rust&#x20;

Run the following command:&#x20;

```
curl https://sh.rustup.rs -sSf | sh
```

&#x20;Then choose option "1". Once it is done, set the PATH:&#x20;

```
source "$HOME/.cargo/env"
```

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2FVwDfrtWeULi4dcjuVvQM%2Fimage.png?alt=media&amp;token=b5a2686c-f0a9-47c4-a801-0ef7a1907abb" alt=""><figcaption></figcaption></figure>

#### Clone Shaipot miner&#x20;

```
cd
git clone https://github.com/shaicoin/shaipot.git
cd shaipot
```

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2FLohQUGrnl65ZySOV3p5R%2Fimage.png?alt=media&amp;token=2d9c23b3-b838-46f7-bbb8-820517b34f72" alt=""><figcaption></figcaption></figure>

#### Build miner

Run the following command:&#x20;

```
cargo rustc --release -- -C opt-level=3 -C target-cpu=native -C codegen-units=1 -C debuginfo=0
```

### Run the SHA miner

Get your [$SHA](https://x.com/search?q=%24SHA\&src=cashtag_click) address that you have generated and use that for the command to run your miner. You can follow this format:

```
./target/release/shaipot --address sh1xxxxxxxxxxxxxj --pool ws://162.220.160.74:3333
```

Make sure to change the address, or else your mining rewards will go to me.&#x20;

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2FDOdPhMAB9j1pGEfG8snL%2Fimage.png?alt=media&amp;token=99d89ec4-a148-48cd-a5ca-f4f8ccff2929" alt=""><figcaption></figcaption></figure>

Run the command and that is it. You are now mining [$SHA](https://x.com/search?q=%24SHA\&src=cashtag_click).

### Update Miner (Optional)

If you are still using the initial version of the miner, you can update it to get better hash rates. \
Here are the steps to do so.

Stop your miner, Use CTRL+C. Make sure you are in the `shaipot` directory.\
Run the following commands:

```
cd
cd shaipot
git pull
```

After downloading the latest version, recompile miner.

```
cargo rustc --release -- -C opt-level=3 -C target-cpu=native -C codegen-units=1 -C debuginfo=0
```

Run miner again to see a much better performance.

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2FEcuN0K6QY6CcLYaNCV8r%2Fimage.png?alt=media&amp;token=cc9a70fe-14bc-41bb-a54a-183c364fbb56" alt=""><figcaption></figcaption></figure>

### Check Miner Status&#x20;

Check your progress here: <https://shaipool.z4ch.xyz/>

Pool address: <https://blocks.shaicoin.com/address/sh1qa5l9n97jerlwgpd5rrhj8nnqvvre4qnz0dy2fu>

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2FLf68riTJF5Ef0BqGL45t%2Fimage.png?alt=media&amp;token=7f19afe0-cfb0-4b18-9fb4-add8d91b354e" alt=""><figcaption></figcaption></figure>

Rewards will automatically be distributed once the coins that the pool receives reaches a maturity of a 100 blocks.

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2Fs6dL3vGpABBQuUVX2Pd6%2Fimage.png?alt=media&amp;token=ce9d7cb9-b3eb-4f55-a012-ef279ce17d0b" alt=""><figcaption></figcaption></figure>

Thanks for reading!

#### Shameless plug...

If you do not want to mine $SHA, you can get it from exchanges.\
Here is my referral link for NonKYC: <https://nonkyc.io?ref=658045d205279ea14f3a7169>

CoinGecko is already tracking the price:\
<https://www.coingecko.com/en/coins/shaicoin>

<figure><img src="https://756696340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zYuAvy414Nd31flJdHr%2Fuploads%2FCjU3AM5F0BocAzOuuPUX%2Fimage.png?alt=media&amp;token=2ab7beab-4bef-4e05-8088-232f26952bf9" alt=""><figcaption></figcaption></figure>

Follow [@shai\_pow](https://x.com/shai_pow) on X and go to their Discord: [https://discord.gg/vrfvbrDU](https://t.co/8INwdtdfhf)
