🟢 If you do not want to install mainnet. You can delegate your tokens to Hercules Validator.
🚀🚀🚀 To find out how to delegate Hercules Validator 🚀🚀🚀
🔽 If you want to install mainnet, follow the steps below. 🔽
- Linux machine with SSH access;
- Min. 1(v)Core (x86), 20 GB storage and 2 GB RAM;
- Rec. 2(v)Cores (x86), 30 GB storage and 4 GB RAM;
- Installed applications: docker, docker-compose, git (optional).
sudo apt update && sudo apt upgrade -y
apt install ca-certificates curl gnupg lsb-release git htop
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
docker version
git clone https://gitlab.com/q-dev/mainnet-public-tools
cd mainnet-public-tools/validator/
mkdir keystore
- Type the password you will use in your wallet here.
echo YOUR-PASSWORD > keystore/pwd.txt
-
Now we have created the keystore folder and our pwd.txt file. Now it's time to create a wallet.
-
" If you have a UTC file you have used before, put it into the keystore folder and do not do the wallet creation step. If you are going to create a new wallet, you need to do this step."
docker run --entrypoint="" --rm -v $PWD:/data -it qblockchain/q-client:1.2.3 geth account new --datadir=/data --password=/data/keystore/pwd.txt
- If you get the following output after using this command, everything is fine. Your wallet has been created.
- Write save your wallet address. Your Keystore folder should look like this.
cp .env.example .env
nano .env
- Edit your .env file as shown in the picture.
- do not write 0x at the beginning of your wallet address
nano docker-compose.yaml
-
To see your node on the statistics page, add the following code to your docker-compose file as shown in the image and save it.
-
Open a ticket on the Q Discord channel. Request the access key for the mainnet.
"--ethstats=<Your_Validator_Name>:<Mainnet_access_key>@stats.q.org",
nano config.json
- Enter your wallet address and password here. Do not put 0x at the beginning of your wallet address
docker-compose up -d
docker-compose logs -f --tail "100"
- Let's exit the log screen with ctrl + c.
- Enter the following codes one by one.
docker-compose down && cd
rm -rf /var/lib/docker/volumes/validator_validator-node-data/_data/geth/chaindata
mkdir /var/lib/docker/volumes/validator_validator-node-data/_data/geth/chaindata
cd /var/lib/docker/volumes/validator_validator-node-data/_data/geth/chaindata
https://snapshots.stakecraft.com/ go to this address and copy the link shown in the picture.
-
copy the link you copied from the code below " https://snapshots.stakecraft.com/q-mainnet_2023-04-11.tar " in this section and enter the code.
-
After this process a loading will take place, please wait until it is finished. Then start your node.
wget -O - https://snapshots.stakecraft.com/q-mainnet_2023-04-11.tar | tar xf -
cd $HOME/mainnet-public-tools/validator/
docker-compose up -d
cd mainnet-public-tools
cd mainnet-public-tools/omnibridge-oracle
cp .env.mainnet .env
nano .env
-
edit and save the following places.
-
ORACLE_VALIDATOR_ADDRESS = type your validator wallet address
-
ORACLE_VALIDATOR_ADDRESS_PRIVATE_KEY = type the private key of your wallet address
-
COMMON_FOREIGN_RPC_URL = Get eth mainnet RPC from infura, blockpi, Alchemy, ankr or another provider.
docker-compose up -d
cd ../omnibridge-ui
cp .env.mainnet .env
nano .env
-
edit and save the following places.
-
REACT_APP_FOREIGN_RPC_URL = Get eth mainnet RPC from infura, blockpi, Alchemy, ankr or another provider.
docker-compose up -d
cd ../omnibridge-alm
cp .env.mainnet .env
nano .env
-
edit and save the following places.
-
PORT = 8090 You can change the port address if you want.
-
COMMON_FOREIGN_RPC_URL = Get eth mainnet RPC from infura, blockpi, Alchemy, ankr or another provider.
docker-compose up -d
- After installing mainnet, you now need to do staking.
- go to this address and connect your wallet. and click on the field in the picture and type the desired amount and confirm.