Validator Setup

This page contains some useful information on how to set up a validator node. More information can be found in the Official Polkadot Documentation.

Installation

The following commands will install the Polkadot runtime as a systemd service and start the node.

CHAIN=kusama # polkadot | kusama

DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get dist-upgrade -y
apt-get upgrade -y

# Install some useful packages
apt-get install -y gpg ntp vim curl

# Install and enable the polkadot runtime
gpg --recv-keys --keyserver hkps://keys.mailvelope.com 9D4B2B6EB8F97156D19669A9FF0812D491B96798
gpg --export 9D4B2B6EB8F97156D19669A9FF0812D491B96798 > /usr/share/keyrings/parity.gpg
echo 'deb [signed-by=/usr/share/keyrings/parity.gpg] https://releases.parity.io/deb release main' > /etc/apt/sources.list.d/parity.list

apt-get update
apt-get install -y parity-keyring polkadot

echo 'POLKADOT_CLI_ARGS="--chain='"$CHAIN"' --sync warp"' > /etc/default/polkadot

systemctl enable polkadot
systemctl start polkadot

The service can be monitored using the following commands:

journalctl -u polkadot -f