# Galactica Network

Website: <https://galactica.com/>

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

Discord: <https://discord.com/invite/galactica>

Faucet: [<mark style="color:red;">**https://faucet-reticulum.galactica.com/**</mark>](https://faucet-reticulum.galactica.com/)

Explorer: [<mark style="color:red;">**https://explorer.nodesync.top/Galactica-Testnet/staking**</mark>](https://explorer.nodesync.top/Galactica-Testnet/staking)

## **1. Minimum hardware requirement**

4 Cores, 16G Ram,  500G SSD NVMe SSDs , Ubuntu 22.04

## 2. Auto Install

```
if ! which wget; then sudo apt install wget -y; fi && rm -rf $HOME/galactica_auto && wget https://nodesync.top/galactica_auto && chmod +x galactica_auto && ./galactica_auto
```

### 2.1 Wallet

Add New Wallet Key - **Save seed**

```
galacticad keys add wallet
```

Recover existing key

```
galacticad keys add wallet --recover
```

List All Keys

```
galacticad keys list
```

Get Wallet Hex (<mark style="color:red;">**your wallet address in eth format: 0x....**</mark>)

```
galacticad keys convert-bech32-to-hex $(galacticad keys show wallet -a)
```

### 2.2 Query Wallet Balance

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

### 2.3 Check sync status

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

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

### 2.4 Create Validator

Change your info "xxx"

```
galacticad tx staking create-validator \
--amount 9000000000000000000agnet \
--from wallet \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(galacticad tendermint show-validator) \
--moniker "xxx" \
--identity "xxx" \
--details "xxx" \
--website "xxx" \
--security-contact "email@xxx" \
--chain-id galactica_9302-1 \
--gas 200000 \
--gas-prices 10agnet \
-y
```

### 2.5 Edit Existing Validator&#x20;

Change your info "xxx"

```
galacticad tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "xxx" \
--identity "xxx" \
--details "I love blockchain ❤️" \
--from wallet \
--chain-id galactica_9302-1 \
--gas 200000 \
--gas-prices 10agnet \
-y
```

### 2.6 Delegate Token to your own validator

```
galacticad tx staking delegate $(galacticad keys show wallet --bech val -a) 1000000000000000000agnet --from wallet --chain-id galactica_9302-1 --gas 200000 --gas-prices 10agnet  -y
```

### 2.7 Withdraw rewards and commission from your validator

```
galacticad tx distribution withdraw-rewards $(galacticad keys show wallet --bech val -a) --from wallet --commission --chain-id galactica_9302-1 --gas 200000 --gas-prices 10agnet -y
```

### 2.8 Unjail validator

```
galacticad tx slashing unjail --from wallet --chain-id galactica_9302-1 --gas 200000 --gas-prices 10agnet -y
```

### 2.9 Services Management

```
# Reload Service
sudo systemctl daemon-reload

# Enable Service
sudo systemctl enable galacticad

# Disable Service
sudo systemctl disable galacticad

# Start Service
sudo systemctl start galacticad

# Stop Service
sudo systemctl stop galacticad

# Restart Service
sudo systemctl restart galacticad

# Check Service Status
sudo systemctl status galacticad

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

## 3. Backup Validator

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

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

## 4. Remove node

```
cd $HOME
sudo systemctl stop galacticad
sudo systemctl disable galacticad
rm -rf /etc/systemd/system/galacticad.service
rm -rf .galactica
rm -rf galactica
rm -rf galactica_auto
rm -rf $(which galacticad)
```
