sudo apt update
sudo apt install make clang pkg-config libssl-dev build-essential
cd ..
sudo mkdir /root/avail-node/
cd /root/avail-node/
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
tar xvzf data-avail-linux-amd64.tar.gz
NOT: molla202 yazan kısmı değiştiriniz explorerdeki görünen isminiz...
sudo tee /etc/systemd/system/availd.service > /dev/null <<'EOF'
[Unit]
Description=Avail Validator
After=network.target
StartLimitIntervalSec=0
[Service]
User=root
Type=simple
Restart=always
RestartSec=120
ExecStart=/root/avail-node/data-avail-linux-amd64 --base-path /root/avail-node/data --chain /root/avail-node/chainspec.raw.json --port 30333 --validator --name "molla202"
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable availd.service
sudo systemctl restart availd.service
sudo systemctl status availd.service
journalctl -f -u availd.service
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933