Mainnet

Chain ID: sgenet-1 | Node Version: v1.5.3

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.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 sge

git clone https://github.com/sge-network/sge

cd sge

git checkout v1.5.3

make install

sged version

Initialize Node

Replace NodeName with your own moniker.

sged init NodeName --chain-id=sgenet-1

Download Genesis

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

Download addrbook

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

Create Service

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

Download Snapshot(optional)

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

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

Launch Node

sudo systemctl restart sged
journalctl -u sged -f

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

 

https://rpc.sge.nodestake.top

 

https://api.sge.nodestake.top

 

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

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

Download Genesis File

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

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

Download Addrbook

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

Restart Node

sudo systemctl restart sged
journalctl -u sged -f

6a727128f427d166d90a1185c7965b178235aaee@rpc.sge.nodestake.top:666

Set Seed Node

seed="6a727128f427d166d90a1185c7965b178235aaee@rpc.sge.nodestake.top:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.sge/config/config.toml

Restart Node

sudo systemctl restart sged
journalctl -u sged -f

Set Peers

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

Restart Node

sudo systemctl restart sged
journalctl -u sged -f

Stop Node And Reset

sudo systemctl stop sged

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

Configure State Sync

SNAP_RPC="https://rpc.sge.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\"|" ~/.sge/config/config.toml

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

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

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

Restart Node

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

Stop Node and Reset Date

sudo systemctl stop sged

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

rm -rf $HOME/.sge/data

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

Download Snapshot

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

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

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

Restart Node

sudo systemctl restart sged
journalctl -u sged -f

Get old Snapshots

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

Testnet

Chain ID: sge-network-4 | Node Version: v1.3.1

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 sge

git clone https://github.com/sge-network/sge

cd sge

git checkout v1.3.1

make install

sged version

Initialize Node

Replace NodeName with your own moniker.

sged init NodeName --chain-id=sge-network-4

Download Genesis

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

Download addrbook

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

Create Service

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

Download Snapshot(optional)

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

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

Launch Node

sudo systemctl restart sged
journalctl -u sged -f

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

 

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

 

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

 

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

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

Download Genesis File

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

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

Download Addrbook

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

Restart Node

sudo systemctl restart sged
journalctl -u sged -f

3bd257f89d0f31614088373902eebc941c224236@rpc-t.sge.nodestake.top:666

Set Seed Node

seed="3bd257f89d0f31614088373902eebc941c224236@rpc-t.sge.nodestake.top:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.sge/config/config.toml

Restart Node

sudo systemctl restart sged
journalctl -u sged -f

Set Peers

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

Restart Node

sudo systemctl restart sged
journalctl -u sged -f

Stop Node And Reset

sudo systemctl stop sged

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

Configure State Sync

SNAP_RPC="https://rpc-t.sge.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\"\"|" ~/.sge/config/config.toml

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

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

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

Restart Node

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

Stop Node and Reset Date

sudo systemctl stop sged

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

rm -rf $HOME/.sge/data

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

Download Snapshot

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

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

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

Restart Node

sudo systemctl restart sged
journalctl -u sged -f

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