Network Overview
Prysm Network
PRYSM Network is a modular blockchain focused on scalability, interoperability, and cost-efficiency. It enables seamless communication between blockchains using Inter-Blockchain Communication (IBC), allowing developers to build cross-chain applications efficiently.
https://rpc-prysm-t.sychonix.com
https://api-prysm-t.sychonix.com
4a88c4925f887325872451659e554aafebdb026d@prysm-testnet.sychonix.com:19756
PEERS="$(curl -sS https://rpc-prysm-t.sychonix.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i -e "s|^persistent_peers *=.*|persistent_peers = \"$PEERS\"|" $HOME/.prysm/config/config.toml
curl -Ls https://snapshot.sychonix.com/testnet/prysm/genesis.json > $HOME/.prysm/config/genesis.json
curl -Ls https://snapshot.sychonix.com/testnet/prysm/addrbook.json > $HOME/.prysm/config/addrbook.json
Installation
- Install Dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev aria2 -y
- Install Go
VER="1.21.6"
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go$VER.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version
- Install Binary
cd $HOME
rm -rf prysm
git clone https://github.com/kleomedes/prysm prysm
cd prysm
git checkout v0.1.0-devnet
make install
- Initialize The Node
prysmd init "YourName" --chain-id prysm-devnet-1
- Download Genesis & Addrbook
curl -Ls https://snapshot.sychonix.com/testnet/prysm/genesis.json > $HOME/.prysm/config/genesis.json
curl -Ls https://snapshot.sychonix.com/testnet/prysm/addrbook.json > $HOME/.prysm/config/addrbook.json
- Configure Seeds and Peers
SEEDS="4a88c4925f887325872451659e554aafebdb026d@prysm-testnet.sychonix.com:19756"
PEERS="$(curl -sS https://rpc-prysm-t.sychonix.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i -e "s|^seeds *=.*|seeds = '"$SEEDS"'|; s|^persistent_peers *=.*|persistent_peers = '"$PEERS"'|" $HOME/.prysm/config/config.toml
- Customize Pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
$HOME/.prysm/config/app.toml
- Set Minimum Gas Price, Enable Prometheus, and Disable the Indexer
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0uprysm\"|" $HOME/.prysm/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.prysm/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.prysm/config/config.toml
- Create Service File
sudo tee /etc/systemd/system/prysmd.service > /dev/null <<EOF
[Unit]
Description=prysm testnet node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which prysmd) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
- Download Current Snapshot
curl "https://snapshot.sychonix.com/testnet/prysm/prysm-snapshot.tar.lz4" | lz4 -dc - | tar -xf - -C "$HOME/.prysm"
- Enable the Service and Start the Node
sudo systemctl daemon-reload
sudo systemctl enable prysmd.service
sudo systemctl restart prysmd.service && sudo journalctl -u prysmd.service -f --no-hostname -o cat
Upgrade
No chain upgrades scheduled yet.
Peers
PEERS="$(curl -sS https://rpc-prysm-t.sychonix.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.prysm/config/config.toml
Snapshot
Height: Loading... | Last updated: Loading... | Size: Loading...
- Install dependencies, if needed
sudo apt update && sudo apt install aria2
- Stop Service
sudo systemctl stop prysmd
- Back up priv_validator_state.json
cp $HOME/.prysm/data/priv_validator_state.json $HOME/.prysm/priv_validator_state.json.backup
- Reset the data
prysmd tendermint unsafe-reset-all --home $HOME/.prysm --keep-addr-book
- Download Snapshot
aria2c -x 16 -s 16 -o prysm-snapshot.tar.lz4 https://snapshot.sychonix.com/testnet/prysm/prysm-snapshot.tar.lz4
lz4 -dc prysm-snapshot.tar.lz4 | tar -xf - -C $HOME/.prysm
rm -v prysm-snapshot.tar.lz4
- Restore Backup and Restart Service
mv $HOME/.prysm/priv_validator_state.json.backup $HOME/.prysm/data/priv_validator_state.json
sudo systemctl restart prysmd && sudo journalctl -u prysmd -f -o cat
Addrbook
curl -Ls https://snapshot.sychonix.com/testnet/prysm/addrbook.json > $HOME/.prysm/config/addrbook.json
Genesis
curl -Ls https://snapshot.sychonix.com/testnet/prysm/genesis.json > $HOME/.prysm/config/genesis.json
API
api-prysm-t.sychonix.com
RPC
rpc-prysm-t.sychonix.com
CLI Cheatsheet
Wallet Management
prysmd keys add
prysmd keys add --recover
prysmd keys list
prysmd keys delete
prysmd keys export
prysmd keys import .backup
prysmd q bank balances $(prysmd keys show -a)
Validator Management
Moniker
Identity
Details
Website
Security Contact
Amount
prysmd tx staking create-validator \ --amount=1000000uprysm \ --pubkey=$(prysmd tendermint show-validator) \ --moniker="" \ --identity="" \ --details="" \ --website="" \ --security-contact= \ --chain-id=prysm-devnet-1 \ --commission-rate=0.05 \ --commission-max-rate=0.20 \ --commission-max-change-rate=0.01 \ --min-self-delegation=1 \ --gas-prices 0.0uprysm \ --gas "auto" \ --gas-adjustment "1.5" \ --from wallet \ -y
prysmd tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--website="" \
--chain-id=prysm-devnet-1 \
--commission-rate=0.07 \
--from wallet \
--gas=auto \
--gas-prices 0.0uprysm \
-y
prysmd tx slashing unjail --from wallet --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5
prysmd query slashing signing-info $(prysmd tendermint show-validator)
prysmd q staking validator $(prysmd keys show wallet --bech val -a)
prysmd q bank denom-metadata -oj | jq
prysmd status 2>&1 | jq -r '.SyncInfo.catching_up // .sync_info.catching_up'
prysmd status 2>&1 | jq -r '.SyncInfo.latest_block_height // .sync_info.latest_block_height'
Token Management
prysmd tx distribution withdraw-all-rewards --from wallet --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.0uprysm -y
prysmd tx distribution withdraw-rewards $(prysmd keys show wallet --bech val -a) --commission --from wallet --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.0uprysm -y
prysmd tx staking delegate $(prysmd keys show wallet --bech val -a) 1000000uprysm --from wallet --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.0uprysm -y
prysmd tx staking redelegate $(prysmd keys show wallet --bech val -a) 1000000uprysm --from wallet --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.0uprysm -y
prysmd tx staking delegate 1000000uprysm --from --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.0uprysm -y
prysmd tx staking unbond $(prysmd keys show wallet --bech val -a) 1000000uprysm --from wallet --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.0uprysm -y
prysmd tx bank send wallet 1000000uprysm --from wallet --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.0uprysm -y
Service Management
sudo systemctl daemon-reload
sudo systemctl enable prysmd
sudo systemctl disable prysmd
sudo systemctl start prysmd
sudo systemctl stop prysmd
sudo systemctl restart prysmd
sudo systemctl status prysmd
sudo journalctl -u prysmd -f --no-hostname -o cat
CUSTOM_PORT= sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}660\"%" $HOME/.prysm/config/config.toml sed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${CUSTOM_PORT}317\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${CUSTOM_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${CUSTOM_PORT}091\"%" $HOME/.prysm/config/app.toml
cd $HOME && sudo systemctl stop prysmd && sudo systemctl disable prysmd && sudo rm /etc/systemd/system/prysmd.service && sudo systemctl daemon-reload && sudo rm -rf $(which prysmd) && sudo rm -rf $HOME/.prysm && sudo rm -rf $(which prysmd)