Ended
January 6, 2023

Q-BLOCKCHAIN

PROJECT DESCRIPTION

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

Requirements

  • Very Importantly; Do not participate in this incentive if you didn’t register during the registration window, anyone running a node on Q network without having registered will not be rewarded.
  • People who were able to register before the deadline got a code that look like this "--ethstats=xxxxxxxxxx:[email protected]", and ITN-xxxx-xxxx please you will be need it later on
  • Recommendations from the Node (VPS/VDS/DS):
    6 CPUs, 16 GB RAM, 100 GB SSD, Ubuntu 20.04 Suitable servers
  • If do are new to running nodes, I do advice you begin with learning how to rent a server link 🔗 and also how to connect to your server link 🔗
  • You need to get your Metamask Private Key 🗝

Click on the 3 dots on your metamask wallet

Click on Account details

Select Export Private Key

Input your password and confirm

Your Private keys appears. Copy and save them somewhere safe.

1. PREPARATIONS

Update packages

sudo  apt update &&  sudo  apt upgrade -y

Note: Press Y to approve uprgrades

Install docker compose

sudo apt-get install docker && sudo apt-get install docker-compose

Also Press Y to enable downloads.

Make the Docker file executable

sudo chmod +x /usr/local/bin/docker-compose

Clone the Q-Network Public Repository

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

Get into the Testnet-Validator directory and make a new director called keystore

cd testnet-public-tools/testnet-validator && mkdir keystore

Next change into the keystore directory

cd keystore

You need to create a text file and put your password into it

sudo vim pwd.txt

then press i on your keyboard; this creates and input mode.
Then type in a password you will always remember.

After editing the pwd.txt file, press esc button on your keyboard, then type :wq to exit and save your changes

This brings you back to the initial page as before. Then run

cd && cd testnet-public-tools/testnet-validator/keystore

To create a keyfile run

sudo vim keyfile.txt

then press i on your keyboard; this creates and input mode.
Then paste in a Metamask Private Key 🗝 you saved earlier.

After pasting your wallet keys into the keyfile.txt file, press esc button on your keyboard, then type :wq to exit and save your changes

Start your Docker

cd .. && docker-compose run --rm --entrypoint "geth account import --datadir=/data --password=/data/keystore/pwd.txt /data/keystore/keyfile.txt" testnet-validator-node

After running the above command, you will get an image like this

Faucetting

Next, Get to your Metamask wallet and copy tour wallet address

Follow the LINK , paste your wallet address,

solve the puzzle and tap on claim tokens . Once it's done, you will get a notification 🔔 that 5Q has been sent to your wallet.

You can go back to your metamask wallet to confirm. It should be in your wallet.

configuration

Go back to your CLI and run the code below

cd && cd testnet-public-tools/testnet-validator

Get into the .env file and make some updates in it

sudo vim .env

You will get and output similar to this

then press i on your keyboard; this creates and input mode.
Then replace 0000000000000000000000000000000000000000 in
ADDRESS=0000000000000000000000000000000000000000
with your Metamask Wallet Address you saved earlier, WITHOUT the first two letters OX.

Also replace 192.0.0.0 in
IP=192.0.0.0

with your IP Address

For example my wallet address is 0x5FBfCBD35a894Fb52C95d3A2A905438584c37348, and Ip address is 5.75.243.172
It would look like this

ADDRESS=5FBfCBD35a894Fb52C95d3A2A905438584c37348

IP=5.75.243.172

After making all the changes on the .env file, press esc button on your keyboard, then type :wq to exit and save your changes

Logging in your Validator

Click this LINK , follow the steps shown on the image below, also ensure the advanced mode is on.

Connect your wallet on metamask pop-up and approve the connection.

In the Amount box put in 4 and click on Stake to ranking

Confirm transaction in the metamask wallet

Then the 4Q you stake appears on your dashboard.

Input 4 into the box and click on join Validator ranking

Confirm transactions in your metamask wallet

Setting up your Validator

On your CLI run the command below;

cd && cd testnet-public-tools/testnet-validator

Then;

sudo vim docker-compose.yaml

then press i on your keyboard; this creates and input mode. Move your cursor to where the arrow is and press enter

This creates a space as show below.

This is the point where you will be needing the coded information you got when you registered for the incentivized testnet
It looks somewhat like this:
"--ethstats=xxxxxxxxxx:[email protected]" Then paste it into the space you created ensure the are aligned as shown below and also do not forget the quotation marks (" ") and the comma (, ) at the end of the line.

After making the editing, press esc button on your keyboard, then type :wq to exit and save your changes

Compose your docker image

Run

docker-compose up -d

Then Check your Validator log

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

Check your validator status

Click the LINK and search your ITN name, and you should see it there.

It may appear offline, but its normal. It takes about 24 hrs to synchronize.


useful links

Medium | Discord

Reddit |Twitter | Official Documentation| Website