# Shaicoin

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="/files/fhTrWa1MyAYK0CSoF9P0" alt=""><figcaption></figcaption></figure>

#### Clone the repo

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

<figure><img src="/files/7TpimvqsFvbmZldRAJj9" alt=""><figcaption></figcaption></figure>

#### Build the wallet

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

<figure><img src="/files/5Nu2SSjNJE0pvZPEs7rr" 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="/files/zE5qpoEBD45eU0PYm519" 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="/files/8CMPOtU0OQCGKlEwXsPB" 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="/files/PbN5WmWDchJMIVj1sZJa" 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="/files/T0d8vEQ7H9bMf1hOJbH8" 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="/files/0OqDyIxCYZtpGYKJGEST" 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="/files/dCFzsl0C55lLlJXJsbAZ" 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="/files/JcoLIo96pc4XKjs3q70q" 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="/files/JTqBMnKYEV0ISYS2pmM6" alt=""><figcaption></figcaption></figure>

#### Clone Shaipot miner&#x20;

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

<figure><img src="/files/zTVuBWYQRNCL8nfqfed0" 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="/files/B8POA9DjinOexxoe5yTj" 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="/files/rlMrhhaPG9QJmHuFnAyN" 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="/files/F6KFcZJ5a6uHqvj7yBmu" 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="/files/ygNeI3a9Ka0Refph5BSA" 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="/files/89q7oVhjeBTXjSNs3AG9" 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://node.z4ch.xyz/miners/shaicoin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
