> For the complete documentation index, see [llms.txt](https://docs.validator247.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.validator247.com/mainnet/arch-way.md).

# Arch way

**Install the Validator**

Make sure you have the latest Go build and system components installed

Install Node

```
cd $HOME
rm -rf archway
git clone https://github.com/archway-network/archway.git
cd archway
git checkout v4.0.2
make install
archwayd version
```

Initialize Node

```
archwayd init NodeName --chain-id=archway-1
```

Download Genesis

```
curl -Ls https://ss.archway.nodestake.top/genesis.json > $HOME/.archway/config/genesis.json 
```

Download addrbook

```
curl -Ls https://ss.archway.nodestake.top/addrbook.json > $HOME/.archway/config/addrbook.json
```

Create Service

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

Download Snapshot

```
SNAP_NAME=$(curl -s https://ss.archway.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss.archway.nodestake.top/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.archway
```

Launch Node

```
sudo systemctl restart archwayd
journalctl -u archwayd -f - cat
```

Get Sync Status

```
archwayd status 2>&1 | jq .SyncInfo.catching_up
```

## Add New Key & Create a validator

Add New Key

```
archwayd keys add wallet
```

Recover Existing Key

```
archwayd keys add wallet --recover
```

Query Wallet Balance

```
archwayd q bank balances $(archwayd keys show wallet -a)
```

Create a validator

```
archwayd tx staking create-validator \
--amount 500000000000aarch \
--pubkey $(archwayd tendermint show-validator) \
--moniker "Name" \
--chain-id archway-1 \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from=wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 1000000000000aarch \
-y
```

## Command

Unjail Validator

```
archwayd tx staking delegate $(archwayd keys show wallet --bech val -a) 1000000000000aarch --from wallet --chain-id archway-1 --gas-prices 1000000000000aarch --gas-adjustment 1.5 --gas auto -y
```

Delegate to yourself

```
archwayd tx staking delegate $(archwayd keys show wallet --bech val -a) 1000000000000aarch --from wallet --chain-id archway-1 --gas-prices 1000000000000aarch --gas-adjustment 1.5 --gas auto -y
```

Reload systemd

```
sudo systemctl daemon-reload
sudo systemctl enable archwayd 
sudo systemctl restart archwayd && journalctl -u archwayd -f --no-hostname -o cat
```


---

# 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://docs.validator247.com/mainnet/arch-way.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.
