Mainnet

Chain ID: stratos-1 | Node Version: v0.11.2

Auto-compound(every 1 hour),NodeStake will pay the gas fees

Node Installation Guide

Update system and install build tools

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.20.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 stratos-chain

git clone https://github.com/stratosnet/stratos-chain.git

cd stratos-chain

git checkout v0.11.2

make install

stchaind version

Initialize Node

Replace NodeName with your own moniker.

stchaind init NodeName --chain-id=stratos-1

Download Genesis

curl -Ls https://ss.stratos.nodestake.top/genesis.json > $HOME/.stchaind/config/genesis.json 

Download addrbook

curl -Ls https://ss.stratos.nodestake.top/addrbook.json > $HOME/.stchaind/config/addrbook.json

Create Service

sudo tee /etc/systemd/system/stchaind.service > /dev/null <<EOF
[Unit]
Description=stchaind Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which stchaind) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable stchaind

Download Snapshot(optional)

SNAP_NAME=$(curl -s https://ss.stratos.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss.stratos.nodestake.top/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.stchaind

Launch Node

sudo systemctl restart stchaind
journalctl -u stchaind -f

If you have any questions, please reach out to our Discord

 

https://rpc.stratos.nodestake.top

 

https://api.stratos.nodestake.top

 

https://grpc.stratos.nodestake.top:443

Chain Name: Stratos
RPC: https://jsonrpc.stratos.nodestake.top/
Chain ID: 2048
Symbol: STOS
Explorer: https://web3-explorer.thestratos.org

https://ss.stratos.nodestake.top/genesis.json

Download Genesis File

curl -Ls https://ss.stratos.nodestake.top/genesis.json > $HOME/.stchaind/config/genesis.json 

https://ss.stratos.nodestake.top/addrbook.json

Download Addrbook

curl -Ls https://ss.stratos.nodestake.top/addrbook.json > $HOME/.stchaind/config/addrbook.json 

Restart Node

sudo systemctl restart stchaind
journalctl -u stchaind -f

75991f7e4d4bc53b60e2494b9a833804ac4f77f0@rpc.stratos.nodestake.top:666

Set Seed Node

seed="75991f7e4d4bc53b60e2494b9a833804ac4f77f0@rpc.stratos.nodestake.top:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.stchaind/config/config.toml

Restart Node

sudo systemctl restart stchaind
journalctl -u stchaind -f

Set Peers

peers=$(curl -s https://ss.stratos.nodestake.top/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.stchaind/config/config.toml

Restart Node

sudo systemctl restart stchaind
journalctl -u stchaind -f

Stop Node And Reset

sudo systemctl stop stchaind

stchaind tendermint unsafe-reset-all --home ~/.stchaind/ --keep-addr-book

Configure State Sync

SNAP_RPC="https://rpc.stratos.nodestake.top:443"

LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \

BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \

TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)

echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH

 

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \

s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \

s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \

s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" ~/.stchaind/config/config.toml

more ~/.stchaind/config/config.toml | grep 'rpc_servers'

more ~/.stchaind/config/config.toml | grep 'trust_height'

more ~/.stchaind/config/config.toml | grep 'trust_hash'

Restart Node

sudo systemctl restart stchaind
journalctl -u stchaind -f

Install lz4

sudo apt update

sudo apt-get install snapd lz4 -y

Off State Sync

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" ~/.stchaind/config/config.toml

Stop Node and Reset Date

sudo systemctl stop stchaind

cp $HOME/.stchaind/data/priv_validator_state.json $HOME/.stchaind/priv_validator_state.json.backup

rm -rf $HOME/.stchaind/data

stchaind tendermint unsafe-reset-all --home ~/.stchaind/ --keep-addr-book

Download Snapshot

SNAP_NAME=$(curl -s https://ss.stratos.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss.stratos.nodestake.top/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.stchaind

mv $HOME/.stchaind/priv_validator_state.json.backup $HOME/.stchaind/data/priv_validator_state.json

Restart Node

sudo systemctl restart stchaind
journalctl -u stchaind -f

Get old Snapshots

If you have any questions, please reach out to our Discord