Become a Validator

Requirement

1. A synced Node

You can follow our tutorial to run a node on the Oraichain mainnet.

2. A wallet

Your wallet must have some ORAI tokens to delegate and pay transaction fees.

Create a new wallet, change KEY_NAME as you like

oraid keys add KEY_NAME

Save your passphrase, address, mnemonic

List all your keys

oraid keys list

Get validator public key

oraid tendermint show-validator

Create validator command

After you got wallet address, you must send some oraichain token to this wallet to active it. Here is the empty command

oraid tx staking create-validator \
--from=[KEY_NAME] \
--amount=[staking_amount_uorai] \
--pubkey=$(oraid tendermint show-validator) \
--moniker="[moniker_id_of_your_node]" \
--chain-id="[chain-id]" \
--commission-rate="[commission_rate]" \
--commission-max-rate="[maximum_commission_rate]" \
--commission-max-change-rate="[maximum_rate_of_change_of_commission]" \
--min-self-delegation="[min_self_delegation_amount]" \
--gas="auto" \
--gas-prices="[gas_price]" \

Example

oraid tx staking create-validator \
--from=light1 \
--amount=1000000orai \
--pubkey=$(oraid tendermint show-validator) \
--moniker="OraichainValidator" \
--chain-id="Oraichain" \
--commission-rate="0.03" \
--commission-max-rate="0.1" \
--commission-max-change-rate="0.1" \
--min-self-delegation="1000000" \
--website="https://orai.io" \
--details="I'm trust and safe validator" \
--gas-prices=0.001orai

The from flag is Name or address of private key with which to sign

The amount flag is Amount of coins to bond. 1000000orai = 1 oraichain token

The pubkey flag is The validator's Protobuf JSON encoded public key

The moniker flag is The validator's name

The chain-id flag is Oraichain (default value and can't change)

The commission-rate is The initial commission rate percentage (in the example above, 3 percent)

The commission-max-rate is The maximum commission rate percentage (in the example above, 10 percent)

The commission-max-change-rate is The maximum commission change rate percentage (per day) (in the example above, 1 percent per day until reaching the max rate)

The min-self-delegation is The minimum self delegation required on the validator (in the example above, 1 orai)

The gas-prices is Gas prices in decimal format to determine the transaction fee

The website flag is The validator's (optional) website

The details flag is The validator's (optional) detail

Track validator

To see the current validator active set: (change OraichainValidator to your moniker name)

oraid query staking validators | grep OraichainValidator

To track your validator's signing history

oraid query slashing signing-info ${oraid tendermint show-validator}

Please join the Oraichain validators group on Telegram to discuss ideas and problems!

Last updated