5. Register your Validator Node

This section guides you through configuring and registering your Cifer Chain validator node.

5.1 Create a Validator Configuration File

  • Prepare a JSON file named mynodeconfig.json (or any preferred name) to configure your validator.

  • Replace validator_address and pubkey with the values you obtained from the "4.2 Obtain Your Validator Keys" section.

mynodeconfig.json
{
"pubkey": {"@type":"/cosmos.crypto.secp256k1.PubKey","key":"....."},
"amount": "15000000ucif",
"moniker": "cifer-2",
"identity": "My Node", # Friendly name for your node
"website": "<your node url>", # Optional website URL for your node
"security": "<your e-mail>", # Your email for security contacts
"details": "My Validator", # Additional details about your validator
"commission-rate": "0.1", # Validator commission rate (percentage)
"commission-max-rate": "0.2", # Maximum allowed commission rate
"commission-max-change-rate": "0.01", # Maximum allowed change in commission rate
"min-self-delegation": "1" # Minimum stake delegated to your validator
}

5.2 Register your Validator Node

Run the following command, replacing <path_to_mynodeconfig.json> with the actual path to your JSON file and <myvalidator> with the name you used when creating the key from “4.1 Configure Your Validator Account” section.

$ ciferd tx staking create-validator <path_to_mynodeconfig.json> --from myvalidator --chain-id cifer-2

The command will display the transaction details for your review. Look for a section similar to the following example:

auth_info:
  fee:
    amount: []
    gas_limit: "200000"
    granter: ""
    payer: ""
  signer_infos: []
  tip: null
body:
  extension_options: []
  memo: ""
  messages:
  - '@type': /cosmos.staking.v1beta1.MsgCreateValidator
    commission:
      max_change_rate: "0.010000000000000000"
      max_rate: "0.200000000000000000"
      rate: "0.100000000000000000"
    delegator_address: ""
    description:
      details: My Validator
      identity: My Node
      moniker: cifer-2
      security_contact: <your e-mail>
      website: <your node url>
    min_self_delegation: "1"
    pubkey:
      '@type': /cosmos.crypto.secp256k1.PubKey
      key: 
    validator_address: <your validator address>
    value:
      amount: "1000000"
      denom: ucif
  non_critical_extension_options: []
  timeout_height: "0"
signatures: []
confirm transaction before signing and broadcasting [y/N]: y

The command will prompt you to confirm the transaction. Enter y and press Enter.

Upon successful submission, you'll receive a transaction hash.

code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: ""
timestamp: ""
tx: null
txhash: <your tx hash>

Congratulations! 🥳 You've registered your Cifer Validator Node.

Last updated