# Running a zNode

Running a **zNode** allows users to actively secure the Rivalz network by verifying data integrity, and ensuring safe access to reliable, unaltered information. To run a zNode users are required to purchase a license.

## **1. Technical Requirements to run zNodes:**

Before installing ZNode, make sure your system meets the following requirements:

* Operating System: Ubuntu 20.04 LTS or higher, macOS, Windows 10 or higher.
* Memory: Minimum 2 GB of RAM \[Recommend 8 GB].
* Storage: Recommended 128GB of free disk space.
* CPU: Recommended 10th-generation Intel Core i3.
* Network: A stable internet connection.
* Dependencies: Node.js (v20.x or higher).

## 2. Installation

### &#x20; 2.1. Prerequisites

Make sure the following tools are installed before starting the ZNode installation:

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2Fei3vixYh1DLKi1VmWpY0%2Fznode1.png?alt=media&#x26;token=6f62a27e-d5e6-4271-9b7b-b04ae8d23cc4" alt=""><figcaption><p>Tools Installation Requirements</p></figcaption></figure>

You need to have Node.js and npm installed on your machine. You can download Node.js from [here](https://nodejs.org/en/download/), and npm is included with the Node.js installation.

### &#x20; 2.2. Installing Znode

&#x20;   **Step 1: Open the terminal**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2FFsB15se6EJyjiaWM5tFh%2Fznode2.1.png?alt=media&#x26;token=9308c738-d9cb-4ebe-af90-78c0e83c8385" alt=""><figcaption></figcaption></figure>

&#x20;   **Step 2: Enter the command `npm i -g rivalz-znode-cli`**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2F5PGzR8gBf2tUSdVNRmm9%2Fznode3.png?alt=media&#x26;token=7dccfe34-8b99-47a7-baf6-4eb30386d8d7" alt=""><figcaption></figcaption></figure>

&#x20;   **ZNode is now installed and ready for use.**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2FXmwwI885WoXXzQSdn6HT%2Fznode4.png?alt=media&#x26;token=3eb077a7-8763-4b05-b3e2-f556667d11fa" alt=""><figcaption></figcaption></figure>

## 3. Basic Commands

### &#x20; **3.1. Running the ZNode with the command: `znode run`**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2Fou5rruGhzogafgm2thqP%2Fznode3.1.png?alt=media&#x26;token=760899e7-882c-4f88-adfd-d6df342e79ef" alt=""><figcaption></figcaption></figure>

### &#x20; **3.2. Displaying ZNode information with the command:  `znode info`**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2FKA6oOqiA0cUsfQbaKNKZ%2Fznode3.2.png?alt=media&#x26;token=fdf3d3c0-16c4-4d64-bcb8-c45911b46c17" alt=""><figcaption></figcaption></figure>

### &#x20; **3.3. Updating the ZNode version with the command: `znode update-version`**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2F25YavmEvbqZuRu6RG5mk%2Fznode3.3.png?alt=media&#x26;token=1aacbd61-d5a2-43ff-9e44-6ea2350694c0" alt=""><figcaption></figcaption></figure>

### &#x20; **3.4. Displaying the Node ID with the command: `znode show-node-id`**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2FH5byyE9eTug9Ur2ow69g%2Fznode3.4.png?alt=media&#x26;token=a279bc15-e418-4443-8e3e-e281af357791" alt=""><figcaption></figcaption></figure>

### &#x20; **3.5. Displaying the ZNode version with the command: `znode -V`**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2Ftp2l3G4n3VJBmiZAc8EW%2Fznode3.5.png?alt=media&#x26;token=d77556c6-352d-4999-abcf-adee15a6aa77" alt=""><figcaption></figcaption></figure>

## 4. Advanced Usage

### &#x20; 4.1. Delegate Node

{% hint style="info" %} <mark style="color:red;">Before delegating a node, ensure your wallet contains at least 1 NFT and has sufficient gas.</mark>
{% endhint %}

&#x20;   **Step 1: Open the terminal**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2F6aIOtACecAerPn4Xt8F8%2Fznode4.1.1.png?alt=media&#x26;token=ad47553d-a354-4969-821f-472b5ae7aa9b" alt=""><figcaption></figcaption></figure>

**Step 2: Enter the command  `znode info`**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2FKA6oOqiA0cUsfQbaKNKZ%2Fznode3.2.png?alt=media&#x26;token=fdf3d3c0-16c4-4d64-bcb8-c45911b46c17" alt=""><figcaption></figcaption></figure>

&#x20;   **Step 3: Copy the node ID (0x9f7c….33c) and then open the link** <https://znode.rivalz.ai/licenses>

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2FU8lfhLRZtLmlAGfaIQlR%2FScreenshot%202024-11-16%20at%206.52.49%20PM.png?alt=media&#x26;token=af6c0ea3-79b5-46e6-a434-7725ec13f11f" alt=""><figcaption></figcaption></figure>

&#x20;   **Step 4: On the website, you'll need to connect your wallet.**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2FLFz3C1Bpt3DqAGhEjwCZ%2FScreenshot%202024-11-16%20at%206.50.45%20PM.png?alt=media&#x26;token=e05d32e1-2904-4441-9ff6-9a42c09a459f" alt=""><figcaption></figcaption></figure>

&#x20;   **Step 5: Enter the "Node ID" and "Number of licenses to delegate".**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2FzljfcUeuvlzl2ctF5jQs%2FScreenshot%202024-11-16%20at%206.54.46%20PM.png?alt=media&#x26;token=9f0f99f6-968e-42de-8ec6-cce962ed6f3b" alt=""><figcaption></figcaption></figure>

&#x20;   **Step 6: Click the “Delegate” button after signing transaction.**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2Ftx4GrvfNPqPhFx9PI5xj%2FScreenshot%202024-11-16%20at%206.55.41%20PM.png?alt=media&#x26;token=d1e12e6a-301b-4268-8911-dc5ebfd25400" alt=""><figcaption></figcaption></figure>

&#x20;   **If the transaction is successful, the UI will automatically reload.**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2FQP6ZmC3oB8yTct2q46SO%2FScreenshot%202024-11-16%20at%206.58.31%20PM.png?alt=media&#x26;token=025a7735-a55b-4c1b-b1f5-23e9497a4a14" alt=""><figcaption></figcaption></figure>

&#x20;   **Step 7: Return to the terminal and run the zNode again using the command  `znode run`  to start the  node.**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2FVUINfWuLqk0p7yKhoO5Z%2FScreenshot%202024-11-16%20at%206.59.57%20PM.png?alt=media&#x26;token=00fd17d8-de92-487f-95ac-1b18271e3612" alt=""><figcaption></figcaption></figure>

### &#x20; 4.2. Revoke Node

{% hint style="info" %} <mark style="color:red;">Before revoking a node, ensure your wallet is running at least one node and has sufficient gas.</mark>
{% endhint %}

&#x20;   **Step 1: You need go to** “<https://znode.rivalz.ai/licenses>” **and then connect wallet.**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2FQP6ZmC3oB8yTct2q46SO%2FScreenshot%202024-11-16%20at%206.58.31%20PM.png?alt=media&#x26;token=025a7735-a55b-4c1b-b1f5-23e9497a4a14" alt=""><figcaption></figcaption></figure>

&#x20;   **Step 2: Select the License ID you would like to revoke, then click the "Undelegate" button.**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2F7cxkLEq6EQlWXKQEqvQ9%2FScreenshot%202024-11-16%20at%207.03.35%20PM.png?alt=media&#x26;token=5cea0c98-fc92-4786-91a0-eae3319d37be" alt=""><figcaption></figcaption></figure>

&#x20;   **Step 3: Sign the transaction.**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2Fvc526wbtyP29FtyMNNlD%2FScreenshot%202024-11-16%20at%207.03.52%20PM.png?alt=media&#x26;token=d9cc2e22-752f-4ac3-8670-fcf46dd6e2a1" alt=""><figcaption></figcaption></figure>

&#x20;**If the transaction is successful, the UI will automatically reload.**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2FsEu0ckwqqutpwDtps2xp%2FScreenshot%202024-11-16%20at%207.06.30%20PM.png?alt=media&#x26;token=06d01ad5-88bc-487b-8ea7-67cdc766ea2d" alt=""><figcaption></figcaption></figure>

&#x20;**Step 4: Return to the terminal and run the zNode again using the command  `znode run`  to start the node.**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2F9YFPvnZVR6ZBrGQx0yeO%2FScreenshot%202024-11-16%20at%207.07.19%20PM.png?alt=media&#x26;token=429126d0-7c8d-4175-839a-ae7c29880311" alt=""><figcaption></figcaption></figure>

&#x20;

<br>
