💾Node Installation

Avail Testnet guide

  • Minimum hardware requirements:

Node TypeCPURAMStorage

Testnet

4

8GB

150GB

Preparing the server

sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y

GO 1.21.6

ver="1.21.6"
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version

Build 20.06.24

cd $HOME
wget https://github.com/availproject/avail/releases/download/v2.2.4.0-rc1/x86_64-ubuntu-2204-avail-node.tar.gz
tar xvzf x86_64-ubuntu-2204-avail-node.tar.gz
rm -rf x86_64-ubuntu-2204-avail-node.tar.gz
mv avail-node /usr/bin/avail

avail --version

  • avail 2.1.5-8abb4b46091

Create a service file

yourname=<name>
tee /etc/systemd/system/avail.service > /dev/null << EOF
[Unit]
Description=Avail Validator Node
After=network-online.target
StartLimitIntervalSec=0
[Service]
User=$USER
Restart=always
RestartSec=3
LimitNOFILE=65535
ExecStart=/usr/bin/avail \
  --base-path $HOME/.node-data/ \
  --chain turing \
  --port 40333 \
  --rpc-port 8933 \
  --prometheus-port 9615 \
  --validator \
  --name '$yourname'
[Install]
WantedBy=multi-user.target
EOF

Start

systemctl daemon-reload
systemctl enable avail
systemctl restart avail && journalctl -u avail -f -o cat
  • After launch, we wait for our node to synchronize. You can track our condition using telemetry

  • After the node has synchronized, we pull out the key from our node by entering the command

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

Creating a validator

  • Go to the website and first create a wallet

  • We create a validator. To do this, select Network - Staking - Accounts - Validator

SnapShot Testnet - updated every 12 hours

cd $HOME
apt install lz4
sudo systemctl stop avail
rm -rf $HOME/.node-data/chains/avail_turing_network/paritydb
curl -o - -L https://avail-t.snapshot.stavr.tech/avail-snap.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.node-data/chains/ --strip-components 4
systemctl restart avail && journalctl -fu avail -o cat

logs

journalctl -fu avail -o cat

restart

systemctl restart avail && journalctl -fu avail -o cat

delete node

systemctl stop avail
systemctl disable avail
rm /etc/systemd/system/avail.service
systemctl daemon-reload
cd && rm -rf .node-data

Last updated