This guide explains how to use command-line interface (CLI) commands to earn staking rewards as a validator or delegator on the OKTC blockchain.
What Is Staking?
OKTC employs Tendermint’s BFT-DPoS consensus algorithm, allowing users to stake OKT for voting rights. By delegating votes to validator nodes, participants can earn dividend rewards. Staking is a foundational mechanism for securing the network and earning passive income.
👉 Learn more about Tendermint consensus
How to Stake for Ordinary Users
Step 1: Stake OKT to Obtain Voting Rights
- Use CLI commands to lock OKT tokens.
- Voting power is proportional to the staked amount.
Step 2: Delegate Votes to Validators
- Choose validator(s) with favorable share ratios.
- Dividends are distributed based on validator performance and commission rates.
Note: Voting weight calculations consider staked amount and validator uptime. Refer to Voting Weight Calculation.
Common Commands for Ordinary Users
Staking OKT
exchaincli stake --amount <OKT_quantity> --from <wallet_address>Voting for Validators
exchaincli vote --validator <validator_address> --from <wallet_address>Withdrawing OKT
exchaincli withdraw --amount <OKT_quantity> --from <wallet_address>Query Staking Info
exchaincli query staking-info --address <wallet_address>Claiming Rewards
Single validator:
exchaincli withdraw-reward --validator <validator_address> --from <wallet_address>All validators:
exchaincli withdraw-all-rewards --from <wallet_address>
Validator-Specific Operations
Setting Commission Rate
exchaincli edit-validator-commission-rate --rate <percentage> --from <validator_address>Querying Commission Rewards
exchaincli query commission-reward --validator <validator_address>Withdrawing Commission
exchaincli withdraw-commission --from <validator_address>👉 Explore advanced validator management
General Queries and Operations
Account Information
exchaincli query account <wallet_address>Validator Lists
exchaincli query validators --detailedStaking Pool Stats
exchaincli query staking-poolModule Parameters
exchaincli query staking-params # Staking module
exchaincli query reward-params # Reward moduleFAQ Section
1. How often are staking rewards distributed?
Rewards are distributed per block. Withdrawal frequency depends on validator settings.
2. Can I unstake OKT immediately?
No, unstaking involves an unbonding period (typically 7–14 days) for security.
3. What’s the minimum OKT required to stake?
There’s no fixed minimum, but validators may set thresholds.
4. How do I choose a reliable validator?
Check uptime history, commission rates, and community reputation.
5. Are rewards auto-compounded?
No, you must manually claim and restake rewards.
6. What happens if a validator misbehaves?
Validators may be slashed (lose a portion of staked OKT) for downtime or double-signing.
Key Takeaways
- Use CLI commands for precise control over staking and delegation.
- Validators must manage commission rates and rewards proactively.
- Regularly monitor staking performance and network updates.
For further reading, review the Delegator’s CLI Guide.