What is a Full Node

A full node is a node that keeps most of the blockchain's state on the server's disk and make it available to its clients. For the Nodle Chain, it may also "prune" some of its saved data to save some disk space.


Get Started

We will assume you have a server running and installed the required dependencies. The following instructions will help you start a full node, you will then have to wait for it to sync with the Blockchain.

With Docker

Our preferred way to setup and manage nodes is with docker, indeed you can start your node now with a only one command:

<aside> 💻 $ docker run -v $(pwd)/nodle:/data -p 9944:9944 -p 30333:30333 -t -i docker.pkg.github.com/nodlecode/chain/nodle-chain:main-runtime-2.0 --ws-external --rpc-cors all --chain main

</aside>

You can even use the flag --restart always -d instead of -i to make sure your node restart when docker is started (i.e. when your server boots).

Explaining how docker works is outside of this wiki's scope but please let us explain a few flags;

With a Compiled Binary

You can start a node quickly via the following command:

<aside> 💻 $ nodle-chain --chain main

</aside>

This will start the node and persist its data on your filesystem. You can switch between chains via the --chain flag, for instance to sync with our test network you could use --chain arcadia.

Configuring your server to have the node start every time the server boots is outside of the scope of this wiki, however you could do so via systemd.