Skip to content

blacknodes/AvailProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 

Repository files navigation

AvailProject

How To Run an Avail Validator (Kate Testnet)

Install Dependencies

sudo apt update

Create Avail File

Go To Parent Directory

cd ..

Create Avail File in home Directory

sudo mkdir /home/avail/avail-node/

Go To Avail File You Created

cd /home/avail/avail-node/

Download The Required Files

wget https://github.com/availproject/avail/releases/download/v1.6.3/data-avail-linux-amd64.tar.gz

wget https://kate.avail.tools/chainspec.raw.json

Extract File

tar xvzf data-avail-linux-amd64.tar.gz

Run Your Node As a Service

You need to set name to your node in this command

sudo tee /etc/systemd/system/availd.service > /dev/null <<'EOF'
[Unit]
Description=Avail Validator
After=network.target
StartLimitIntervalSec=0

[Service]
User=avail
Type=simple
Restart=always
RestartSec=120
ExecStart=/home/avail/avail-node/data-avail --base-path /home/avail/avail-node/data --chain /home/avail/avail-node/chainspec.raw.json --port 30333 --validator --name "set_your_name"

[Install]
WantedBy=multi-user.target
EOF

Enable Autostart of Your Node

sudo systemctl daemon-reload
sudo systemctl enable availd.service

Start Node

sudo systemctl start availd.service

Check Node Status

sudo systemctl status availd.service

Check Logs

journalctl -f -u availd.service

Stake Tokens

Create 2 accounts stash and controller on https://kate.avail.tools/ Contact Avail Team for funds Keep most of your funds in the stash account since it is meant to be the custodian of your staking funds, and have just enough funds in the controller account to pay for fees. Make sure not to bond all your AVL balance since you will be unable to pay transaction fees from your bonded balance.

Go To Staking Tab

Click on stash as shown in picture staking-bond-1

Sign and Submit after entering the details staking-bond-2

wait for the node to sync

Set Session Key

Once your node is synced

Generate Session key

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

Submit Session Key

Go to Network → Staking again, Ensure you are on Account actions, and enter session key staking-bond-3

Validate

Click on Validate button and Validate start-validating

Selection

To verify that your node is ready for possible selection at the end of the next era , navigate to Network → Staking and select Waiting. Your account should be shown there. A new validator set is selected every era, based on the staking amount.

Congratulations! you have done all the possible steps to become a validator.

About

How To Run an Avail Validator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published