Run Full Node
Overview
For users and partners, maintaining a full node could sync blockchain data with a Parallel network timely, get a locally RPC endpoint, etc.
Requirements
Here are the recommended system specs but not the minimum requirements,
CPU: 8 Cores
RAM: 16 GB
SSD: 300 GB
Create new user and add to sudo group
Note: all future instructions should be done using this new created user. DONT USE ROOT!
Install tools & docker
Run From Docker
Running full node from docker is the easiest way, we recommend keeping the node version consistent with the production environment.
If the current version is as below:
WASM version: parallel/189
Node version: Parallel Node v1.9.0
Then Docker Image v1.9.0 is recommended:
docker pull parallelfinance/parallel:v1.9.0
Sync from scratch (not recommand)
A full node can sync from scratch, full-node.sh can be found on the Resources page:
Sync from snapshot (recommand)
create-volume.sh can be found on the Resources page:
After launching the node, it'll listen by default on the following ports:
9933 HTTP
9944 Websocket
9934 Relaychain HTTP
9945 Relaychain Websocket
For using websocket, you can definitely connect to raw: ws://127.0.0.1:9944
or http://127.0.0.1:9933
to communicate with our chain, but we would recommand creating certificates and put them behind a domain then access them via wss://
and https://
so that your message get encrypted
Status check
A few minutes later, you should then be able to find your rpc node on the following telemetry page if you dont have outbound firewall blocking this.
If you choose to Sync from scratch
you should see the block number
keep growing.from a rather small number like 1000
If you choose to Sync from snapshot
you should see the block number is already at a very big number like > 1000000
You'll need to wait the rpc node to catch up to nearly the latest heiko OR paralle block to be able to send transactions to it, you can refer to: https://parallelfi.gitbook.io/parallel-finance/polkadot-network/developer-docs/wallet/integration/api for transactions example. All you need to do is just replacing the websocket endpoint
Logs
Last updated