Become a Validator

How to become a Validator / Install Node

Validator Parameters

  • Minimum Staking Size:

    200,000 VC
  • Maximum Validator Size:

    15x the self-stake amount
  • Minimum Hardware Requirements:

    m5.xlarge (4 CPUs and 16GB), 500GB SSD
  • Unlock Period:

    3 days from when you undelegate (bonding time).
  • Rewards:

    Block rewards from self-stake + 15% of delegators' rewards.
    APY varies based on staked %.

Validators

After installing a Read-Only Node, you can upgrade to a VinuChain validator by registering your validator node on-chain. To do this, you need to have at least 200,000 VC to create a validator wallet. The wallet is the validator’s identity in the network which it uses to authenticate, sign messages, etc.

A validator is a network participant responsible for confirming and validating transactions, producing new blocks, and securing the network's consensus protocol. Validators play a critical role in maintaining the integrity and security of the VinuChain blockchain.

Validators receive block rewards for their contribution to the network.

If you have not installed your Read-Only Node yet, please begin at the previous page!

Create a validator wallet

The node is now running and syncing the network in your current console, so you need to open up a new console window, connect via SSH to the server and enter the following commands to create a validator wallet:

After entering the command, you will get prompted to enter a password for the account (= wallet) β€” use a strong one! You can e.g. use a password manager to generate a 20+ digit password to secure your wallet. It will look something like this:

NEVER share your private key or keystore with anyone!

Fund your validator wallet

The next step is to fund your validator wallet with enough VC to become a validator. That means you need to have at least 200,000 VC in the wallet you just created (send a little more to cover transaction fees). After successfully sending the VC to your newly created Opera wallet, you can register your validator via the SFC Smart Contract.

Make sure you wait for your node to be fully synced, otherwise your VC will not show up in your wallet!

Create a new validator key

We have to create validator private key to sign consensus messages with. It can be done only using go-opera

Follow the prompts and supply the password, the output is as follows:

Create your validator via the SFC

You should wait for your node to sync to the latest block of the network before proceeding.

Attach to Opera console

To proceed, open up the console where you entered the commands to create the validator wallet previously and attach to the Opera node console:

By doing so, you will get a JavaScript console where you can directly interact with the Opera node and e.g. send transactions (which you will do in a moment):

Initialize SFC

Now initialize the SFC contract ABI variable

Parse to javascript terminal everything from https://pastebin.com/sbDq7T92.

Here is the raw code from the link should it be broken:

and initialize the SFC contract object itself:

After initializing both variables, you can now interact with the network’s SFC.

Sanity check

Enter the following command to check that everything works as expected:

If it looks like this, everything is OK (you should not get an error here):

Get your validator ID

Next, try to get your ValidatorID from the SFC using your previously generated validator wallet address:

  • Use quotes for "VALIDATOR_WALLET_ADDRESS".

This should return 0, as you are not registered as a validator yet:

Unlock validator wallet

Next, unlock your validator wallet to be able to execute the registration transaction (make sure to use the password you set before).

Note that, you can perform this step (unlockAccount + createValidator) in a separate machine (different from the machine you'll run your validator node), or it'd be even more secure if you use hardware wallet to do it.

  • Use quotes for "VALIDATOR_WALLET_ADRESS" and "PASSWORD".

This will return β€œtrue” if unlocking the wallet was successful:

Register your validator

Next, send the createValidator transaction to register your validator (the value is the representation of the smallest VC unit, so it must be divided by 1e18.

Alternatively, you can use web3.toWei("200000.0", "vc")).

  • Use quotes for "0xYOUR_PUBKEY" and "0xYOUR_ADDRESS".

  • 0XYOUR_ADDRESS refers to the wallet created on the validator.

Check your registration transaction

Make sure to check your registration transaction (could take a few moments to be confirmed):

Look for the status: β€œ0x1” at the bottom, which means the transaction was successful:

You can also copy the transactionHash and go the VinuChain BlockScanner and check your transaction there:

https://vinuscan.com/transactions/[YOURTX]

This would look something like the below:

Check your validator ID

Finally, execute the following command again to check your validatorID:

It should now return something other than β€œ0”:

Congratulations, you are now a VinuChain validator!

Close the Opera console window by typing β€œexit”.

Run your VinuChain validator node

Restart your node in validator mode

Before you run off celebrating, you need to restart your node in validator mode!

Make sure your node is already synced to the latest block in read mode, and it's synced in --syncmode full.

  • Stop the opera process (read mode):

or

  • Create an empty file and paste validator node password into it.

Then head back to the console window where you started your node with the following command:

Mainnet:

Testnet:

  • You must replace ID & VALIDATOR_PUBKEY & PATH_TO_PASSWORDFILE variables with your own values.

Update validator info

If you'd like to set up a Name and logo for your node, please go to Update Validator Info

Last updated