Skip to content

Install and Run a Polkadot Node

Introduction

The polkadot binary is the relay chain node built from the Polkadot SDK. A single binary can run any relay chain it has a chain specification for, so the same installation serves Polkadot, Kusama, Westend, Paseo, or a relay chain you define yourself.

Running your own node gives you direct access to chain data, full control over the RPC requests and transactions you submit, and a source of blocks for indexers and applications. Startup flags select the run mode:

  • Pruned full node: Keeps recent state and finalized blocks. This is the default.
  • Archive node: Keeps the state and bodies of every block since genesis, for explorers and historical queries.
  • RPC node: A pruned or archive node that exposes its JSON-RPC server to external clients.
  • Validator mode: The --validator flag, which turns on block authoring and parachain validation. See Validator Mode.

This page covers installing the polkadot binary, verifying the release, and configuring each run mode. To run a parachain node, see Run a Parachain RPC Node or Polkadot Omni Node.

Prerequisites

Before you install the node, check the following:

Install the Binaries

A Polkadot SDK release ships three relay chain binaries:

  • polkadot: The node itself. A full, archive, or RPC node needs only this binary.
  • polkadot-prepare-worker and polkadot-execute-worker: Worker processes that prepare and execute parachain validation code. The node uses them only in validator mode, where all three binaries must be in the same directory.

Choose one of the following installation methods.

Download a Release Binary

Download the binaries from the Polkadot SDK releases page, or use the following commands, which also download and verify each binary's signature:

# Download the binary
curl -LO https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2609-1/polkadot

# Verify signature
curl -LO https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2609-1/polkadot.asc

gpg --keyserver hkps://keyserver.ubuntu.com --receive-keys 90BD75EBBB8E95CB3DA6078F94A4029AB4B35DAE

gpg --verify polkadot.asc
# Download the binary
curl -LO https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2609-1/polkadot-prepare-worker

# Verify signature
curl -LO https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2609-1/polkadot-prepare-worker.asc

gpg --keyserver hkps://keyserver.ubuntu.com --receive-keys 90BD75EBBB8E95CB3DA6078F94A4029AB4B35DAE

gpg --verify polkadot-prepare-worker.asc
# Download the binary
curl -LO https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2609-1/polkadot-execute-worker

# Verify signature
curl -LO https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2609-1/polkadot-execute-worker.asc

gpg --keyserver hkps://keyserver.ubuntu.com --receive-keys 90BD75EBBB8E95CB3DA6078F94A4029AB4B35DAE

gpg --verify polkadot-execute-worker.asc

Signature verification uses GPG signing keys to confirm that the downloaded binaries are authentic and have not been tampered with. Polkadot SDK releases use two signing keys:

Warning

A "Good signature" message indicates successful verification. Any other output signals a potential security risk, so do not run the binary.

After verification, make the binaries executable:

chmod +x polkadot polkadot-prepare-worker polkadot-execute-worker

Tip

Pre-built binaries may not work on your architecture or Linux distribution. An error like cannot execute binary file: Exec format error means the binary is incompatible with your system. Use Docker or build from source instead.

Install with APT

On Debian-based distributions such as Ubuntu, you can install the binaries with the APT package manager.

Run the following commands as root to add the Parity package repository and install the binaries:

# Import the release-team@parity.io GPG key
gpg --keyserver hkps://keyserver.ubuntu.com --receive-keys 90BD75EBBB8E95CB3DA6078F94A4029AB4B35DAE
gpg --export 90BD75EBBB8E95CB3DA6078F94A4029AB4B35DAE > /usr/share/keyrings/parity.gpg

# Add the Parity repository and update the package index
echo 'deb [signed-by=/usr/share/keyrings/parity.gpg] https://releases.parity.io/deb release main' > /etc/apt/sources.list.d/parity.list
apt update

# Install the `parity-keyring` package - This will ensure the GPG key
# used by APT remains up-to-date
apt install parity-keyring

# Install polkadot
apt install polkadot

Install with Docker

To use Docker or another OCI-compatible container runtime, pull the parity/polkadot image from Docker Hub:

docker pull parity/polkadot:stable2609-1

Inside the container, the node listens only on localhost by default. To reach its RPC and Prometheus endpoints from the host, publish the ports and add the --rpc-external and --prometheus-external flags:

docker run -p 9944:9944 -p 9615:9615 \
  parity/polkadot:stable2609-1 \
  --chain INSERT_CHAIN \
  --name "INSERT_NODE_NAME" \
  --rpc-external \
  --prometheus-external

