posthuman - nodes
Stargaze
StargazewebsiteStargazewebsite

Stargaze

type:
mainnet
chain id:
stargaze-1
rpc:
https://rpc.stargaze.posthuman.digital:443
rest:
https://rest.stargaze.posthuman.digital:443
grpc:
https://grpc.stargaze.posthuman.digital:443
seed-node:
e87e6dc4a941f35b2ad39a75a18fefbccf5d9072@46.39.246.50:10656
  • installation guide
  • state sync
  • peers

Before node instalation make sure you have installed go Useful guile: https://www.digitalocean.com/community/tutorials/how-to-install-go-on-ubuntu-20-04

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 node

cd $HOME mkdir src cd src git clone https://github.com/public-awesome/stargaze cd stargaze git checkout v13.0.0 make install gaiad version

Initialize Node

Replace <node_name>

~/go/bin/.starsd init <node_name> --chain-id="stargaze-1"

Download genesis.json

curl -Ls https://raw.githubusercontent.com/public-awesome/mainnet/main/stargaze-1/genesis.tar.gz > $HOME/.starsd/config/genesis.json

Download addrbook.json

curl -Ls <addrbookUrl> > $HOME/.starsd/config/addrbook.json

Create Service

Cosmovisor:

If you haven't cosmovisor, you should install it

go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest

You can find cosmovisor biniry in ~/go/bin/ folder. After that you should create

mkdir -p ~/.stargaze/cosmovisor/genesis/bin && mkdir -p ~/.stargaze/cosmovisor/upgrades

Set up service:

sudo nano /etc/systemd/system/starsd.service

Replace <your_user>

[Unit] Description=starsd Daemon cosmovisor After=network-online.target [Service] User=<your_user> ExecStart=/home/<your_user>/go/bin/cosmovisor run start Restart=always RestartSec=3 LimitNOFILE=4096 Environment="DAEMON_NAME=starsd" Environment="DAEMON_HOME=/home/<your_user>/.starsd" Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false" Environment="DAEMON_RESTART_AFTER_UPGRADE=true" Environment="DAEMON_LOG_BUFFER_SIZE=512" [Install] WantedBy=multi-user.target

Simple service file:

Set up service:

sudo nano /etc/systemd/system/starsd.service

Replace <your_user>

[Unit] Description=starsd Daemon After=network-online.target [Service] User=<your_user> ExecStart=/home/<your_user>/go/bin/starsd start Restart=always RestartSec=3 LimitNOFILE=65535 [Install] WantedBy=multi-user.target

Sync node:

After that you sould sync node. You have 2 ways. State-sync or download snapsot. See this guides in next tabs.

Start service

sudo systemctl enable starsd.service && sudo systemctl start starsd.service && journalctl -u starsd.service -f
POSTHUMAN © Copyright 2024. All Rights Reserved.