💾Node Installation

Avail Mainnet guide

  • Minimum hardware requirements:

Node Type
CPU
RAM
Storage

Mainnet

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 28.08.24

cd $HOME
mkdir -p $HOME/.avail_mainnet && cd $HOME/.avail_mainnet
chmod 755 $HOME/.avail_mainnet
wget https://github.com/availproject/avail/releases/download/v2.2.5.0/x86_64-ubuntu-2204-avail-node.tar.gz
tar -xvf x86_64-ubuntu-2204-avail-node.tar.gz
mv avail-node /usr/bin/avail
rm -rf x86_64-ubuntu-2204-avail-node.tar.gz

avail --version

  • avail 2.2.0-a6600ea38c9

Create a service file

yourname=<name>
tee /etc/systemd/system/avail.service > /dev/null << EOF
[Unit]
Description=Avail mainnet
After=network-online.target
StartLimitIntervalSec=0
[Service]
User=$USER
Restart=always
RestartSec=3
LimitNOFILE=65535
ExecStart=/usr/bin/avail \
  --base-path $HOME/.avail_mainnet/data/ \
  --chain mainnet \
  --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

SOOON

Monitoring

You can set up your node status alarm here - Monitoring

Security

You can create secure management of your wallet and your node by following this links.

TMKMS Wallet Security

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 .avail_mainnet

Last updated