On Apple silicon, add --platform linux/amd64 after docker run.

Install with Ansible

To manage installations on several machines, the Parity chain operations Ansible collection provides a Substrate node role.

Build from Source

Building from source works on any platform the Polkadot SDK supports. After you install the dependencies, clone the release tag and build it:

git clone --branch polkadot-stable2609-1 --depth 1 https://github.com/paritytech/polkadot-sdk.git
cd polkadot-sdk
cargo build --release --locked

Depending on your machine, compiling may take an hour or more. The polkadot, polkadot-prepare-worker, and polkadot-execute-worker binaries are written to ./target/release/. If you move polkadot elsewhere, for example into a directory on your $PATH, move the two worker binaries with it.

A community-maintained snap package also exists. Check its publisher and version before you use it.

Verify the Installation

Check that the binaries run and report the same version:

polkadot --version
polkadot-execute-worker --version
polkadot-prepare-worker --version

The output should show matching version numbers, similar to the following (the specific version may vary):

polkadot --version polkadot-execute-worker --version polkadot-prepare-worker --version 1.16.1-36264cb36db 1.16.1-36264cb36db 1.16.1-36264cb36db

If the versions differ or a command fails, confirm that all the binaries were installed from the same release and that their directory is on your $PATH:

echo $PATH

If necessary, move the binaries to a shared location such as /usr/local/bin/.

Configure and Run Your Node

The --chain flag selects the network. It accepts a built-in chain identifier, such as polkadot, kusama, westend, or paseo, or the path to a chain specification JSON file for any other relay chain. Replace INSERT_CHAIN in the following commands with your value. If you built from source, replace polkadot with ./target/release/polkadot.

The base commands for each storage mode are as follows:

This uses the default state pruning value of the last 256 blocks:

polkadot --chain INSERT_CHAIN \
  --name "INSERT_NODE_NAME"

You can customize the pruning value, for example, to keep the last 1000 finalized blocks:

polkadot --chain INSERT_CHAIN \
  --name "INSERT_NODE_NAME" \
  --state-pruning 1000 \
  --blocks-pruning 1000

To keep the full state and every block, use the archive option:

polkadot --chain INSERT_CHAIN \
  --name "INSERT_NODE_NAME" \
  --state-pruning archive \
  --blocks-pruning archive

The Node Configuration Parameters section of the parachain RPC guide explains the pruning and sync flags in detail. To list every available flag, run:

polkadot --help

To run the node on a local relay chain for development instead of a live network, see Zombienet.

RPC Configuration

The node's startup flags control which RPC methods are exposed, how many connections are accepted, and which origins can connect:

  • Limit the exposed methods with --rpc-methods. Use --rpc-methods safe for public endpoints.
  • Set the maximum number of connections with --rpc-max-connections, for example, --rpc-max-connections 200.
  • By default, only localhost origins and https://polkadot.js.org can access the RPC server. Change this with --rpc-cors. To allow access from any origin, use --rpc-cors all.
  • Listen on all network interfaces with --rpc-external. Combine it with --rpc-methods safe and, in production, a TLS proxy. See Set Up Secure WebSocket.

For more flags relevant to RPC nodes, see Important Flags for Running an RPC Node in the Parity DevOps guide.

Telemetry

Telemetry reports your node's name, version, and sync status to a telemetry server. By default, the node connects to the telemetry endpoints listed in the chain specification, if any. Override this with the following flags:

  • --telemetry-url 'INSERT_URL INSERT_VERBOSITY': Sends telemetry to your own server instead. Verbosity ranges from 0 (least verbose) to 9. Pass the flag more than once to report to several endpoints.
  • --no-telemetry: Disables telemetry.

For example, to report to a self-hosted telemetry server:

polkadot --chain INSERT_CHAIN \
  --name "INSERT_NODE_NAME" \
  --telemetry-url 'wss://INSERT_TELEMETRY_HOST/submit 0'

The node name set with --name is the label that appears on the telemetry server.

Sync Your Node

Syncing time depends on the chain's size, your bandwidth, processing power, disk speed, and RAM. A healthy node syncing blocks outputs logs like the following:

