Step By Step:How To Install Shardeum Node, Sphinx (Betanet)

Seengo
11 min readFeb 2, 2023

--

Step By Step:How To Install Shardeum Node, Sphinx (Betanet)

Learn how to install a node on Shardeum blockchain and join to Sphinx (Betanet), Earn rewards and benefits.

Tip: What is the reward I will get by running an honest node on betanet?

Your node will earn Betanet SHM, but these will not have any value. That said, we will be keeping track of the addresses that helped out during Betanet. While we haven’t yet decided on Mainnet rewards for Betanet users, we’ll announce in due time if and when it is decided.

What is Shardeum?

Shardeum is an EVM based L1 that uses dynamic state sharding to achieve linearly scalability. This means Shardeum can increase its TPS capacity with each validator added to the network to retain low fees forever. In many state sharded blockchains, developers face challenges as they don’t retain atomic composability across shards. However, Shardeum uses a novel architecture where atomic composability is retained. Shardeum provides the highest throughput capacity of any EVM based L1 without sacrificing on decentralization.

For developers, the experience of building on Shardeum is the same as other EVM chains, you can deploy contracts in Solidity or Vyper and there aren’t any special considerations relative to sharding. You don’t need to consider which shard you deploy your contract to as the network retains atomic composability with all applications. However, developers benefit from linear scaling on Shardeum as you no longer have to concern losing users due to rising gas fees. On Shardeum you can build truly decentralized applications that aren’t limited by throughput bottlenecks.

Shardeum Discord

Shardeum Website

My Telegram Group ( Ask Your Questions)

My Telegram Channel

My Twitter

Order Your Ledger Wallet (Support me)

The first linearly scalable L1 blockchain network that increases transactions per second (TPS) by adding more nodes.

EVM based layer 1 network

Since you just need to deploy a smart contract written in developer-friendly languages like Solidity & Vyper on Shardeum, it is tailor-made for both new & existing developers to build dApps within minutes.

Linear scalability & low gas forever

Every node that joins the Shardeum network immediately increases the transactions per second (TPS) and total capacity of the network to achieve linear scaling and ensure low transaction fees even as the usage grows.

Dynamic Sharding & Atomic Composibility

Nodes on Shardeum are assigned dynamic address ranges across multiple shards. Since the consensus takes place at the transaction level, the network will retain parallel and atomic processing of transactions resulting in immediate finality/very low latency.

Anyone can operate a node

Hardware requirements to operate a validator node are kept low by offloading historical data to archive nodes and adding more nodes to reduce the load on each validator.

Autoscaling & High fairness

Shardeum will autoscale based on demand in the network keeping its operational cost low while maintaining low gas fees. The network will further process transactions on FCFS basis to ensure fairness eliminating miner extractable value (MEV).

Solid security

A leaderless Proof-of-Quorum (PoQ) consensus algorithm, Proof-of-Stake (PoS) with slashing, standby nodes, node rotation and permissionless participation — all contributes to boost the security of the network.

Part 01: How Order And Configure Your VPS Server

You need to rent a VPS server at first , VPS servers have some advantages:

  1. High Availability
  2. High Scalability
  3. Multi Locations
  4. Easy to Config
  5. Cheap

Note: Hetzner datacenter presents hourly paymnet option.

Minimum Hardware Requirements

CPU: 4vCore, RAM: 8 GB RAM , SDD: 60GB, OS: Ubuntu 20.04

1.If you don’t have a account in a server provider, use this link to sign up and earn €⁠20 for new sining up

Hetzner Datacenter

2.Click on continue button

3. In the hetzner website click on sign up button

4. Click on REGISTER NOW button

5. Fill the form and continue

6. Do KYC and enjoy it.

7. Click on <+ New project> and add a name project then in new page, click on Add Server

8. Choose your location, OS and hardware based on minimum requirements then write your VPS name and click on <create and buy> button

Note:An email will be sent about your VPS server like: IP and Password, check your mail box and use the informations to connect to VPS

Part 02: How to Connect To Your VPS

MacOs: To connect via SSH from this operating system, first open the Terminal window. You can find this tool by going to “Application->Utilities->Terminal”.

Windows: you can use many tools like putty and MobaXterm

1.Download one and lunch the application

2.Use informations which has been sent to your email address

3.Copy IP and enter in app and click on Open button

4.Click on “Accept” bottun , Enter your username and password which sent by Hetzner

Note: To paste any command that you have already copied just right-click where you want to paste the command

5.Enter or paste your password again and type new password and retype it again.

Finally you are on server, now you have permission to write or paste commands.

