Installation
The complete infrastructure for cross-chain smart contracts, applications, and modular functionality.
Chain ID: stratos-1 | Latest Version Tag: v0.11.2 | Wasm: OFF
Chain explorer
https://explorer.thestratos.org
Public endpoints
Peering
seed-node
[email protected]:26656,[email protected]:26656
Installation
Chain ID: stratos-1 | Latest Version Tag: v0.11.2 |
Install dependencies
Update system and install build tools
sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential tmux libgmp3-dev flex bison
sudo apt -qy upgrade
Install PBC library
wget https://crypto.stanford.edu/pbc/files/pbc-0.5.14.tar.gz
tar xfz pbc-0.5.14.tar.gz && cd pbc-0.5.14
./configure
make
sudo make install
sudo ldconfig
Install Go
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.20.5.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)
Download and build binaries
# Clone project repository
cd $HOME
rm -rf stratos-chain
git clone https://github.com/stratosnet/stratos-chain.git
cd
git checkout v0.11.2
# Build binaries
make install
stchaind version
Initialize Node & Genesis
stchaind init <NodeName> --chain-id=stratos-1
Download Genesis
curl -Ls wget https://raw.githubusercontent.com/stratosnet/mainnet/main/genesis/genesis.json > $HOME/.stchaind/config/genesis.json
Create a 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
Initialize the node
# Set node configuration
stchaind config chain-id stratos-1
stchaind config keyring-backend file
# Add seeds
sed -i -e "s|^seeds *=.*|seeds = \"[email protected]:26656,[email protected]:26656\"|" $HOME/.stchaind/config/config.toml
# Set minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"1000000000wei\"|" $HOME/.stchaind/config/app.toml
# Set pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
$HOME/.stchaind/config/app.toml
Snapshot (Nodestake.top❤)
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
Start service and check the logs
sudo systemctl start stchaind && sudo journalctl -u stchaind -f --no-hostname -o cat