> For the complete documentation index, see [llms.txt](https://luckystar-1.gitbook.io/luckystar.asia/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://luckystar-1.gitbook.io/luckystar.asia/testnet/cosmos-eco/side-protocol/s2-testnet-2.md).

# S2-testnet-2

## Side-Protocol (S2-testnet-2)

Update system

```
sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y
```

Install Go

```
rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.22.1.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version
```

Install Node

```
cd $HOME
rm -rf sidechain && rm -rf side
git clone https://github.com/sideprotocol/side.git
```

```
cd side
git checkout v0.8.1
```

```
make install
```

```
sided version
```

Initialize Node: Replace NodeName with your own moniker.

```
sided init NodeName
```

1. Download the genesis file:

```sh
wget https://github.com/sideprotocol/testnet/raw/main/S2-testnet-2/genesis.json -O $HOME/.side/config/genesis.json
```

2. Verify the SHA256 hash of the downloaded genesis file:

```sh
shasum -a 256 $HOME/.side/config/genesis.json
```

Expected output:

```
2c6a6044de04cfdd466c9b114f0082af46c18519dc0ee413d2250de435b5d669  genesis.json
```

3. Set up seeds:

```sh
SEEDS="582dedd866dd77f25ac0575118cf32df1ee50f98@202.182.119.24:26656"
PEERS="582dedd866dd77f25ac0575118cf32df1ee50f98@202.182.119.24:26656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.side/config/config.toml
```

4. Set Pruning, Enable Prometheus, Gas Price, and Indexer

```
PRUNING="custom"
PRUNING_KEEP_RECENT="100"
PRUNING_INTERVAL="19"
sed -i -e "s/^pruning *=.*/pruning = \"$PRUNING\"/" $HOME/.side/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \
\"$PRUNING_KEEP_RECENT\"/" $HOME/.side/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \
\"$PRUNING_INTERVAL\"/" $HOME/.side/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.side/config/config.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.side/config/config.toml
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.5uside\"/" $HOME/.side/config/app.toml
```

5. Start your node:

```sh
sided version
```

version: 0.8.1

```sh
sided start
```

Check syn: False

```sh
sided status 2>&1 | jq .SyncInfo.catching_up
```

## Validating

1. Add a **Bitcoin Segwit Address**

```sh
 sided keys add <yournewwallet> --key-type="segwit"
```

result must like this

```sh
- address: bc1q0xm60dd99hucpkux7rq6vr57g7k479nlw0xapt
  name: test
  pubkey: '{"@type":"/cosmos.crypto.segwit.PubKey","key":"A6gxg+M4sEu0MBFiYlj4r2fEaz/ueeaNE7ymf8Zx+Tqq"}'
  type: local
```

**Note:** Please ensure that you use a Segwit address; otherwise, you will not be able to claim your rewards.

2.a Create Validator file: validator.json file

```sh
sided comet show-validator
```

The output will be something like this:

```sh
{"@type":"/cosmos.crypto.ed25519.PubKey","key":"ZXONS7NNjLWH4HePBOoHKDAYeLXQO5iUwpCRQSi1poI="}
```

Create validator file

```sh
nano $HOME/.side/config/validator.json
```

Input data to validator.json file. Replace at "pubkey": {....} from show-validator output

```sh
{
	"pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"ZXONS7NNjLWH4HePBOoHKDAYeLXQO5iUwpCRQSi1poI="},
	"amount": "10000000uside",
	"moniker": "<validator-name>",
	"identity": "optional identity signature (ex. UPort or Keybase)",
	"website": "validator's (optional) website",
	"security": "validator's (optional) security contact email",
	"details": "validator's (optional) details",
	"commission-rate": "0.05",
	"commission-max-rate": "0.2",
	"commission-max-change-rate": "0.01",
	"min-self-delegation": "100000"
}
```

Ctrl+o > Enter > Ctrl+x to save file & exit

Query Wallet Balance

```
sided q bank balances <your_wallet_address>
```

2.b Create validator

Create new Validator: Change your custom information at: Your\_moniker, your\_id\_keybase, your\_info. What items don't need to be able to be deleted

```sh
sided tx staking create-validator \
--from="your_wallet_address" \
--amount="100000uside" \
--pubkey=$(sided tendermint show-validator) \
--moniker="Your_moniker" \
--identity=your_id_keybase \
--details="your_info" \
--chain-id="S2-testnet-2" \
--commission-rate="0.05" \
--commission-max-rate="0.2" \
--commission-max-change-rate="0.05" \
--min-self-delegation="100000" \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices=0.5uside \
-y
```

Edit Existing Validator: Change your custom information.

```
sided tx staking edit-validator \
    --new-moniker="New_moniker" \
    --identity=new_identity \
    --details="new_info" \
    --website="your_website" \
    --chain-id=S2-testnet-2 \
    --from=wallet \
    --gas-prices=0.5uside \
    --gas-adjustment=1.5 \
    --gas=auto \
    -y
```

Check validator info

```
sided status info
```

or

```
sided status 2>&1 | jq .ValidatorInfo
```

Delegate to your validator

```
sided tx staking delegate $(sided keys show wallet --bech val -a) 1000000uside --from wallet --chain-id S2-testnet-2 --gas-prices 0.5uside --gas-adjustment 1.5 --gas auto -y
```

Delegate to another validator

```
sided tx staking delegate <TO_VALOPER_ADDRESS> 1000000uside  --from <YOUR_ADDRESS> --chain-id S2-testnet-2 --gas-prices 0.5uside --gas-adjustment 1.5 --gas auto -y
```

Unjail

```
sided tx slashing unjail --from wallet--chain-id S2-testnet-2 --gas-prices 0.5uside --gas-adjustment 1.5 --gas auto -y
```

Delete node

```
sudo systemctl stop sided && sudo systemctl disable sided && sudo rm /etc/systemd/system/sided.service && sudo systemctl daemon-reload && rm -rf $HOME/.side && rm -rf $HOME/.sidechain && rm -rf sidechain && rm -rf side && rm -rf rebus.core && sudo rm -rf $(which sided)
```

Send Token

```
sided tx bank send wallet <Receive_wallet> <Amout>uside --chain-id S2-testnet-2 --gas-prices 0.5uside --gas-adjustment 1.5 --gas auto -y
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://luckystar-1.gitbook.io/luckystar.asia/testnet/cosmos-eco/side-protocol/s2-testnet-2.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.
