Nodes

guruGuru
search

Subsocial - Setup Guide

Back to projectRU
Stuck? AsktelegramNodes Guru telegram community

Rent on

1. Install

Use our script for a quick installation:

wget -q -O subsocial.sh https://api.nodes.guru/subsocial.sh && chmod +x subsocial.sh && sudo /bin/bash subsocial.sh

Set a name for your node and wait for the installation to complete.

You can check the node logs with the following command:

journalctl -u subsociald -f

2. Creating a validator

2.1. Install Polkadot extension

Go to the website and download the version for your browser:

Clover-5

2.2. Creating Accounts

First, go to the site and allow access to the extension in the popup window:

Bitclout-00

We need to create an account(s) (you can use existing accounts), to do this click Add account:

Subsocial-1

Then we enter the name of the wallet (in our case it is stash), save the mnemonic (highlighted in the screenshot), enter the password and click “Next”:

Polkadex-2

Polkadex-3

After that, confirm the creation of the account by clicking on Save and download the json file with the key (the download will start automatically):

Polkadex-4

2.3. Faucet

First, copy our account address by clicking on the wallet icon:

Subsocial-2

Now you need to fill out the google form, in the form specify the wallet address copied above.

Subsocial-3

After a while, check your wallet, the tokens should appear on your account.

2.4. Session keys

We need to get a session key for our account, to do this run the following command:

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://127.0.0.1:9933 | jq .result | sed 's/"//g'

The output should looks like this:

Polkadex-17

Copy this value (you can use double left mouse click for quick selection) by pressing Enter or by right-clicking the mouse.

2.5. Validating

Your node must be synced. You should check this, go to the Explorer and make sure that the height of your node is the same as the network.

To become a validator, go to Account actions and click Validator:

Subsocial-4

Set the desired amount of your bond (it is not recommended to bond the full amount, it will automatically be set to a normal value including commissions):

Subsocial-5

Enter your session key (from step 2.4) and set the desired commission rate:

Subsocial-6
Confirm the transaction in the pop-up window.

Congratulations, you are now a validator candidate (you can see your account under Waiting)! You need to wait for the next era to become a full validator, you can check active validator set here.