Oraichain
  • ORAICHAIN
    • Introduction
    • System Overview
      • AI Layer 1 for Data Economy & blockchain oracle services
      • Layer 2 Rollups and Subnetworks
      • Verifiable and trustless AI Execution
      • Protocol Messages
      • IBC Integration
    • Use Cases
    • Token Economics
  • DEVELOPER GUIDES
    • General
      • Blockchain details
    • CosmWasm Contracts
      • Compile a Contract
      • Deploy a Contract
      • Query a Contract
      • Send tokens to a Contract
      • Manage Contracts using design patterns
      • End-to-end CosmWasm testing with CW-simulate
    • Local testnet chain
    • Wallet
      • OWallet
    • Price Feed
      • CW Oracle Hub
    • VRF 2.0
      • Introduction to Oraichain VRF 2.0
      • Get a Random Value from API
        • Get VRF Value from different networks
        • Contract Addresses and Pricing
        • Validate a Group Signature
      • Security Remarks
      • API Reference
      • Get support from Oraichain team
    • OraiDEX
      • ORAIX Token
      • OBridge
        • OraiBTC
        • TON Bridge
          • TON Blockchain 101
      • Decentralization
    • Indexers
      • SubQuery
    • OraichainEVM
      • Getting started
      • Smart Contracts
        • Oraichain EVM Precompiled Contracts
        • Address
        • Bank
        • Wasm
        • Authz
      • Guides
        • Metamask
        • Remix
        • Foundry
        • Hardhat
        • Tools
        • Oraichain EVM RPC
  • GOVERNANCE
    • Privacy Policy
  • NODES & VALIDATORS
    • Networks
      • Joining Mainnet
        • Build Linux binary from source and become a Sentry Node Operator
        • Become a Validator
      • Joining Testnet
        • Become Testnet Fullnode From Source
        • StateSync Testnet
        • Faucet Testnet
    • Oraichain Tutorials
      • Migrate one Oraichain node to another
      • Cosmovisor
      • Update validator image
      • Tenderduty
      • Grafana
      • Tracking Unvoted Proposals
      • Tmtop
Powered by GitBook
On this page
  • Requirements
  • 1. A Synced Node
  • 2. A Wallet
  • Create validator.json File
  • Sample validator.json
  • Create Validator Command
  • Explanation of Flags
  • Track Your Validator
  • Check Active Validator Set
  • Track Signing History
  • Join the Validator Community

Was this helpful?

Edit on GitHub
  1. NODES & VALIDATORS
  2. Networks
  3. Joining Mainnet

Become a Validator

PreviousBuild Linux binary from source and become a Sentry Node OperatorNextJoining Testnet

Last updated 1 month ago

Was this helpful?

Requirements

1. A Synced Node

You need to have a fully synced node running on the Oraichain mainnet. Follow our to set up a node.

2. A Wallet

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

Create a New Wallet

Replace KEY_NAME with your preferred wallet name:

oraid keys add KEY_NAME

Important: Save your passphrase, address, and mnemonic securely.

List All Keys

oraid keys list

Get Validator Public Key

oraid tendermint show-validator

Create validator.json File

As of version v0.50, creating a validator.json file is required.

Sample validator.json

{
    "pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"XXXXXXXX"},
    "amount": "1000000orai",
    "moniker": "myvalidator",
    "identity": "optional identity signature (ex. UPort or Keybase)",
    "website": "validator's (optional) website",
    "security": "validator's (optional) security contact email",
    "details": "validator's (optional) details",
    "commission-rate": "0.1",
    "commission-max-rate": "0.2",
    "commission-max-change-rate": "0.01",
    "min-self-delegation": "1"
}

Edit the file with your actual validator details:

  • pubkey: The validator's Protobuf JSON encoded public key (retrieved from the previous command).

  • amount: Amount of coins to bond (e.g., 1000000orai = 1 ORAI token).

  • moniker: Your validator's name.

  • commission-rate: Initial commission rate (e.g., 0.1 for 10%).

  • commission-max-rate: Maximum commission rate (e.g., 0.2 for 20%).

  • commission-max-change-rate: Maximum daily commission rate change (e.g., 0.01 for 1% per day).

  • min-self-delegation: Minimum self-delegation (e.g., 1 ORAI).

  • website: (Optional) Your validator's website.

  • details: (Optional) Additional validator information.


Create Validator Command

Before creating your validator, fund your wallet with some ORAI tokens to activate it.

Command Format

oraid tx staking create-validator path/to/validator.json \
--from [KEY_NAME] \
--chain-id="Oraichain" \
--gas="auto" \
--gas-prices="[gas_price]"

Example

oraid tx staking create-validator /root/validator.json \
--from=light1 \
--chain-id="Oraichain" \
--gas="auto" \
--gas-prices=0.001orai

Explanation of Flags

  • --from: The name or address of the private key used to sign.

  • --chain-id: The chain ID (fixed as Oraichain).

  • --gas-prices: Gas prices in decimal format to determine the transaction fee.


Track Your Validator

Check Active Validator Set

Replace OraichainValidator with your moniker name:

oraid query staking validators | grep OraichainValidator

Track Signing History

oraid query slashing signing-info $(oraid tendermint show-validator)

Join the Validator Community

Join the on Telegram to discuss ideas and troubleshoot issues!

tutorial
Oraichain validators group