Chain ID: pryzm-1 | Node Version: v0.18.0
https://restake.nodestake.org/pryzm
sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y
rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.20.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
mkdir -p $HOME/go/bin/
wget https://ss.pryzm.nodestake.org/pryzmd
chmod +x pryzmd
mv pryzmd $HOME/go/bin/
pryzmd version --long | grep -e version -e commit
Replace NodeName with your own moniker.
pryzmd init NodeName --chain-id=pryzm-1
curl -Ls https://ss.pryzm.nodestake.org/genesis.json > $HOME/.pryzm/config/genesis.json
curl -Ls https://ss.pryzm.nodestake.org/addrbook.json > $HOME/.pryzm/config/addrbook.json
sudo tee /etc/systemd/system/pryzmd.service > /dev/null <<EOF
[Unit]
Description=pryzmd Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which pryzmd) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable pryzmd
SNAP_NAME=$(curl -s https://ss.pryzm.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss.pryzm.nodestake.org/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.pryzm
sudo systemctl restart pryzmd
journalctl -u pryzmd -f
If you have any questions, please reach out to our Discord
https://rpc.pryzm.nodestake.org
https://api.pryzm.nodestake.org
https://grpc.pryzm.nodestake.org:443
https://ss.pryzm.nodestake.org/genesis.json
curl -Ls https://ss.pryzm.nodestake.org/genesis.json > $HOME/.pryzm/config/genesis.json
ceed0380681f880eda0406005c24caef4a0c21c6@rpc.pryzm.nodestake.org:666
seed="ceed0380681f880eda0406005c24caef4a0c21c6@rpc.pryzm.nodestake.org:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.pryzm/config/config.toml
sudo systemctl restart pryzmd
journalctl -u pryzmd -f
https://ss.pryzm.nodestake.org/addrbook.json
curl -Ls https://ss.pryzm.nodestake.org/addrbook.json > $HOME/.pryzm/config/addrbook.json
sudo systemctl restart pryzmd
journalctl -u pryzmd -f
peers=$(curl -s https://ss.pryzm.nodestake.org/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.pryzm/config/config.toml
sudo systemctl restart pryzmd
journalctl -u pryzmd -f
sudo systemctl stop pryzmd
pryzmd tendermint unsafe-reset-all --home ~/.pryzm/ --keep-addr-book
SNAP_RPC="https://rpc.pryzm.nodestake.org: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\"|" ~/.pryzm/config/config.toml
more ~/.pryzm/config/config.toml | grep 'rpc_servers'
more ~/.pryzm/config/config.toml | grep 'trust_height'
more ~/.pryzm/config/config.toml | grep 'trust_hash'
rm -rf ~/.pryzm/wasm
curl -o - -L https://ss.pryzm.nodestake.org/wasm.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.pryzm
sudo systemctl restart pryzmd
journalctl -u pryzmd -f
We make the node snapshot every 12h
sudo apt update
sudo apt-get install snapd lz4 -y
sudo systemctl stop pryzmd
cp $HOME/.pryzm/data/priv_validator_state.json $HOME/.pryzm/priv_validator_state.json.backup
rm -rf $HOME/.pryzm/data
rm -rf $HOME/.pryzm/wasm
pryzmd tendermint unsafe-reset-all --home ~/.pryzm/ --keep-addr-book
SNAP_NAME=$(curl -s https://ss.pryzm.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss.pryzm.nodestake.org/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.evmosd
mv $HOME/.pryzm/priv_validator_state.json.backup $HOME/.pryzm/data/priv_validator_state.json
sudo systemctl restart pryzmd
journalctl -u pryzmd -f
Get old Snapshots
If you have any questions, please reach out to our Discord