Mainnet

Chain ID: nois-1 | Node Version: v1.0.0

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.19.5.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 $HOME/noisd

git clone https://github.com/noislabs/noisd.git

cd noisd

git checkout v1.0.0

make install

noisd version

Initialize Node

Replace NodeName with your own moniker.

noisd init NodeName --chain-id=noisd-1

Download Genesis

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

Download addrbook

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

Create Service

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

Download Snapshot(optional)

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

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

Launch Node

sudo systemctl restart noisd
journalctl -u noisd -f

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

 

https://rpc.nois.nodestake.top

 

https://api.nois.nodestake.top

 

https://grpc.nois.nodestake.top

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

Download Genesis File

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

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

Download Addrbook

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

Restart Node

sudo systemctl restart noisd
journalctl -u noisd -f

Set Peers

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

Restart Node

sudo systemctl restart noisd
journalctl -u noisd -f

Stop Node And Reset

sudo systemctl stop noisd

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

Configure State Sync

SNAP_RPC="https://rpc.nois.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\"| ; \

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

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

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

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

Download Wasm

curl -L https://snapshots.nodestake.top/nois/wasm.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.noisd

Restart Node

sudo systemctl restart noisd
journalctl -u noisd -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|" ~/.noisd/config/config.toml

Stop Node and Reset Date

sudo systemctl stop noisd

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

rm -rf ~/.noisd/data

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

Download Snapshot

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

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

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

Restart Node

sudo systemctl restart noisd
journalctl -u noisd -f

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

Testnet

Chain ID: nois-testnet-005 | Node Version: v1.0.0

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.19.5.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 noisd

git clone https://github.com/noislabs/noisd.git

cd noisd

git checkout v1.0.0

make install

noisd version

Initialize Node

Replace NodeName with your own moniker.

noisd init NodeName --chain-id=nois-testnet-005

Download Genesis

curl -Ls https://ss-t.nois.nodestake.top/genesis.json > $HOME/.noisd/config/genesis.json 

Download addrbook

curl -Ls https://ss-t.nois.nodestake.top/addrbook.json > $HOME/.noisd/config/addrbook.json

Create Service

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

Download Snapshot(optional)

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

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

Launch Node

sudo systemctl restart noisd
journalctl -u noisd -f

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

 

https://rpc-t.nois.nodestake.top

 

https://api-t.nois.nodestake.top

 

https://grpc-t.nois.nodestake.top

https://ss-t.nois.nodestake.top/genesis.json

Download Genesis File

curl -Ls https://ss-t.nois.nodestake.top/genesis.json > $HOME/.noisd/config/genesis.json 

https://ss-t.nois.nodestake.top/addrbook.json

Download Addrbook

curl -Ls https://ss-t.nois.nodestake.top/addrbook.json > $HOME/.noisd/config/addrbook.json 

Restart Node

sudo systemctl restart noisd
journalctl -u noisd -f

Set Peers

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

Restart Node

sudo systemctl restart noisd
journalctl -u noisd -f

Stop Node And Reset

sudo systemctl stop noisd

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

Configure State Sync

SNAP_RPC="https://rpc-t.nois.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\"| ; \

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

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

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

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

Download Wasm

curl -L https://ss-t.nois.nodestake.top/wasm.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.noisd

Restart Node

sudo systemctl restart noisd
journalctl -u noisd -f

We make the node snapshot every 6h

Install lz4

sudo apt update

sudo apt-get install snapd lz4 -y

Off State Sync

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

Stop Node and Reset Date

sudo systemctl stop noisd

rm -rf ~/.noisd/data

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

Download Snapshot

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

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

Restart Node

sudo systemctl restart noisd
journalctl -u noisd -f

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