# Validator Node on the Q Testnet-Incentivized Testnet Program

By [ BARDIA](https://paragraph.com/@barad) · 2022-12-26

---

My twitter: [BARDIA](https://twitter.com/Bardiasani)

Telegram: [@Jkoub](https://t.me/jkoub)

Q combines the benefits of a public, open and decentralized ledger with the transparency of enforceable private contracts. Whether you want to interact with other businesses, build decentralized applications or simply send and receive tokens. Q is building a unique L1 protocol with a clear governance process, security that is based on several layers of diverse node operators and its constitution as well as legal enforceability and dispute resolution for applications. -**Raised 12m$ fund**

**Important:** Until the **30th December 2022**, users can register a testnet validator to take part in the ITN program.

**مهم:** فقط تا ۳۰ دسامبر فرصت ثبت‌نام و شرکت در تست نت باقی مانده است. برای دریافت پاداش هم احراز هویت انجام خواهد شد این راهنما جنبه آموزشی دارد و انجام دادن یا ندادن آن به شما بستگی دارد

\*\* [Website](https://q.org/) [Discord](https://discord.gg/4YTzecMXys) [Twitter](https://twitter.com/QBlockchain) [Gitlab](https://gitlab.com/q-dev)\*\*

![System Requirements](https://storage.googleapis.com/papyrus_images/bc91ff19eab6d8030bb9eac6fce35c4302088e6b14a68ec5fb73ca7ccefc86ec.jpg)

System Requirements

**Part 1**: Open putty /Terminal

update:

    sudo apt update && sudo apt upgrade -y
    

![output](https://storage.googleapis.com/papyrus_images/710be9661a0b577ffa99c9cb047305443327a634b79f1e541c553f1029a31c11.png)

output

Install docker compose:

    sudo apt-get install docker-compose
    

![Press Y and Enter](https://storage.googleapis.com/papyrus_images/a8cc60a97efd92b406f13b3160be9ca2c18b52e5bc55955a928224164cc429fc.png)

Press Y and Enter

![output](https://storage.googleapis.com/papyrus_images/755feace5c9a261821c613fd75ac7b1de2ceb4e2465c137d40346a97b2c6493a.png)

output

**Part 2**: Basic Configuration

    git clone https://gitlab.com/q-dev/testnet-public-tools
    

![output](https://storage.googleapis.com/papyrus_images/392107e4614f2046f98f7ffbffdef310e61a1790f6056e7d6769382c40905896.png)

output

and

    cd testnet-public-tools/testnet-validator
    

![output](https://storage.googleapis.com/papyrus_images/692c1656016771f64cc195eee0b6f53978f4bb53759c0d0d82f86ae7e89effe0.png)

output

### Part 3: Generate a kaypair for validator

    mkdir keystore
    

go to keystore directory:

    cd keystore
    

![output](https://storage.googleapis.com/papyrus_images/66cd0de6ee18c3accf3dc0702510ef2657b2ff8546ad54684b628a6bfd36b301.png)

output

Create & open pwd.txt

    sudo nano pwd.txt
    

![output](https://storage.googleapis.com/papyrus_images/147aaa687fe3d0734ef765b2e3acb5445ea0dd96c0e89288d6d3f30bf603383c.png)

output

Create a password which will be used for private key encryption, for example below:

![Creat password](https://storage.googleapis.com/papyrus_images/fce1a51bb573b7eb0ee24323428cdfa834d601861177711bcde59935706a2230.png)

Creat password

|_Press_ **_CTRL_**_+_**_X_**

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

_Press_ **_Y_** _and_ **_Enter_**

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

output

go to the `/validator` directory:

    cd $home
    

and:

    cd testnet-public-tools/testnet-validator
    

![output](https://storage.googleapis.com/papyrus_images/45bc926aabd0a5813cc9677c78577899bab37381cceeb96b5be3841a3fa84acf.png)

output

Generate a keypair with this command:

    docker run --entrypoint="" --rm -v $PWD:/data -it qblockchain/q-client:1.2.3 geth account new --datadir=/data --password=/data/keystore/pwd.txt
    

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

output

Save all information in a notepad like below:

![Save all information](https://storage.googleapis.com/papyrus_images/a032674e8adaecbe44bc4f6ef902054880dc4285063df703dc1084cad22d576d.png)

Save all information

### Part 3: Get @ Faucet

Click [here](https://faucet.qtestnet.org/)

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

![claim Faucet](https://storage.googleapis.com/papyrus_images/4f4965f0b1c9f36905ef70e04c9ddeb274a783f6d40a3ffe1181b816d6fc04a0.png)

claim Faucet

### Part 4: Configure Setup:

    cd $home
    

and

    cd testnet-public-tools/testnet-validator
    

Edit **.env** file:

    sudo nano .env
    

![output](https://storage.googleapis.com/papyrus_images/25db3b0620782f463142bc2deb83893d625db084153e0e34f137affd7fbaf1ed.png)

output

Enter your public address **without** 0x and enter your adress ip

![](https://storage.googleapis.com/papyrus_images/77dad2741c946ed35bc2c7a5b3d3c7d094314fa92d470a58b2111f72cd79137f.jpg)

![](https://storage.googleapis.com/papyrus_images/48157d563b7336d5722486f59b4954570dcb9eaac563905fa3e20c8e944d1ed2.jpg)

\*\*|**Press\* CTRL+\*_X_**

![output](https://storage.googleapis.com/papyrus_images/2abf7918905ed96c372a5b0bc6ab5169c600299f7f18ae026f8c3078b793f470.png)

output

\*\*|\*\*_Press_ **_Y_** _and_ **_Enter_**

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

output

Open config.json:

    sudo nano config.json
    

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

Enter your public adress **without** 0x and enter your **password**

Password:

![](https://storage.googleapis.com/papyrus_images/18e3e0e8308db93446905acc8378317658af231927354b065d221f4c85acb395.jpg)

\*\*|\*\*_Press_ **_CTRL_**_+_**_X_**

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

\*\*|\*\*_Press_ **_Y_** _and_ **_Enter_**

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

### Part 5: import your validator address on METAMASK

First click [here](https://download.filezilla-project.org/client/FileZilla_3.62.2_win64_sponsored2-setup.exe) to download filezilla and install it

![Open FileZilla Client](https://storage.googleapis.com/papyrus_images/1dff5ba1e3ce59c5d6a88695fc20e275bb8b90d3aff9eeb6625929ae7ff5d131.png)

Open FileZilla Client

![](https://storage.googleapis.com/papyrus_images/7fce42b5ab890a0cc07b43dedb1bdbe6606c812666d9c2abdaef4565a807afd1.jpg)

![](https://storage.googleapis.com/papyrus_images/012a8a185fe328055542fbdeac9cd66cf3bfe257da554a8d89f9570dddaa30d0.jpg)

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

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

On your VPS go directly to: **/root/testnet-public-tools/testnet-validator/keystore**

**Drag and drop UTC file to your computer**

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

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

Now open your Metamask account and import account with JSON File:

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

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

![](https://storage.googleapis.com/papyrus_images/578257d62faef678454b252b90cfb938f551fa826adce79e6b815dd380d954c9.jpg)

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

**Password:**

**and click on import button:**

![You have to wait it may take a few minutes](https://storage.googleapis.com/papyrus_images/e93bd3fde7218b6ad282d6beb05fdf873ebcdb6fe77269d06accda74979ac988.jpg)

You have to wait it may take a few minutes

### Part 6: Stake in Validator

Click [here](https://hq.q.org/)

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

![](https://storage.googleapis.com/papyrus_images/5787131f5f26dfa77c56680e4a071f17948692e892989dd3a6264c0e993e54e5.jpg)

![](https://storage.googleapis.com/papyrus_images/ea122d80173285d820fae80f812cfc31c6d5898bf1f513e6e9991eefb68b9de4.jpg)

![](https://storage.googleapis.com/papyrus_images/b7a7cfc3309a54ad8ad82bd801f4d5820f1c0ece6360929ea4004f13ff0e7bcd.jpg)

![](https://storage.googleapis.com/papyrus_images/8b64918ed259e7a13ad1cfc4bf6ebf8f1b1d9af7f70ec2ca407b1095c9d86d7c.jpg)

![](https://storage.googleapis.com/papyrus_images/c40bc185217e0e5e7fe57c157a3d1f6a685515412acaafdbfba8fd983d298d3f.jpg)

![Confirm](https://storage.googleapis.com/papyrus_images/5ac806990d83d41e2d87c2b90f94a04f91481cc194cc2aa26202fdb51b0e5d3a.jpg)

Confirm

![](https://storage.googleapis.com/papyrus_images/b905128b3d9e9b4891fac43e40f2b864a867b5314713733131822969e857b1de.jpg)

### Part 7: Register On Incentivized Program

Click [here](https://itn.qdev.li/)

![](https://storage.googleapis.com/papyrus_images/0dcbfcf2ac44cf937e12f9fa60b60a30636741f170ec1fc1006bc846203cca81.jpg)

![](https://storage.googleapis.com/papyrus_images/acefd9980b2b79d9e9f81ed2ab73753f9f4d3fe6eede6395f0d5ab0d12368a7a.jpg)

![](https://storage.googleapis.com/papyrus_images/cffef9d9f8e8503a1143673a5c79894ccd748bd938fb2b47f8dc7979fccdfdc2.jpg)

![ Save this information](https://storage.googleapis.com/papyrus_images/b46c907bd1ac461d0871d29a7210d91eca0a8a450dd6d1ab523dba4f3baa724f.jpg)

Save this information

| Save this information on your notepad

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

### Part 8: Add your Validator to [https://stats.q.org](https://stats.q.org)

Open docker compose yaml:

    cd $home
    

and

    cd testnet-public-tools/testnet-validator
    

![output](https://storage.googleapis.com/papyrus_images/8a525ec5ffdeebcbc6eaa715c0e65ba4493820f951a061d17587cf05c0fd07f3.png)

output

**Open docker compose yaml:**

    sudo nano docker-compose.yaml
    

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

**“ --syncmode=full”,**

Below this, add the following field and type your node name starting with ITN

| Remplace xxxxxxxxx by your node name starting with ITN

    "--ethstats=xxxxxxxxxx:qstats-testnet@stats.qtestnet.org",
    

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

example:

    "--ethstats=ITN-Barad-02bc3:qstats-testnet@stats.qtestnet.org",
    

\*\*|\*\*_Press_ **_CTRL_**_+_**_X_**

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

\*\*|\*\*_Press_ **_Y_** _and_ **_Enter_**

![output](https://storage.googleapis.com/papyrus_images/30449f597239f9ad20b901896cd43019acd8d789783516930a646d1825d51311.png)

output

### Part 8: update & changing the file permission:

    cd $home
    

and

    wget -q -O q.sh https://gitlab.com/q-dev/testnet-public-tools/-/snippets/2473740/raw/main/q.sh && chmod +x q.sh && sudo /bin/bash q.sh
    

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

**| Enter 1 to update your node**

![output](https://storage.googleapis.com/papyrus_images/79f1cffb6bae5ef9b6d404a4024fbd396e9f6d34512bf91acebae78180e05a7a.png)

output

**Type your ITN username** ( Example : ITN-VALIDATORNAME-12537 )

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

**Enter**

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

output

### Part 9: Launch Validator Node:

    cd $home
    

and

    cd testnet-public-tools/testnet-validator
    

and

    docker-compose down && docker-compose up -d
    

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

output

**Check nodes real-time logs with the following command:**

k

    docker-compose logs -f --tail "100"
    

![Looking for peers](https://storage.googleapis.com/papyrus_images/e9c37adfabefd778e672d48a69e8ce5730cf13978aedc78f5279b148d1a6a4b7.png)

Looking for peers

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

### Part 10: Check your Node status

Click [herer](https://stats.qtestnet.org/)

![https://stats.q.org/](https://storage.googleapis.com/papyrus_images/889d79ac2d35dd7e8ab51334c5be185941acb59109da4bf6d1e8d196e986ed03.png)

https://stats.q.org/

**Search for your node name (CTRL +F)**

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

                    ممنون از همراهی شما.در صورت تمایل برای حمایت این آموزش را کالکت کنید
    

Thank you for your time, if you like this kind of content,please subscribe & Collect for more Tutorial

                                                     **[Twitter](https://twitter.com/Bardiasani)         [Telegram](https://t.me/jkoub)       **

---

*Originally published on [ BARDIA](https://paragraph.com/@barad/validator-node-on-the-q-testnet-incentivized-testnet-program)*
