Side-Protocol (S2-testnet-2)
Update system
Copy sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y
Install Go
Copy 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
Copy cd $HOME
rm -rf sidechain && rm -rf side
git clone https://github.com/sideprotocol/side.git
Copy cd side
git checkout v0.8.1
Initialize Node: Replace NodeName with your own moniker.
Download the genesis file:
Copy wget https://github.com/sideprotocol/testnet/raw/main/S2-testnet-2/genesis.json -O $HOME/.side/config/genesis.json
Verify the SHA256 hash of the downloaded genesis file:
Copy shasum -a 256 $HOME/.side/config/genesis.json
Expected output:
Copy 2c6a6044de04cfdd466c9b114f0082af46c18519dc0ee413d2250de435b5d669 genesis.json
Copy 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
Set Pruning, Enable Prometheus, Gas Price, and Indexer
Copy 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
version: 0.8.1
Check syn: False
Copy sided status 2>&1 | jq .SyncInfo.catching_up
Validating
Add a Bitcoin Segwit Address
Copy sided keys add <yournewwallet> --key-type="segwit"
result must like this
Copy - 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
Copy sided comet show-validator
The output will be something like this:
Copy {"@type":"/cosmos.crypto.ed25519.PubKey","key":"ZXONS7NNjLWH4HePBOoHKDAYeLXQO5iUwpCRQSi1poI="}
Create validator file
Copy nano $HOME/.side/config/validator.json
Input data to validator.json file. Replace at "pubkey": {....} from show-validator output
Copy {
"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
Copy 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
Copy 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.
Copy 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
or
Copy sided status 2>&1 | jq .ValidatorInfo
Delegate to your validator
Copy 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
Copy 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
Copy sided tx slashing unjail --from wallet--chain-id S2-testnet-2 --gas-prices 0.5uside --gas-adjustment 1.5 --gas auto -y
Delete node
Copy 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
Copy 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
Last updated 2 months ago