# KYVE Protocol Node - Beta Network with Kysor

By [GLCstaked](https://paragraph.com/@glcstaked) · 2022-09-13

---

### this guide is now deprecated (as is the Beta network) to run a protocol node see the following

[https://mirror.xyz/0xf3bF9DDbA413825E5DdF92D15b09C2AbD8d190dd/Vab7jT5DR4-YrmhfKTjLmM28WIRfy8vNbAsyhRDTQJ4](https://mirror.xyz/0xf3bF9DDbA413825E5DdF92D15b09C2AbD8d190dd/Vab7jT5DR4-YrmhfKTjLmM28WIRfy8vNbAsyhRDTQJ4)

_Authors: @GLCstaked, @alijprof_

A first version of the new app can be found here. Please keep in mind that this update is still in development/testing.

[https://kyve-beta.netlify.app/#/](https://kyve-beta.netlify.app/#/)

This guide is intended for those running a protocol node on Korellia now and wish to test out the Beta network before the next testnet. Here we are joining `pool 0` the Moonbeam pool, you can substitute this for other pools.

Kysor will auto download the binaries for the selected pool for you, you simply need to create the valaccounts for the pool and set up a service for kysor to run on that pool in the background.

**Running nodes with KYSOR has the following benefits:**

*   Only use **one** program to run on **every** pool
    
*   Not installing and compiling protocol binaries **manually** for every pool
    
*   Getting the new upgrade binaries during a pool upgrade **automatically** and therefore **don't risk timeout slashes**
    
*   Make running protocol nodes **standardized** and **easier**
    

Connect to beta network
-----------------------

A first version of the new app can be found here: [https://kyve-beta.netlify.app/#/](https://kyve-beta.netlify.app/#/) This will prompt you to connect `Keplr extention` and allow the new network request. This is two confirmations which you should approve.

Set up Device
-------------

**Update the system**

    sudo apt update && sudo apt upgrade -y
    

**Move Arweave keyfile into directory**

We need to move our `arweave.json` (which should be funded with AR) into a directory in our system, I’ve placed it here `/home/<user>/kyve/secrets` as I’m running local I just used the UI. _note you can place it wherever you want, but be sure to change the path in the system service file later._

if your on a VPS you could create the file and paste the contents in by `sudo nano home/ubuntu/kyve/secrets/arweave.json`

**Download the Kysor Protocol node binary**

this is the KYSOR binary which uses one program for every pool, it auto updates and gets the new upgrade binaries during every pool upgrade.

    wget https://kyve-beta.s3.eu-central-1.amazonaws.com/kysor/kysor-linux-x64.zip
    

![](https://storage.googleapis.com/papyrus_images/5af8015ff3d654eb5ea7b6a665093422d41deb11afaf6d74cc41d48feb8bdae9.png)

**Move to directory**

unzip and move, you should delete the zip file once done, it can be found in your home directory

    unzip kysor-linux-x64.zip
    mv kysor-linux-x64 kysor
    

**Grant permissions and make executable**

     sudo chmod +x kysor
    

**Initialize Kysor**

When you initialise KYSOR you need to specify the network you should run on and if the KYSOR should automatically download and execute the binaries for you. This command creates a `config.toml` under the following directory: `$HOME/.kysor/`. You can edit this file if you wish to change the network or the auto download flag.

    ./kysor init --network beta --auto-download-binaries
    

![](https://storage.googleapis.com/papyrus_images/6b3ce02f41d4c3ceadae9b67dc4a813c50cc67294f678425a27e455cd2fdeeb0.png)

**Create validator account**

we are creating a validator account, this is a new account that we will fund with our main account that contains our KYVE

    ./kysor valaccounts create \
    --name moonbeam \
    --pool 0 \
    --storage-priv "$(cat kyve/secrets/arweave.json)" \
    --verbose \
    --metrics
    

**Start the Node**

    ./kysor start --valaccount moonbeam
    

![](https://storage.googleapis.com/papyrus_images/207b94257fb735d70f8079aeff2eb0c4c6c175a3fc9a313a2650ee7ea46a1063.png)

The node will not continue until the account is authorized and funded. but first its advised to create a system service for the node, in order to run in the background. you can stop the node with `ctrl+c` or start a new shell

**Create system service to run the node**

    sudo tee <<EOF > /dev/null /etc/systemd/system/moonbeamd.service
    [Unit]
    Description=KYVE Protocol-Node moonbeam daemon
    After=network-online.target
    
    [Service]
    User=$USER
    ExecStart=/home/$USER/kysor start --valaccount moonbeam
    Restart=on-failure
    RestartSec=3
    LimitNOFILE=infinity
    EOF
    

**Start the system service**

    sudo systemctl daemon-reload && \
    sudo systemctl enable moonbeamd && \
    sudo systemctl start moonbeamd
    

**View Logs**

    sudo journalctl -u moonbeamd -f -o cat
    

![](https://storage.googleapis.com/papyrus_images/6d85ede081a69b4e6811b86bc01b886e6235b44cb7bf1c9c3afb3e140bbeea59.png)

This will display your `Valaddress`and a `Valname`: this is a three letter phrase unique to your node. We need both of these to start the node. The node will not continue until the account is authorized and funded.

Authorize Validator
-------------------

You will now need to activate the node head over to the beta app and connect your Keplr wallet extension.

[https://kyve-beta.netlify.app/#/](https://kyve-beta.netlify.app/#/)

**Self Delegate**

If you have not done so already, we need to delegate KYVE to our main account which will fund our valaccount/s. Head to `Validators` and find `Become a Validator`

![](https://storage.googleapis.com/papyrus_images/08a77e88045585b8c54d7e5d14ef2392f7154559e0184816fc9c99660636f6bf.png)

Enter an amount to delegate to yourself and click on `self delegate “ammount“ $KYVE` you will be prompted to confirm a transaction via Keplr extension

**Fund Valaccount**

Now head to `User` (Left) and click on your address below, now click on `Join Existing Pool.` here enter your Pool (which should be the same as the Pool specified in the system.service) Your `Valaddress`, and your `Valname` enter an amount of $KYVE less than what you delegated to yourself earlier.

![Confirm the Transaction on Keplr](https://storage.googleapis.com/papyrus_images/a43ea27bcf103548032ddb7e2fc62719a90df772e0e7290c1029980f9dff97d3.png)

Confirm the Transaction on Keplr

you should now see your Validator active on the App and in your logs on your device

![](https://storage.googleapis.com/papyrus_images/e45d5601e99497d35320f0721a63c2b762ac0a914f9fa0cbd1f4c4c0e5f9c56a.png)

![Running successfully should show validating on bundles](https://storage.googleapis.com/papyrus_images/0acc5bb5b4d231fc01ba63144cb9c57a6bcfd92cbaf4a24bca23466fbaa6a087.png)

Running successfully should show validating on bundles

Run on Multiple Pools
---------------------

If we wish to run on multiple pools, we can select from the beta app, head over to Pools section and select which pool you want to add. we need to get the `pool ID`

![](https://storage.googleapis.com/papyrus_images/3ab716535f63275b1373f1d63769e5dfc2c9dad4d7d78cf48d64db6f86947d2e.png)

**Create a new Valaccount**

Create New account for Celo, our pool ID will be `2`, and for ease we will name `celo`

    ./kysor valaccounts create \
    --name celo \
    --pool 2 \
    --storage-priv "$(cat kyve/secrets/arweave.json)" \
    --verbose \
    --metrics
    

**Change Port for new service**

On default the metrics server is available under the following endpoint: `http://localhost:8080/metrics` so we need to change the port for the new pool service, as moonbeam is on `8080`, I used `8081.`

    sudo nano /home/$USER/.kysor/valaccounts/celo.toml
    

_If you choose another pool such as avalanche, you would need to edit the_ `avalanche.toml`

**Create a System Service for New Pool**

    sudo tee <<EOF > /dev/null /etc/systemd/system/celod.service
    [Unit]
    Description=KYVE Protocol-Node celo daemon
    After=network-online.target
    
    [Service]
    User=$USER
    ExecStart=/home/$USER/kysor start --valaccount celo
    Restart=on-failure
    RestartSec=3
    LimitNOFILE=infinity
    EOF
    

**Start new service**

    sudo systemctl daemon-reload && \
    sudo systemctl enable celod && \
    sudo systemctl start celod
    

**Fund account**

Follow the same steps to authorize validator, and use the `valaccount` and `valname` that is displayed when starting the service.

We can create a new service for any available pool by following the same steps.

Other commands
--------------

**Stopping/Restarting your Service for changes**

    sudo systemctl stop <service name>.service
    

Make changes then restart service

    sudo systemctl daemon-reload && sudo systemctl enable <service name>.service && sudo systemctl restart <service name>.service

---

*Originally published on [GLCstaked](https://paragraph.com/@glcstaked/kyve-protocol-node-beta-network-with-kysor)*