You should paste or type step by step the following commands that I have written.

My Telegram Group ( Ask Your Questions)

My Telegram Channel

My Twitter

Order Your Ledger Wallet (Support me)

Part 03: Preparation

1.Update & Upgrade Server

Before you get start, need to update and upgrade server.

sudo apt update && apt upgrade -y

2.Install Docker

You shoul install the Shardeum node by docker, following commands help you to install that.

sudo apt-get install ca-certificates curl gnupg lsb-release

Add Docker’s official GPG key:

sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

Use the following command to set up the repository:

echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Try granting read permission for the Docker public key file before updating the package index:

sudo chmod a+r /etc/apt/keyrings/docker.gpg
sudo apt-get update

To install the latest version, run:

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin

When command prompt asks you, type Y and press ENTER on your keyboard.

To install docker compose:

sudo apt install docker-compose

When command prompt asks you, type Y and press ENTER on your keyboard.

Verify that the Docker Engine installation is successful by running the hello-world image:

sudo docker run hello-world

Check docker compose version:

docker-compose -v

Part 04: Install The Node

1.Download and Install

Download the node and install it by the following command:

curl -O https://gitlab.com/shardeum/validator/dashboard/-/raw/main/installer.sh && chmod +x installer.sh && ./installer.sh

Command prompt will ask questions about your setup settings.

Give permission to collect validator data for bug reporting: (type y )

By running this installer, you agree to allow the Shardeum team to collect this data. (y/n)?: y

Enter y to setup the web based dashboard: ( type y)

Do you want to run the web based Dashboard? (y/n): y

Set a password for dashboard access: (type your password)

Set the password to access the Dashboard:

Add a custom session port for the web based dashboard or press enter for port 8080: (press ENTER)

Enter the port (1025-65536) to access the web based Dashboard (default 8080):8080

Set the first p2p port (default 9001): (press ENTER)

This allows p2p communication between nodes. Enter the first port (1025-65536) for p2p communication (default 9001):

Enter the second port (1025–65536) for p2p communication (default 10001): (press ENTER)

Enter the second port (1025-65536) for p2p communication (default 10001):

Add a custom path or install to root: (press ENTER)

What base directory should the node use (defaults to ~/.shardeum):

Wait for the installation process to be completed.

3.Config firewall

Open port based on your choice in previous step if you chose default port then you need to open 8080 also others like https, http, ssh, 443 .

ufw allow ssh
ufw allow 8080
ufw allow 9001
ufw allow 10001
ufw allow https
ufw allow http
ufw allow 443
ufw enable

When command prompt asks you, type y and press ENTER on your keyboard.

My Telegram Group ( Ask Your Questions)

My Telegram Channel

My Twitter

Part 05: Run The Node

1.Move To Directory

Go to the hidden Shardeum directory:

cd .shardeum

2.Start Script

Start the CLI by running the following shell script:

./shell.sh

3.Start GUI

operator-cli gui start

4.Dashboard

Open browser and enter your address according to the example below. Replace your IP with <localhost>.

https://<localhost>:8080
#Example
https://10.20.30.40:8080

Enter the password which you set in the pervious step and click on Connect Button.

5.Start Validator

Go to the “Maintenance” page, then click the “Start Node” button in the top left white box.

Refresh the page and look at time validating parameter, it is increasing.

6.Monitor

Go to “Performance” to see your node’s hardware performance here. the node consumes so much RAM, be carefull you need at less 4GB RAM.

For more details about your node status run the following inside the CLI:

operator-cli status
pm2 list

Part 06: Connect Wallet

1.MetaMask

If you don’t have a wallet installed on your browser so click on the link below and install the metamask wallet then create a new account.

2.Connect Wallet to Betanet

Use the link below.

https://docs.shardeum.org/Network/Endpoints#connect-wallet

3.Request Faucet

Use the link below and request faucet according to example in the faucet channel.

Type "/faucet [sphinx address]" to claim testnet SHM on Sphinx 1.0 network
#Example
/faucet address 0x0000000

4.Stake SHM

After you start the validator, go to the “Maintenance” page. You will be asked to connect your wallet:

This example has filled in 10 SHM tokens to stake.

Once all fields are filled, click the “Stake” button.

Your wallet will ask you to sign the transaction stake your SHM.

Once the transaction is signed and complete, you have staked your SHM tokens successfully.

Thanks for your time. If you need some supports, can join our community also can study other active projects.

My Telegram Group ( Ask Your Questions)

My Telegram Channel

My Twitter

Order Your Ledger Wallet (Support me)

--

--