Prysm Network Validator Setup Guide

System Requirements

For optimal performance, we recommend these hardware specifications:

RequirementSpecification
Operating SystemUbuntu 18.04 or later LTS
CPU4 cores
RAM8GB
Storage200GB NVMe SSD

For more information, visit the official Prysm documentation.

Installation Process

1. Prepare System Environment

sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 aria2 pv gcc unzip -y

2. Install Go Programming Language

cd $HOME
VER="1.22.2"
wget "https://golang.org/dl/go$VER.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$VER.linux-amd64.tar.gz"
rm "go$VER.linux-amd64.tar.gz"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin
go version

3. Configure Environment Variables

MONIKER="Moniker_name"
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export PRYSM_CHAIN_ID="prysm-devnet-1"" >> $HOME/.bash_profile
echo "export PRYSM_PORT="29"" >> $HOME/.bash_profile
source $HOME/.bash_profile

4. Install Prysm Binary

cd $HOME
rm -rf prysm
git clone https://github.com/kleomedes/prysm prysm
cd prysm
git checkout v0.1.0-devnet
make install
prysmd version

5. Initialize and Configure Node

prysmd init $MONIKER --chain-id $PRYSM_CHAIN_ID
sed -i -e "s|^node *=.*|node = \"tcp://localhost:${PRYSM_PORT}657\"|" $HOME/.prysm/config/client.toml
sed -i -e "s|^keyring-backend *=.*|keyring-backend = \"os\"|" $HOME/.prysm/config/client.toml
sed -i -e "s|^chain-id *=.*|chain-id = \"prysm-devnet-1\"|" $HOME/.prysm/config/client.toml

6. Configure Custom Ports (Optional)

sed -i.bak -e "s%:1317%:${PRYSM_PORT}317%g; s%:8080%:${PRYSM_PORT}080%g; s%:9090%:${PRYSM_PORT}090%g; s%:9091%:${PRYSM_PORT}091%g; s%:8545%:${PRYSM_PORT}545%g; s%:8546%:${PRYSM_PORT}546%g; s%:6065%:${PRYSM_PORT}065%g" $HOME/.prysm/config/app.toml
sed -i.bak -e "s%:26658%:${PRYSM_PORT}658%g; s%:26657%:${PRYSM_PORT}657%g; s%:6060%:${PRYSM_PORT}060%g; s%:26656%:${PRYSM_PORT}656%g; s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${PRYSM_PORT}656\"%; s%:26660%:${PRYSM_PORT}660%g" $HOME/.prysm/config/config.toml

7. Set Up Node Pruning & Indexer

sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.prysm/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.prysm/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.prysm/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"50\"/" $HOME/.prysm/config/app.toml
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.00001uprysm\"/" $HOME/.prysm/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.prysm/config/config.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.prysm/config/config.toml

8. Create Service File

sudo tee /etc/systemd/system/prysmd.service > /dev/null <<EOF
[Unit]
Description=Prysm-testnet
After=network-online.target

[Service]
User=$USER
ExecStart=$(which prysmd) start --home $HOME/.prysm
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

9. Start The Node Service

sudo systemctl daemon-reload
sudo systemctl enable prysmd
sudo systemctl start prysmd && sudo journalctl -fu prysmd -o cat

10. Check Node Status

prysmd status | jq
prysmd status | jq '{ latest_block_height: .sync_info.latest_block_height, catching_up: .sync_info.catching_up }'

Validator Creation

11. Wallet Management

Create a new wallet:

prysmd keys add "wallet_name"

Recover an existing wallet:

prysmd keys add "wallet_name" --recover

Important: Always securely backup your mnemonic phrase

12. Request Tokens

Visit the Prysm Devnet faucet: https://prysm-devnet-faucet.kleomedes.network/

You can verify transactions on the explorer: https://testnet.itrocket.net/prysm/staking

Check your balance:

prysmd q bank balances $(prysmd keys show "wallet_name" -a)

13. Create Validator

Generate a validator.json configuration file:

cd $HOME
echo "{\"pubkey\":{\"@type\":\"/cosmos.crypto.ed25519.PubKey\",\"key\":\"$(prysmd comet show-validator | grep -Po '\"key\":\s*\"\K[^"]*')\"}, \"amount\": \"1000000uprysm\", \"moniker\": \"Moniker_name\", \"identity\": \"\", \"website\": \"\", \"security\": \"\", \"details\": \"\", \"commission-rate\": \"0.1\", \"commission-max-rate\": \"0.2\", \"commission-max-change-rate\": \"0.01\", \"min-self-delegation\": \"1\" }" > validator.json

Create your validator using the configuration file:

prysmd tx staking create-validator validator.json \
--from "wallet_name" \
--chain-id prysm-devnet-1 \
--gas auto --gas-adjustment 1.5 \
-y

Critical Security Note: Make sure to securely backup your validator key file located at /root/.prysm/config/priv_validator_key.json. Store this file in a safe location as it's the most important key for your validator.