./hmy --node="https://api.s0.t.hmny.io" blockchain median-stake | grep median
Reasons why your validator is not elected & how to get elected.
Harmony operates with Effective Proof of Stake (EPoS) to keep the network security from collecting in the hands of a few validators. You can find our full Medium article on EPoS here!
TL;DR Validators are elected based on their effective stake, instead of their absolute stake. The effective stake is calculated based on the median stake in the network. The top 900 BLS keys with the highest effective stake will be elected for the epoch.
The value returned by the CLI is in Atto, which is equivalent to Gwei in Ethereum.
Visit https://staking.harmony.one/validators/<youroneaccount>
Example : https://staking.harmony.one/validators/one1u6c4wer2dkm767hmjeehnwu6tqqur62gx9vqsd
Your Total Staked
divided by the number of BLS keys you set on your validator will give you the effective bidding stake. This effective bidding stake will be used to bid in the 900 slots available each epoch. Bidding above the median stake is the safest way to get your keys elected each epoch. Bidding below the median stake is riskier, as you may be kicked out of the committee for 1 epoch in case you outbid. For more information on the bidding process check here.
We recommend that you start bidding above or around the median stake, so you are likely to always stay elected each epoch.
Run the command below:
Output:
If not eligible, activate it for the next epoch election:
Run the command below:
Output:
For your validator to stay elected, you wanna make sure the current-epoch-signing-percentage
is above 66% (0.66).
To fix the above, we have to make sure the node is working correctly and below are few pointers
Compare your node block height with the network block height.
Check your node block height:
If the above doesn’t work and you have an error message similar to this: commit: v304-0e26945, error: dial tcp4 127.0.0.1:9500: connect: connection refused It means the harmony node binary is not running. Please follow this documentation on how to run the node.
Check the network block height:
Make sure network height and your current height are very close or equal. Additionally if your node is validating for a
The above command is for network height on shard 0, change s0 to s1, s2, .. to match the shard you want to check.
When you are fully synced and your validator profile is satisfactory you should start having BINGOs in your validator log file at epoch change.
You can check BINGOs via this command:
And you’ll notice in your validator information that you started signing blocks.
Output:
If you fail to sign blocks, verify your machine/vps doesn't have CPU/memory/hard disk/internet issues. When you fail to sign more than 66% of the blocks in an epoch, you’ll be kicked out from the committee.
An overview of questions, additional resources, and products relating to Harmony’s Open Staking.
1. How to Stake Harmony ($ONE)?
You can participate in Harmony’s Staking either as a delegator or a validator.
For Delegators: For those wishing to participate in staking without running a validator, delegation is the best approach to still get involved and earn block rewards. Harmony ONE holders can delegate their tokens to existing validators using our staking explorer: https://staking.harmony.one/. If the tokens are delegated to an elected validator, a portion of the block reward earned by the validator will be credited to the delegator (according to section Block Reward).The earned block rewards are stored in a separate reward balance of the delegator, which can be immediately withdrawn to the delegator’s account balance. The block rewards can also be staked again to achieve the compounding effect of staking. Your delegated tokens are also associated with slashing risks of the validator. As a delegator, you should carefully choose validators based on their historical performance metrics such as APR, uptime and commission. In case of indifference or indecisiveness, you should distribute your delegations among multiple validators in order to minimize risk.
For Validators: Validators are invited to follow this Step by Step guide, to start earning staking rewards!
2. How to Stake Harmony ($ONE)?How much can I expect to earn?
While rewards are not fixed, and depend on the performance of a validator, the total staked tokens on the network, and the efficiency of the validator to follow Harmony’s Effective Proof of Stake, you can consult the following indicative figures.
Constant annual reward of 441M ONE regardless of changes in underlying variables such as block time and staking ratio
Transaction fees offset issuance creating a path to 0 issuance as protocol gains adoption
1st year yields range: 164% (at 5% staked) to 9% (at 95% staked)
For more in depth information, take a look at our spreadsheet model
3. What do the Total Stake values on the Staking Dashboard mean?
When you land on Harmony’s Staking dashboard, you see the list of Validators. There is a ‘Total Stake’ value on the top center. This value represents the total stake contributed to the network by ALL the validators, irrespective of whether they are currently elected in the top 800 available slots and signing blocks. This value includes stake from ALL validators created on the network.
In the Analytics section (staking.harmony.one/analytics), you see two tabs. The tab for ‘Last Epoch’ shows the results of the last election for the top 800 slots in the network. The total stake and effective median value in this section determine the validator list and block rewards for the current epoch. The tab for ‘Next Epoch’ shows the real-time snapshot values of total stake and effective median, which means that these values will be used for election right before the next epoch starts. You may notice that the total stake value in the ‘Last Election’ and ‘Next election’ may be different. This is because if a validator who got elected in the last election is not signing enough blocks, then they may not qualify for the upcoming election before the next epoch. As a result, their stake gets discounted in the ‘Next Election’ stake calculation.
4. Why is the ‘Expected Return’ value 0 for validators?
The Expected return value will start to show real non-zero values after a validator completes one full epoch after getting elected. This is because when a validator gets elected for the first time, there is no historical data to estimate expected returns.
5. What does Lifetime reward mean?
Lifetime reward means the total cumulative ONE earned by that validator.
6. I delegated and my validator is earning, but I can’t see my reward. Why?
Check for your rewards earned in the Portfolio page of the staking dashboard.
7. I sent 1 ONE to the dashboard but it’s not showing
When you send 1 ONE, what you will get is 0.99 ONE due to transaction fee. However, the staking dashboard doesn’t support decimal places currently.
8. Is reward per validator/delegator fixed?
No, a validator's rewards is dependent on their effective stake and their uptime during the epoch.
9. I want to undelegate my token, how long do I have to wait?
Your undelegated tokens will be available in your wallet after 7 epochs have passed.
10. My validator was not elected, can I undelegate and stake to another validator?
Yes, however you will have to wait for your tokens to be available at the end of the epoch.
11. How can I change my wallet password?
Ensure you have access to your seed phrase or private key first. Uninstall the extension, go to chrome store and reinstall. Launch the extension and choose the option to recover your account. Enter your seed or private key and input your new password.
12. Is there a window between epochs to delegate un-delegated tokens?
There is no window between epochs. Unfortunately, any delegations made after the tokens are available again will not be taken into account until the following epoch.
13. What does Fee mean?
The validators can charge a fee in order to offset the cost of running their validating nodes. The fee is automatically deducted from your rewards and included in the validator's rewards.
14. Why can't I claim rewards?
Rewards are claimed via a transaction, therefore you must have enough ONE tokens to pay the gas fee in order to claim your rewards.
15. What’s the minimum claim amount for delegators?
1 ONE.
16. What is the minimum stake amount for delegators?
100 ONEs.
17. How long does an epoch last?
It depends on the blocktime. Currently 1 epoch has 32768 blocks and with a 2s blocktime this is around 18.2 hours.
18. How do I check Mainnet network status?
We report all Mainnet network outages here. You can also check network status here.