To set up a validator node on MANTRA Chain, follow these steps:
Prepare Your Environment:
System Requirements: Ensure your hardware meets the necessary specifications. Detailed requirements can be found in the Node System Requirements section.
Operating System: A Linux-based system is recommended for optimal performance.
Install the
mantrachaindApplication:Download the Latest Release: Obtain the latest
mantrachaindbinary from the official releases page.Verify the Binary: After downloading, verify the integrity of the binary using the provided
.sha256file.Build from Source (Optional): If you prefer, you can compile the application from source. Ensure you have Go installed, then run:
make install
Initialize the Node:
Set Up Configuration Files: Initialize the node with your chosen moniker (a human-readable name for your node) and the appropriate chain ID:
mantrachaind init <moniker> --chain-id <chain-id>Replace
<moniker>with your desired node name and<chain-id>with the target chain ID (e.g.,mantra-1for mainnet ormantra-dukong-1for testnet).
Configure the Node:
Genesis File: Download the appropriate
genesis.jsonfile for your chosen network and place it in the~/.mantrachain/config/directory.Peers: Update the
persistent_peersandseedsfields in theconfig.tomlfile located in the same directory to include the necessary peer nodes.
Start the Node:
Run the Node: Start the node to begin the synchronization process:
mantrachaind startSystemd Integration (Optional): For better process management, consider setting up
mantrachaindas a systemd service. Guidance on this can be found here.
Create a Validator:
Initialize Wallet Keyring: Create a new wallet or import an existing one:
mantrachaind keys add <key_name>Replace
<key_name>with your preferred wallet name.Fund Your Wallet: Ensure your wallet has a sufficient amount of OM tokens to cover the staking amount and transaction fees.
Obtain Validator Public Key: Retrieve your validator's public key:
mantrachaind tendermint show-validatorSubmit Create-Validator Transaction: Execute the following command, replacing the placeholders with your specific details:
mantrachaind tx staking create-validator \ --from=<key_name> \ --amount=<amount>uom \ --pubkey=$(mantrachaind tendermint show-validator) \ --moniker="<validator_moniker>" \ --security-contact="<security_contact_email>" \ --chain-id="<chain_id>" \ --commission-rate="<commission_rate>" \ --commission-max-rate="<max_commission_rate>" \ --commission-max-change-rate="<max_commission_change_rate>" \ --min-self-delegation="<min_self_delegation>" \ --gas="auto" \ --gas-prices="<gas_price>uom"Ensure all parameters are correctly set to reflect your validator's configuration.