2024-11-19 23:49:57 Parity Polkadot 2024-11-19 23:49:57 ✌️ version 1.14.1-7c4cd60da6d 2024-11-19 23:49:57 ❤️ by Parity Technologies <admin@parity.io>, 2017-2024 2024-11-19 23:49:57 📋 Chain specification: Polkadot 2024-11-19 23:49:57 🏷 Node name: myPolkadotNode 2024-11-19 23:49:57 👤 Role: FULL 2024-11-19 23:49:57 💾 Database: RocksDb at /home/ubuntu/.local/share/polkadot/chains/polkadot/db/full 2024-11-19 23:50:00 🏷 Local node identity is: 12D3KooWDmhHEgPRJUJnUpJ4TFWn28EENqvKWH4dZGCN9TS51y9h 2024-11-19 23:50:00 Running libp2p network backend 2024-11-19 23:50:00 💻 Operating system: linux 2024-11-19 23:50:00 💻 CPU architecture: x86_64 2024-11-19 23:50:00 💻 Target environment: gnu 2024-11-19 23:50:00 💻 CPU: Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz 2024-11-19 23:50:00 💻 CPU cores: 4 2024-11-19 23:50:00 💻 Memory: 32001MB 2024-11-19 23:50:00 💻 Kernel: 5.15.0-113-generic 2024-11-19 23:50:00 💻 Linux distribution: Ubuntu 22.04.5 LTS 2024-11-19 23:50:00 💻 Virtual machine: no 2024-11-19 23:50:00 📦 Highest known block at #9319 2024-11-19 23:50:00 〽️ Prometheus exporter started at 127.0.0.1:9615 2024-11-19 23:50:00 Running JSON-RPC server: addr=127.0.0.1:9944, allowed origins=["http://localhost:*", "http://127.0.0.1:*", "https://localhost:*", "https://127.0.0.1:*", "https://polkadot.js.org"] 2024-11-19 23:50:00 🏁 CPU score: 671.67 MiBs 2024-11-19 23:50:00 🏁 Memory score: 7.96 GiBs 2024-11-19 23:50:00 🏁 Disk score (seq. writes): 377.87 MiBs 2024-11-19 23:50:00 🏁 Disk score (rand. writes): 147.92 MiBs 2024-11-19 23:50:00 🥩 BEEFY gadget waiting for BEEFY pallet to become available... 2024-11-19 23:50:00 🔍 Discovered new external address for our node: /ip4/37.187.93.17/tcp/30333/ws/p2p/12D3KooWDmhHEgPRJUJnUpJ4TFWn28EENqvKWH4dZGCN9TS51y9h 2024-11-19 23:50:01 🔍 Discovered new external address for our node: /ip6/2001:41d0:a:3511::1/tcp/30333/ws/p2p/12D3KooWDmhHEgPRJUJnUpJ4TFWn28EENqvKWH4dZGCN9TS51y9h 2024-11-19 23:50:05 ⚙️ Syncing, target=#23486325 (5 peers), best: #12262 (0x8fb5…f310), finalized #11776 (0x9de1…32fb), ⬇ 430.5kiB/s ⬆ 17.8kiB/s 2024-11-19 23:50:10 ⚙️ Syncing 628.8 bps, target=#23486326 (6 peers), best: #15406 (0x9ce1…2d76), finalized #15360 (0x0e41…a064), ⬇ 255.0kiB/s ⬆ 1.8kiB/s

To check progress from another terminal, call the system_syncState RPC method. Syncing is complete when currentBlock equals highestBlock:

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

The process is the same for any Polkadot SDK-based chain, although individual chains may require chain-specific flags.

Connect to Your Node

By default, the node serves JSON-RPC over WebSocket and HTTP at the following local endpoint:

ws://127.0.0.1:9944

Connect to it from any Polkadot SDK client, such as Subxt or a block explorer like Polkadot.js Apps. See Chain Interactions for client options.

Validator Mode

The --validator flag runs the node as an authority: it authors blocks, takes part in finality, and validates parachain candidates. In this mode, the node also needs the polkadot-prepare-worker and polkadot-execute-worker binaries and enforces secure-validator mode, a set of Linux sandboxing checks.

One of the sandboxing features the node uses is Landlock, which lets an unprivileged process restrict its own access to the system. Landlock is available in Linux kernels 5.13 and later and is activated by default on most distributions. Check whether it is active by running the following command as root:

dmesg | grep landlock || journalctl -kg landlock

If the command prints nothing, Landlock is not active. Activate it or use a kernel and distribution that support it. See the kernel support documentation for details.

Becoming a validator on a live network involves session keys, staking, and network-specific requirements. See Set Up a Validator on the Polkadot Developer Docs.

Last update: November 17, 2026
| Created: November 17, 2026