Setup a ParaState Node
In this chapter, you will learn how to set up a ParaState node to join our testnet. After that, you could submit a request to join the validator group.
Recommended Hardware
CPU: 2.0 GHz x86-64 CPU
Memory: 8GB RAM
Disk: 500GB High-Speed Storage (SSD)
For your reference, we deploy our own ParaTime node on Azure
D2s_v3
instances (2 VCPU, 8GB Memory, 500GB Disk space)
Environment
Currently, we only support Ubuntu 20.04. Please use Ubuntu 20.04 to set up your ParaState node.
Download Pre-built Binaries
Download our pre-built node binaries from the GitHub release page:
You could check the SHA-1 message digest of downloaded files and compare those on the GitHub release page to make sure your download is correct.
Expose ports
30333
: Default P2P traffic port. Make sure you expose this port externally.9933
: Default RPC traffic port.9944
: Default WebSocket traffic port.
Generate Your Own Keys
You'll need your own keys to run a ParaState node. Follow the Generate Your Own Keys tutorial from Substrate Developer Hub:
For example:
Generate a random mnemonic with the sr25519 address
Generate an ed25519 address from the generated mnemonic
Run the ParaState Node
The following scripts will start a ParaState node and connect to the ParaState Testnet (2021-07-15):
After your node starts importing blocks, you could check your node status at Polkadot Telemetry.
Add Your Key to Your ParaState Node
Follow the Add Keys to Keystore tutorial from the Substrate Developer Hub to add previous generated keys to your node:
We need to use the
author.insertKey
RPC call to add keys. Here you need to restart your node with--rpc-methods Unsafe
temporary. You should restart your node without this flag after adding keys.Go to Polkadot-JS Apps UI and connect it to your node. (Reminder: You might need to restart your node with the
--unsafe-ws-external
flag to connect from a different host.)Navigate to
Developer -> RPC Call
and chooseauthor
andinsertKey
with the following arguments for the Aura key:keytype
:aura
suri
:<Your Mnemonic>
(eg. clip organ olive upper oak void inject side suit toilet stick narrow)publicKey
:<Your Raw sr25519 Key>
(eg. 0x9effc1668ca381c242885516ec9fa2b19c67b6684c02a8a3237b6862e5c8cd7e)
Insert againt with the GRANDPA key:
keytype
:gran
suri
:<Your Mnemonic>
(eg. clip organ olive upper oak void inject side suit toilet stick narrow)publicKey
:<Your Raw ed25519 Key>
(eg. 0xb48004c6e1625282313b07d1c9950935e86894a2e4f21fb1ffee9854d180c781)
Navigate to
Accounts -> Accounts
and chooseAdd account
. Use your mnemonic seed to create an account at your browser.
Update Developer Settings
Go to Polkadot-JS Apps UI and connect it to your node. (Reminder: You might need to restart your node with the
--unsafe-ws-external
flag to connect from a different host.)Navigate to
Settings -> Developer
and paste the following json:
Last updated