Validator Setup

This document covers the setup of OAK validator in testnet network

Run a validator node

Then run the following command to run a validator node

Run a validator node

docker run -d -p 9933:9933 --name <container_name> oaknetwork/oak_testnet:latest --name <node_name> --validator --rpc-cors all --rpc-methods=unsafe --rpc-external

Get the rotateKeys of the node

Use cURL command from command line to send a request to the node just started up.

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933

The response should look like this.


The output will have a hex-encoded “result” field. The result is the concatenation of the four public keys. Save this result for a later step.

Become a validator

Setup validator

Setup validator 1/2


There are some fields.

Stash account, controller account

Think of the stash as your cold wallet and the controller as your hot wallet. Funding operations are controlled by the stash, any other non-funding actions by the controller itself.

Value bonded

The amount placed at-stake should not be your full available available amount to allow for transaction fees. Once bonded, it will need to be unlocked/withdrawn and will be locked for at least the bonding duration.

Payment destination

Rewards (once paid) can be deposited to either the stash or controller, with different effects.

After filling the form, click ‘next’ to the form of ‘setup validator 2/2’

Setup validator 2/2


There are some fields.

Keys from rotateKeys

Fill the string generated form Run a validator node

Reward commission percentage

The commission is deducted from all rewards before the remainder is split with nominators. For example, 20.

Allows new nominations

The validator can block any new nominations. By default it is set to allow all nominations.

After commit, you can see your accont in the stashes list. stashes

And you can the account in the waitting list. waitting

After an era, your account is in the validators list.

In OAK Testnet, an era is 1 hour currently.

The number of validators is limited, the top 6 will become validators currently.



Validator Requirements