website logo
WebsiteGithubDiscordTwitterTelegramSDK
⌘K
Get started
Welcome to peaq
Introduction to peaq
Our mission
Our vision
Learn
Overview of networks
Economics
Tokens & Token Utility
Why Polkadot
Tech stack
Source code
Important links
Security Assessment Reports
Builders
SDK
Get started
Build
Integrate
Get inspired
Grants & Funding
Ecosystem and Community Initiatives
User Interfaces
peaq control
peaq portal
Node operators
Run a node
Tokens & Earn
Agung tokens (Faucet)
Wallets
Docs powered by archbee 

Do it yourself

12min

Hardware & Software Requirements

The recommended and officially supported operating system to host Agung nodes is Ubuntu 20.04 on a x86_64 compatible hardware. Although you can use Apple macOS or Microsoft Windows and other nix flavors as well if you compile the node from the code code, currently only the official distribution can connect to the Agung network.

Component

Requirement

CPU

4 Cores (2.0Ghz or above)

RAM

8 GB

Disk space, SSD (recommended) or HDD

50 GB (to start)

Firewall

No ports needed to be opened if you will be connecting to the node on localhost.



For RPC and WebSockets the following should be opened

9933/TCP

9944/TCP

peaq Node Installation Guide

Step 1

Click here and download the highlighted tar file. Kindly note this link is public and can be accessed through any browser.

Document image


Step 2

After successfully downloading the required tar file please use the below mentioned command to extract the contents:

tar zxvf peaq-node-agung-apr-7-2022.tar.gz && chmod +x peaq-node

The above command will output a single binary and mark it as executable.

Step 3

To run a "pruning" node please use the following command, this will create a chain-data folder in the current directory which will contain fetched data from the Agung network.

./peaq-node --chain agung

Once the command is executed properly, the screen should appear as below, if not, please reach out to us on our github repo here. As the node starts it will synchronize with peaq network and import all previous blocks. This process may take a few minutes depending on your network speed.

peaq node getting started
peaq node getting started

Importing blocks from peaq node
Importing blocks from peaq node


Running peaq node as a service

You may run Agung node as a service by following below steps. This guide assumes you are using the path /var/network as file storage

Step 1 - Creating a service unit

Create a file called peaq.service with the following content in /etc/systemd/system/peaq.service

Unit] Description=Peaq Node

[Service]

User=<enter user e.g. augung>

Group=<enter group e.g. augung>

ExecStart=<directory_of_script e.g. /var/network/start_node.sh>

WorkingDirectory=<path to startup script e.g. /var/network>

Restart=always

RestartSec=60

[Install]

WantedBy=multi-user.target

Step 2 - Creating the startup script

Create a start_node.sh in the path that was mentioned in ExecStart and include the following.

#!/bin/sh ./peaq-node \ --base-path ./chain-data \ --chain agung \ --port 1033 \ --ws-port 9944 \ --rpc-port 9933 \ --rpc-cors all \ --pruning archive \ --name ro_full_node_0

Kindly note the peaq-node file should be placed in the same folder where start_node.sh resides.

Step 3

Reload the service files to include the new service.

sudo systemctl daemon-reload

Step 4

Start your service.

sudo systemctl start peaq

Step 5

To check the status of your service.

sudo systemctl status peaq

Default Ports for peaq node

Description

Port

RPC



9933

WS



9944

P2P



1033





Did this page help you?
Yes
No
PREVIOUS
Agung testnet
NEXT
Via OnFinality
Docs powered by archbee 
TABLE OF CONTENTS
Hardware & Software Requirements
peaq Node Installation Guide
Step 1
Step 2
Step 3
Running peaq node as a service
Step 1 - Creating a service unit
Step 2 - Creating the startup script
Step 3
Step 4
Step 5
Default Ports for peaq node