# Hedge

Website: <https://hedgeblock.io/>

Twitter: <https://twitter.com/hedgeblockio>

Discord: <https://discord.gg/fxmUNYTayQ>

Explorer: <https://berberis.hedgescan.io/>

## **1. Minimum hardware requirement**

2 Cores, 4G Ram,  80G SSD, Ubuntu 22.04

## 2. Auto Install

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

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

### 2.1 Wallet

Add New Wallet Key - **Save seed**

```
hedged keys add wallet
```

Recover existing key

```
hedged keys add wallet --recover
```

List All Keys

```
hedged keys list
```

### 2.2 Query Wallet Balance

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

### 2.3 Check sync status

<mark style="color:red;">**False is synced**</mark>

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

### 2.4 Create Validator

Change your info "XXXXXX"

```
hedged tx staking create-validator \
--amount 1000000uhedge \
--pubkey $(hedged tendermint show-validator) \
--chain-id berberis-1 \
--min-self-delegation 1 \
--commission-max-change-rate 0.01 \
--commission-max-rate 0.2 \
--commission-rate 0.05 \
--moniker "XXXXXX" \
--identity "XXXXXX" \
--details "XXXXXX" \
--website "XXXXXX" \
--security-contact "XXXXXX" \
--gas-prices="0.025uhedge" \
--gas="auto" \
--gas-adjustment="1.5" \
--from "wallet"
```

### 2.5 Edit Existing Validator&#x20;

Change your info "XXXXXX"

```
hedged tx staking edit-validator \
--chain-id berberis-1 \
--new-moniker "XXXXXX" \
--identity "XXXXXX" \
--details "XXXXXX" \
--website "XXXXXX" \
--security-contact "XXXXXX" \
--gas-prices="0.025uhedge" \
--gas="auto" \
--gas-adjustment="1.5" \
--from wallet
```

### 2.6 Delegate Token to your own validator

```
hedged tx staking delegate $(hedged keys show wallet --bech val -a) 1000000uhedge --from wallet --chain-id berberis-1 --gas-prices=0.005uhedge  --gas-adjustment 1.5 --gas auto -y
```

### 2.7 Withdraw rewards and commission from your validator

```
hedged tx distribution withdraw-rewards $(hedged keys show wallet --bech val -a) --from wallet --commission --chain-id berberis-1 --gas-prices=0.005uhedge  --gas-adjustment 1.5 --gas auto -y
```

### 2.8 Unjail validator

```
hedged tx slashing unjail --from wallet --chain-id berberis-1 --gas-prices=0.005uhedge  --gas-adjustment 1.5 --gas auto -y
```

### 2.9 Services Management

```
# Reload Service
sudo systemctl daemon-reload

# Enable Service
sudo systemctl enable hedged

# Disable Service
sudo systemctl disable hedged

# Start Service
sudo systemctl start hedged

# Stop Service
sudo systemctl stop hedged

# Restart Service
sudo systemctl restart hedged

# Check Service Status
sudo systemctl status hedged

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

## 3. Backup Validator

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

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

## 4. Remove node

```
sudo systemctl stop hedged && sudo systemctl disable hedged && sudo rm /etc/systemd/system/hedged.service && sudo systemctl daemon-reload && rm -rf $HOME/.hedge && rm -rf hedge
```


---

# 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/hedge.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.
