# Installation

| Hardware | Minimum requirement |
| -------- | ------------------- |
| CPU      | 4                   |
| RAM      | 8+ GB               |
| Storage  | 200 GB SSD          |

### Setup validator name <a href="#setup-validator-name" id="setup-validator-name"></a>

```
MONIKER="YOUR_MONIKER_GOES_HERE"
```

#### Install dependencies <a href="#install-dependencies" id="install-dependencies"></a>

```
sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y
```

#### **INSTALL GO** <a href="#install-go" id="install-go"></a>

```
rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.20.5.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version
```

#### Install Node <a href="#install-node" id="install-node"></a>

```
cd $HOME

rm -rf axelar-core

git clone https://github.com/axelarnetwork/axelar-core.git

cd axelar-core

# make sure your checkout latest version , check on github before checkout
git checkout v0.35.6

make build

cp bin/axelard /usr/local/bin/axelard
```

### **Initialize Node** <a href="#initialize-node" id="initialize-node"></a>

```
axelard init "$MONIKER" --chain-id=axelar-testnet-lisbon-3
```

#### Download genesis and addrbook <a href="#download-genesis-and-addrbook" id="download-genesis-and-addrbook"></a>

```
wget -O $HOME/.axelar/config/genesis.json https://testnet-files.suntzu.dev/download/testnet/axelar/genesis.json 
```

```
wget -O $HOME/.axelar/config/addrbook.json https://testnet-files.suntzu.dev/download/testnet/axelar/addrbook.json 
```

#### **Change port** <a href="#create-service" id="create-service"></a>

```
CUSTOM_PORT=114
sed -i.bak -e "s%:1317%:${CUSTOM_PORT}17%g;
s%:8080%:${CUSTOM_PORT}80%g;
s%:9090%:${CUSTOM_PORT}90%g;
s%:9091%:${CUSTOM_PORT}91%g;
s%:8545%:${CUSTOM_PORT}45%g;
s%:8546%:${CUSTOM_PORT}46%g;
s%:6065%:${CUSTOM_PORT}65%g" $HOME/.axelar/config/app.toml

# set custom ports in config.toml file
sed -i.bak -e "s%:26658%:${CUSTOM_PORT}58%g;
s%:26657%:${CUSTOM_PORT}57%g;
s%:6060%:${CUSTOM_PORT}60%g;
s%:26656%:${CUSTOM_PORT}56%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${CUSTOM_PORT}56\"%;
s%:26660%:${CUSTOM_PORT}60%g" $HOME/.axelar/config/config.toml
```

#### **Create Service** <a href="#create-service" id="create-service"></a>

```
sudo tee /etc/systemd/system/axelard.service > /dev/null <<EOF
[Unit]
Description=axelard Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which axelard) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable axelard
```

#### **Download Snapshot** <a href="#download-snapshot" id="download-snapshot"></a>

```
axelard tendermint unsafe-reset-all --home $HOME/.axelar --keep-addr-book 
curl https://testnet-files.suntzu.dev/download/testnet/axelar/axelar-snapshot.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.axelar
```

#### Start the node <a href="#start-the-node" id="start-the-node"></a>

```
sudo systemctl restart axelard
journalctl -u axelard -f
```


---

# Agent Instructions: 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://services.suntzu.dev/testnet/axelar/installation.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.
