Skip to content


Website | Twitter | Discord | Explorer

Setting up variables

Specify the name of your “MONIKER” (validator) which will be visible in the explorer

Save and import variables into system

echo 'export NODENAME="'${NODENAME}'"' >> $HOME/.bash_profile
source $HOME/.bash_profile

Update Packages and Depencies

sudo apt update && sudo apt upgrade -y

Install Depencies

sudo apt install -y clang build-essential binaryen cmake protobuf-compiler curl

Install Rust

curl --proto '=https' --tlsv1.2 -sSf | sh

Install Wasm Toolchains

rustup toolchain add nightly
rustup target add wasm32-unknown-unknown --toolchain nightly

Download binaries

tar xvf gear-nightly-linux-x86_64.tar.xz
rm gear-nightly-linux-x86_64.tar.xz
mv gear /usr/local/bin

Create service

printf "[Unit]
Description=Gear Node
ExecStart=/usr/local/bin/gear --name \"$NODENAME\" --telemetry-url \"ws:// 0\"
[Install]" > /etc/systemd/system/gear-node.service

Register and start service

sudo systemctl daemon-reload && \
sudo systemctl enable gear-node && \
sudo systemctl start gear-node && \
sudo systemctl status gear-node

Checking logs

sudo journalctl -fu gear-node -o cat

Moving the node and Backup

To move the node to a new server you are to backup then restore the following (provided paths are for default Staging Testnet V6 node’s parameters):

The network private key of the node:


The database:


The service configuration if you’ve configured the node as a service:


If you don’t backup the database, you can always synchronize it from scratch, but keep in mind that this process may take some time.

Update the node with the new version

sudo tar -xvf gear-nightly-linux-x86_64.tar.xz
rm gear-nightly-linux-x86_64.tar.xz
sudo systemctl stop gear-node
mv gear /usr/local/bin
sudo systemctl restart gear-node

Remove the node

sudo systemctl stop gear-node
sudo systemctl disable gear-node
sudo rm -rf /root/.local/share/gear
sudo rm /etc/systemd/system/gear-node.service
rm /usr/local/bin/gear

Default ports are:

P2P: 30333
Prometheus: 9615
HTTP RPC: 9933
WebSocket RPC: 9944

Cleaning the storage

Get a list of all sections

df -h

Checking how much space the blockchain database takes up

du -h $HOME/.local/share/gear/chains/gear_staging_testnet_v6/db/full

Clean the database

sudo systemctl stop gear-node
gear purge-chain
sudo systemctl start gear-node


df -h