# Union

Discord: <https://discord.gg/union-build>

X: <https://twitter.com/union_build/>

## **Minimum hardware requirement**

4 Cores, 8G Ram, 200G SSD, Ubuntu 22.04

## 1. Auto Install&#x20;

```
sudo apt install curl && source <(curl -s https://nodesync.top/union_auto)
```

Form now: <https://7xv16fh3twz.typeform.com/to/eYTMvi11>

You need: **Wallet address** and **Validator address**

## 2. Cheat Sheet

### Wallet

**Add new key**

```
uniond keys add wallet
```

Recover existing key

```
uniond keys add wallet --recover
```

Query Wallet Balance

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

**Validator Address**

```
uniond keys show wallet --bech val -a
```

### Validator Management

#### Create Validator

Change your info:

\--moniker "**MONIKER**"\
\--identity="**YOUR\_KEYBASE\_ID**"\
\--details="**YOUR\_DETAILS**"\
\--website="**YOUR\_WEBSITE\_URL**" \\

```
uniond tx staking create-validator \
--amount 1000000muno \
--pubkey $(uniond tendermint show-validator) \
--moniker "MONIKER" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id union-testnet-4 \
--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 0muno \
-y

```

#### Edit Validator

```
uniond tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id union-testnet-4 \
--commission-rate 0.05 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0muno \
-y
```

#### Unjail Validator

```
uniond tx slashing unjail --from wallet --chain-id union-testnet-4 --gas-adjustment 1.4 --gas auto --gas-prices 0muno -y
```

#### Withdraw rewards from all validators

```
uniond tx distribution withdraw-all-rewards --from wallet --chain-id union-testnet-4 --gas-adjustment 1.4 --gas auto --gas-prices 0muno -y
```

#### Withdraw comission and rewards from your validator

```
uniond tx distribution withdraw-rewards $(uniond keys show wallet --bech val -a) --commission --from wallet --chain-id union-testnet-4 --gas-adjustment 1.4 --gas auto --gas-prices 0muno -y
```

#### Delegate to your validator

```
uniond tx staking delegate $(uniond keys show wallet --bech val -a) 1000000muno --from wallet --chain-id union-testnet-4 --gas-adjustment 1.4 --gas auto --gas-prices 0muno -y
```

#### Get sync status

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

### Services Management

```
# Reload Service
sudo systemctl daemon-reload

# Enable Service
sudo systemctl enable uniond

# Disable Service
sudo systemctl disable uniond

# Start Service
sudo systemctl start uniond

# Stop Service
sudo systemctl stop uniond

# Restart Service
sudo systemctl restart uniond

# Check Service Status
sudo systemctl status uniond

# Check Service Logs
sudo journalctl -u uniond -f --no-hostname -o cat
```

## 3. Backup Validator

<mark style="color:red;">**Important**</mark>

```
cat $HOME/.union/config/priv_validator_key.json
```

Save all them (file json)

## 4. Delete Node

```
cd $HOME
sudo systemctl stop uniond.service
sudo systemctl disable uniond.service
sudo rm /etc/systemd/system/uniond.service
sudo systemctl daemon-reload
rm -f $(which uniond)
rm -rf $HOME/.union

```


---

# 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.nodesync.top/cosmos-testnet/union.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.
