Back to all services Back to all services
Avail logo

Avail

chainID: Avail DA Mainnet MAINNET

Node Install

Guide to Set Up an Avail Node (Mainnet)

System Requirements

Component Minimum Recommended
RAM 8 GB 16 GB
CPU (amd64/x86 architecture) 4 cores 8 cores
Storage (SSD) 20-40 GB 200-300 GB

Installation and Configuration

1. Download and extract Avail binary:

mkdir avail
cd avail
wget https://github.com/availproject/avail/releases/download/v2.2.5.0/x86_64-ubuntu-2204-avail-node.tar.gz
tar xvzf x86_64-ubuntu-2204-avail-node.tar.gz
mkdir node-data

2. Create systemd service for RPC node:

sudo tee /etc/systemd/system/availd.service > /dev/null <<EOF
[Unit]
Description=Avail Node
[Service]
Type=simple
ExecStart=/home/cumvelia2/avail/avail-node -d /home/cumvelia2/avail/node-data --chain mainnet --name CumuloRPC --rpc-cors=all --rpc-external --pruning archive
Restart=always
RestartSec=3
LimitNOFILE=65535
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=avail-node
[Install]
WantedBy=multi-user.target
EOF

3. Start the RPC node service:

sudo systemctl daemon-reload
sudo systemctl enable availd
sudo systemctl start availd
sudo journalctl -f -u availd.service

4. Check RPC status:

systemctl status availd

5. Create systemd service for Validator node:

sudo tee /etc/systemd/system/availd.service > /dev/null <<EOF
[Unit]
Description=Avail Node
[Service]
Type=simple
ExecStart=/home/arixcum12/avail/avail-node -d /home/arixcum12/avail/node-data --chain mainnet --name CumuloBack --validator
Restart=always
RestartSec=3
LimitNOFILE=65535
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=avail-node
[Install]
WantedBy=multi-user.target
EOF

6. Restart validator node:

sudo systemctl restart availd.service
sudo journalctl -f -u availd.service

7. Rotate validator keys:

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

8. Sample response:

{"jsonrpc":"2.0","result":"0x861cf65dae85997a4f600935e9505459...","id":1}

9. Local node identity example:

12D3KooWGd6o2Wd42Pqc5MYN5tdCqQsjUmLxqWxqNM6CYMKaD1aT