Blockchain Node Roles

A non exhaustive list of some common roles assumed by nodes:

RoleDescription
ValidatorSecures the Relay Chain by staking DOT, validating proofs from collators on parachains and voting on consensus along with other validators.
CollatorMaintains a parachain by collecting parachain transactions and producing state transition proofs for the validators.
BootnodeA node with a static address and p2p public key, used to bootstrap a node onto the network’s distributed hash table and find peers.
RPC NodeExpose an RPC interface over http or websocket for the relay chain or parachain and allow users to read the blockchain state and submit transactions (extrinsics). There are often multiple RPC nodes behind a load balancer.

Additionally, we also usually distinguish types of nodes:

TypeDescription
Full NodeA node which is syncing the relay chain or parachain to the current best block. It can make use of database pruning to reduce its disk usage.
Archive NodeA full node which has a complete database starting all the way from the genesis block.
Light NodeAlso called light client, can connect to a chain network but does not require to have full copy of the entire blockchain

Simplified Diagram of the Parachain Network architecture

The diagram below illustrate how different nodes play different roles in the network by having different configuration.

parachain node diagram

  • Bootnodes expose their P2P port behind an easy to find IP or DNS address.
  • RPC nodes expose their RPC endpoint publicly.
  • Collators sign blocks and propose them for validation to the Relaychain validators
  • We can adjust the database pruning (archive or pruned) depending on the node role.

Downsides of deploying nodes without clear role separation

Although, it is possible for a single node to assume multiple roles (collator, RPC, bootnode), robust network deployments are composed of multiple nodes of each types to ensure reliability.

For example, if a collator node also serves as an RPC node, receiving increased user traffic might overload the node and bring down block production. To prevent this from happening, it is possible to set up several dedicated RPC nodes behind a load balancer. Similarly, setting up additional collators in your network will allows downtime of fraction of the collator set without slowing down block production.

Last change: 2024-08-19, commit: 04f95a2