⚙️ Installation

Chain ID: kusama| Node Version: v1.17.2

Recommended Hardware:

Node Type
CPU
RAM
Storage

Mainnet

6

32GB

1TB

Update System and Install Dependencies

sudo apt update && sudo apt upgrade -y
sudo apt install curl git make clang pkg-config libssl-dev build-essential -y
sudo apt install golang-go -y
sudo apt install apt-transport-https gnupg cmake protobuf-compiler -y

curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg
sudo mv bazel-archive-keyring.gpg /usr/share/keyrings

echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list

Automatic Installation

source <(curl -s https://raw.githubusercontent.com/validexisinfra/Kusama/main/installmain.sh)

Install Rust and Required Components

curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
rustup update
rustup component add rust-src
rustup target add wasm32-unknown-unknown
rustup install nightly-2024-01-21
rustup target add wasm32-unknown-unknown --toolchain nightly-2024-01-21

Clone and Build Polkadot SDK

git clone https://github.com/paritytech/polkadot-sdk.git
cd polkadot-sdk
git checkout polkadot-v1.18.7
cargo build --release

Configure and Create a Systemd Service

current_user=$(whoami)
STARTNAME="Your_Node_Name"
sudo tee /etc/systemd/system/polkadot.service > /dev/null <<EOF
[Unit]
Description=Polkadot Validator Node
After=network.target

[Service]
Type=simple
User=$current_user
ExecStart=$HOME/polkadot-sdk/target/release/polkadot \
  --validator \
  --name "$STARTNAME" \
  --chain=kusama \
  --database RocksDb \
  --state-pruning 1000 \
  --port 30333 \
  --rpc-port 9933 \
  --prometheus-external \
  --prometheus-port=9615 \
  --unsafe-force-node-key-generation \
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target
EOF

Start and Enable the Service

sudo systemctl daemon-reload
sudo systemctl enable polkadot.service
sudo systemctl restart polkadot.service

After launch, we wait for our node to synchronize. You can track our condition using TELEMETRY

After the node has synchronized, we pull out the key from our node by entering the command

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933

Creating a validator

  • Go to the chain and first create a wallet

  • We create a validator. To do this, select Network - Staking - Accounts - Validator

Last updated