Skip to main content

Set up a Node

Steps to do the update:

  1. Stop the docker container (remember to keep the docker volume).

  2. Copy the docker image from below

  3. Remove --unsafe-rpc-external and --rpc-methods=unsafe from your node (if you already generated session keys previously)

  4. Run your updated image again

  5. Install Docker on your VM (how to install Docker on Ubuntu)

  6. Create and run the container from the validator node image using the following command

sudo docker run -d -v peaq-storage:/chain-data -p 9944:9944 peaq/parachain:peaq-v0.0.102 \
--collator \
--parachain-id 3338 \
--chain ./node/src/chain-specs/peaq-raw.json \
--base-path chain-data \
--port 30333 \
--rpc-port 9944 \
--rpc-methods=unsafe \
--unsafe-rpc-external \
--rpc-cors=all \
--execution=wasm \
--out-peers 50 \
--in-peers 50 \
-- \
--execution wasm \
--port 30343 \
--sync fast \
--rpc-port 9977
  1. Wait until your validator node syncs with the blockchain (both Polkadot Relay Chain and peaq parachain block history). It may take a few hours and will depend on your connection speed. A fully synced node will look like this: