Mainnet

Chain ID: agoric-3 | Node Version: agoric-upgrade-13

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

 

https://rpc.agoric.nodestake.top

 

https://api.agoric.nodestake.top

 

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

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

Download Genesis File

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

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

Download Addrbook

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

Restart Node

sudo systemctl restart agd
journalctl -u agd -f

7beafb8dbccb9e963593b17d7b583b1c38dc701c@rpc.agoric.nodestake.top:666

Set Seed Node

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

Restart Node

sudo systemctl restart agd
journalctl -u agd -f

Set Peers

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

Restart Node

sudo systemctl restart agd
journalctl -u agd -f

Stop Node And Reset

sudo systemctl stop agd

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

Configure State Sync

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

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

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

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

Restart Node

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

Stop Node and Reset Date

sudo systemctl stop agd

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

rm -rf $HOME/.agoric/data

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

Download Snapshot

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

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

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

Restart Node

sudo systemctl restart agd
journalctl -u agd -f

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