> For the complete documentation index, see [llms.txt](https://nodersua.gitbook.io/about-nodersua/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nodersua.gitbook.io/about-nodersua/archive/avail/installation-validator.md).

# Installation (Validator)

## ***Automatic Installation***

```bash
source <(curl -s https://raw.githubusercontent.com/NodersUA/Scripts/main/avail)
```

## ***Manual Installation***

```bash
# Update, upgrade and install requirements
sudo apt-get update && \
sudo apt-get upgrade -y
# Update or install rust
if command -v rustup &> /dev/null; then
    rustup update
else
    curl https://sh.rustup.rs -sSf | sh
    source $HOME/.cargo/env
fi
rustc --version
sudo apt-get install build-essential cmake clang pkg-config libssl-dev protobuf-compiler git-lfs g++ -y && \
cargo install sccache
```

```bash
cd $HOME
git clone https://github.com/availproject/avail
cd avail/
git checkout v1.8.0.4
cargo build --release -p data-avail
cp target/release/data-avail /usr/local/bin/avail
avail --version
```

```bash
# Open ports
ufw allow 45333
ufw allow 9944
```

```bash
# Enter your moniker
MONIKER=<your_moniker>
```

```bash
sudo bash -c "cat > /etc/systemd/system/availd.service" <<EOF
[Unit]
Description=Avail Validator
After=network.target
StartLimitIntervalSec=0

[Service]
User=$USER
Type=simple
Restart=always
RestartSec=120
ExecStart=$(which avail) \
  --base-path $HOME/.avail/data/ \
  --node-key-file "$HOME/.avail/node-key" \
  --port 45333 \
  --rpc-port 9945 \
  --chain goldberg \
  --validator \
  --name $MONIKER \
  --telemetry-url 'ws://telemetry.avail.tools:8001/submit/ 0'

[Install]
WantedBy=multi-user.target
EOF
```

```bash
systemctl daemon-reload
systemctl enable availd
systemctl restart availd && journalctl -u availd -f -o cat
```

Check your node in [telemetry](https://telemetry.avail.tools/#list/0x6f09966420b2608d1947ccfb0f2a362450d1fc7fd902c29b67c906eaa965a7ae)

<figure><img src="/files/ksbbKmrTsOMvCmN10Plk" alt=""><figcaption></figcaption></figure>

## Validator

* Create [polkadot.js](https://goldberg.avail.tools/#/accounts) account
* Join to [discord](https://discord.gg/6Uy9jK8r)&#x20;
* Go to [#goldberg-faucet](https://discord.com/channels/1065831819154563132/1171414018028740698) channel and send message with your address (5Cyi4FQ........) for request tokens

```bash
/deposit <address>
```

* Go to **Network - Staking - Accounts** and add stash<br>

  <figure><img src="/files/pdhQ7VClA6nSTiJPpfPD" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Th0H7wDGwpYhIYSyKpiM" alt=""><figcaption></figcaption></figure>

* Connect your stash account with your node<br>

  <figure><img src="/files/5AWx1waOQhW5yYMJ9NIQ" alt=""><figcaption></figcaption></figure>

```bash
# Check your session-key
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9945
```

Paste key from terminal to browser

<figure><img src="/files/ZQRiKz8AHKyGp7iOXBbP" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/xp1b8bWYdsiRvyBb7rXu" alt=""><figcaption></figcaption></figure>

Submit google [form](https://docs.google.com/forms/d/e/1FAIpQLScvgXjSUmwPpUxf1s-MR2C2o5V79TSoud1dLPKVgeLiLFuyGQ/viewform) and wait for the letter


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nodersua.gitbook.io/about-nodersua/archive/avail/installation-validator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
