Nodes

guruGuru
search

KYVE - Setup Guide

Back to projectRU
Stuck? AsktelegramNodes Guru telegram community

Rent on

1. Preparation

We will need:

Install them, then continue with the instructions.

2. Moonbase Alpha

In Metamask, connect to the Moonbase Alpha network by going here, click Connect MetaMask, then click Connect to Moonbase Alpha:

Kyve-1

3. ArConnect

In ArConnect you need to create a wallet and get a JSON file from it, to do this follow the screenshots:

Kyve-2

Kyve-3

Be sure to save the mnemonics (in the red frame) and click Download – this button will download the JSON file we need:

Kyve-4

Kyve-5

4. Faucet

Go to the faucet and request tokens. To do this, follow the steps in the screenshots:

Kyve-6

Kyve-7

Click the Share on Twitter button and paste the link to your tweet in the bottom input field:

Kyve-8

After a while you should have 0.01 $DEV and 1000 $KYVE ($KYVE token contract – 0x843C7378309DD8CD82C5013FAb63B6Ea86770433) on your Metamask wallet (connected to Moonbase Alpha network).

5. Install

First, install Docker and Yarn by running the following commands:

sudo apt update
curl https://deb.nodesource.com/setup_16.x | sudo bash
sudo apt install -y nodejs gcc g++ make git < "/dev/null"
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh

To install, run the following commands (you can just copy and paste the selected fragment into the console):

cd $HOME
git clone https://github.com/KYVENetwork/kyve.git
cd kyve
yarn setup
cd $HOME/kyve/integrations/node
echo "{
"pools": {
"0xbBBfbE9A731634eDdf84C67A106CEE1F981F3f7e": 10
}
}" > config.json

Now we need to transfer the contents of the JSON key file from ArConnect (which we saved in step 3) to the arweave.json file located at $HOME/kyve/integrations/node, you can use the command to do this:

nano $HOME/kyve/integrations/node/arweave.json

And paste the contents of your saved key file into the arweave.json file. To paste the data from the clipboard into the console press Shift + Insert, and to save the file press Ctrl + X, then Y, then Enter.

Now we need to create a .env file and fill it out by running the command (add the private key from your wallet with tokens $DEV and $KYVE to the PK line):

echo "CONFIG=config.json
WALLET=arweave.json
PK=YOUR_PRIVATE_KEY_FROM_METAMASK
SEND_STATISTICS=true
MAINTAINER=YOUR_EMAIL
NAME=YOUR_NODE_NAME" > $HOME/kyve/integrations/node/.env

MAINTAINER and NAME fields are optional.

6. Start

When everything is ready, run the node with the command:

cd $HOME/kyve/integrations/node
docker create --name kyve-node --restart=always kyve-node:latest
docker start kyve-node

Check the logs:

docker logs kyve-node -f --tail=50

Should looks like that:

Kyve-9

If you have changed something in the .env file, you can restart the docker container with the following commands:

docker stop kyve-node
docker rm kyve-node
docker create --name kyve-node --restart=always kyve-node:latest
docker start kyve-node