---
description: 'Chain ID: kyve-1 | Node Version: v2.1.0 | Custom Port: 164'
---

# ⚙️  Installation

Recommended Hardware:

<table><thead><tr><th>Node Type</th><th width="184">CPU</th><th>RAM</th><th>Storage</th></tr></thead><tbody><tr><td>Mainnet</td><td>8</td><td>16GB</td><td><p></p><p>250GB </p></td></tr></tbody></table>



_**Install dependencies**_

```bash
# Update the repositories
sudo apt update && sudo apt upgrade -y
```

```bash
# Install developer packages
sudo apt install -y curl git jq lz4 build-essential
```

```bash
# Install Go
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.23.6.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)
echo "export PATH=$PATH:/usr/local/go/bin:/usr/local/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version

# go version go1.23.0 linux/amd64
```



## _**Automatic Installation**_

```bash
source <(curl -s https://raw.githubusercontent.com/validexisinfra/Kyve/main/installmain.sh)
```



## _**Manual Installation**_

```bash
# Come up with the name of your node and replace it instead <your_moniker>
MONIKER=<your_moniker>
```

```bash
# Download binary files
cd $HOME && mkdir -p go/bin/
wget -O kyved https://github.com/KYVENetwork/chain/releases/download/v2.1.0/kyved_mainnet_linux_amd64
chmod +x kyved
sudo mv kyved $HOME/go/bin/kyved

kyved version
```

```bash
# Set node configuration
kyved config set client chain-id kyve-1
kyved config set client keyring-backend file
kyved config set client node tcp://localhost:26657

# Initialize the node
kyved init $MONIKER --chain-id=kyve-1
```

```bash
# Download genesis and addrbook
wget -L -O $HOME/.kyve/config/genesis.json https://server-1.stavr.tech/Mainnet/Kyve/genesis.json
wget -O $HOME/.kyve/config/addrbook.json "https://server-1.stavr.tech/Mainnet/Kyve/addrbook.json"
```



_**Setup config**_

```bash
# Set seeds and peers
sed -i -e "s/^filter_peers *=.*/filter_peers = \"true\"/" $HOME/.kyve/config/config.toml
external_address=$(wget -qO- eth0.me) 
sed -i.bak -e "s/^external_address *=.*/external_address = \"$external_address:26656\"/" $HOME/.kyve/config/config.toml
peers=""
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.kyve/config/config.toml
seeds=""

# Set minimum gas price, enable prometheus and disable indexing
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0ukyve\"/;" ~/.kyve/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.kyve/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.kyve/config/config.toml

# Config pruning
pruning="custom"
pruning_keep_recent="1000"
pruning_keep_every="0"
pruning_interval="10"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.kyve/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.kyve/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.kyve/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.kyve/config/app.toml
```

#### _**Set custom ports**_

You can change value CUSTOM\_PORT=164 To any other ports

```bash
CUSTOM_PORT=164
```

```bash
sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}58\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}57\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}60\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}56\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}66\"%" $HOME/.kyve/config/config.toml
sed -i -e "s%^address = \"tcp://localhost:1317\"%address = \"tcp://localhost:${CUSTOM_PORT}17\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}80\"%; s%^address = \"localhost:9090\"%address = \"localhost:${CUSTOM_PORT}90\"%; s%^address = \"localhost:9091\"%address = \"localhost:${CUSTOM_PORT}91\"%; s%^address = \"0.0.0.0:8545\"%address = \"0.0.0.0:${CUSTOM_PORT}45\"%; s%^ws-address = \"0.0.0.0:8546\"%ws-address = \"0.0.0.0:${CUSTOM_PORT}46\"%" $HOME/.kyve/config/app.toml
```

```bash
#Set config with new custom port
kyved config set client node tcp://localhost:${CUSTOM_PORT}57
```

```bash
# Create service file
sudo tee /etc/systemd/system/kyved.service > /dev/null <<EOF
[Unit]
Description=kyve
After=network-online.target

[Service]
User=$USER
ExecStart=$(which kyved) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF
```

```bash
# Download latest chain snapshot
LATEST_SNAPSHOT=$(curl -s https://server-1.stavr.tech/Mainnet/Kyve/ | grep -oE 'kyve-snap-[0-9]+\.tar\.lz4' | while read SNAPSHOT; do HEIGHT=$(curl -s "https://server-1.stavr.tech/Mainnet/Kyve/${SNAPSHOT%.tar.lz4}-info.txt" | awk '/Block height:/ {print $3}'); echo "$SNAPSHOT $HEIGHT"; done | sort -k2 -nr | head -n 1 | awk '{print $1}')
curl -o - -L https://server-1.stavr.tech/Mainnet/Kyve/$LATEST_SNAPSHOT | lz4 -c -d - | tar -x -C $HOME/.kyve
```

```bash
# Enable and start service
sudo systemctl daemon-reload
sudo systemctl enable kyved
sudo systemctl restart kyved && sudo journalctl -u kyved -fo cat
```

```bash
# Check status
kyved status 2>&1 | jq

#"catching_up": false means that the node is synchronized, we are waiting for complete synchronization
```

_**Wallets**_

```bash
# Create wallet
kyved keys add wallet
```

The wallet has been created. In the last line there will be a phrase that must be written down

```bash
# If the wallet was already there, restore it
kyved keys add wallet --recover

# Insert the seed phrase from your wallet
# If everything is correct, you will see your wallet data
```

_**Validator**_

Do not forget to create a profile on https://keybase.io/ and set a profile photo there that will be imported by key and used for your validators.

```bash
kyved tx staking create-validator \
--amount 10000000000ukyve \
--pubkey=$(kyved tendermint show-validator) \
--moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id kyve-1 \
--commission-rate="0.10" \
--commission-max-rate="0.2" \
--commission-max-change-rate="0.05" \
--min-self-delegation="1" \
--from wallet \
--fees 5000unibi \
-y
```

**!!! Save priv\_validator\_key.json which is located in /root/.kyve/config**
