Astar Network
Published in

Astar Network

Become a Plasm Network validator

2021–03–16: update with Dusty v1.9.0

Run a free node for Plasm Network! Help us build a strong network!

Plasm Network is a scalable and interoperable infrastructure for Web3.0. Since Plasm Network is built with Parity’s Substrate framework, it can be a future Polkadot Parachain that also acts as a scalable smart contract platform. The Polkadot Relaychain, by design, does not support smart contracts. This allows Plasm the opportunity to fill in this gap. Scalability is obviously one of the most crucial demands DApp developers have. Ideally, the developers can build whatever applications on Plasm Network without having to consider its scalability.

Currently, Plasm has 2 networks, Dusty Network, and Plasm Network. Dusty is the canary R&D chain like Kusama. The stable validators on Dusty can be the first validators on Plasm mainnet. Plasm is looking for 100 validators on the Plasm Network.

Index:

#1 Setup VPS server on Digital Ocean (get $100 for running a Plasm node)
#2 Setup your node
#3 Connect to Plasm Network UI
#4 Set up an account
#5 Upgrade your node

Support?
Discord: https://discord.gg/Z3nC9U4
Telegram: https://t.me/Fiexer

Setup VPS server

Let’s set up our server for running a Plasm node. Follow this link to register an account on Digital Ocean: https://m.do.co/c/fa4d0b8d4584

Use my referral link and you will get $100 FREE credits. With this, you can run your node for free for 60 days!

Confirm your email address | Add a payment method | Congrats you now have $100 credits.

1/ Click on ‘Create’ and choose ‘Droplets’ or ‘Cluster
I’m having success with running a basic Droplet but know that a node needs more power and stability once it’s a validator. So you better have a good server configurated. I’m running a node on a dedicated CPU server and one on Kubernetes.

2/ Let’s configure the server:

- Choose an image: Ubuntu or Debian
- Choose a plan: Basic / Dedicated CPU / Cluster
- Take a server you think suits Plasm's needs. If you need guidance, contact me.
- Choose a datacenter region
- Typ in a password
- Choose a hostname
- Deploy your Droplet/Cluster

3/ Click on ‘Droplets’, open your node and start your console

Setup your node

1/ Click on your server and open your console
2/ Typ in your login information:
# User: root
# Password: the password you picked on your server config (note: it’s possible your password isn’t working, type it in a text editor and copy/paste). In case you created a Kubernetes Cluster you need to reset your root password first.

NOTE: for safety reasons, it’s better to run your node, not as a root user. Create a new user before continue to the next steps.

sudo adduser USERNAME

3/ The easiest way to install a Plasm node is to download the binaries. You can find them here: https://github.com/staketechnologies/Plasm/releases. Use this command:

wget https://github.com/staketechnologies/Plasm/releases/download/v1.9.0-dusty/plasm-1.9.0-ubuntu-x86_64.tar.gz

4/ Extract the file:

tar -xf plasm-1.9.0-ubuntu-x86_64.tar.gz

5/ Sync your node. Yes, it’s that simple :-). Typ in the place of YOURNAME, how you would like to call your node.

./plasm --validator --name YOURNAME --rpc-cors all

Check on https://telemetry.polkadot.io/#/Dusty to see if your node is fully synced. Wait until it’s fully synced.

This was the easy part. Grabbing a validator seat requires a certain Linux background, please be familiar with the nodes and computer knowledge before participating. It is not recommended for novice computer users.

Connect to Plasm Network UI

When you chose to run the node on Kubernetes you need to open the SSL and HTTPS ports in your firewall (go to ‘Networking’ | ‘Firewall’ and add those ports).

While your node is running it’s easier to open a second connection with PuTTy. Just download and install PuTTy:
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

1/ Open PuTTY
2/ Typ in the field of ‘Host Name’ the IP of your server on Digital Ocean, you will find this in your Droplets page.
3/ The terminal will open and you can log in with your username and password.

4/ You now have to call for your ‘Session Key’, use the following command to get your key:

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933

The server will answer with a long key, copy the long string of numbers and letters 0x9917….b85a

Set up an account

Last and final step. You are almost there :-).

1/ Go to Plasm Network UI and create an account. Make sure you are connected to 'Dusty' testnet. You can change from network in the top left menu.

2/ On the left you can now ‘Add account

3/ A form pops-up. Choose a name and password. The most important part of this form is your mnemonic seed! Write this down, take a screenshot, … just don’t lose it.
4/ Click on ‘Next’ and ‘Save’. Store your *.json file somewhere on your computer, cloud, … In case you lose your mnemonic seed you can always restore your account with this file.
5/ Locate your wallet address, click on your wallet name. Double click on your address and copy it to your clipboard. This is needed for us to send you some PLD’s.
6/ Copy the long key you copied in the following field. Click on ‘Developer’ — ‘Extrinsics’ — ‘Session’ — ‘setKeys(keys, proof)’, and paste the result in the keys field, in the proof field enter 0x00.

Don’t forget to ‘Submit Transaction’ after you paste the key.

Congrats! That’s it!

How to upgrade your node

NOTE: you don’t need to do this step if you already run the latest version of Dusty!

latest stable version: v1.8.0

This part of the tutorial is for users who are running a node on Digital Ocean. It’s kind of similar on other VPS servers. Try to understand my workflow and I’m sure you will figure it out on your server. If you need help you can also join Discord for support.

1/ Open PuTTY
2/ Typ in the field of ‘Host Name’ the IP of your server on Digital Ocean, you will find this in your Droplets page.
3/ The terminal will open and you can log in with your username and password.
4/ Download the latest binary.

wget https://github.com/staketechnologies/Plasm/releases/download/v1.8.0-dusty/plasm-1.8.0-ubuntu-x86_64.tar.gz

5/ Extract the file:

tar -xf plasm-1.8.0-ubuntu-x86_64.tar.gz

5/ Now login on to your Digital Ocean account and open your console. You should see your node running. If you don’t see your node running, it’s possible you used the ‘nohup’ or ‘screen’ command for your node.

Now just stop your node, press:

Ctrl + X

Your node will stop running and now you just need to restart the node with the command you used earlier:

./plasm --validator --name YOURNAME --rpc-cors all

Your node will start again with the latest version. Check on https://telemetry.polkadot.io/#/Dusty to see if your node is back running and synced. Wait until it’s fully synced.

If you have any questions, please feel free to contact us on Discord.

Plasm Network

Come join our community!

Website | Twitter | Telegram | Discord | GitHub | Lockdrop

For further information, follow us on Twitter and Telegram.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store