Contributions to the Open Source Hedera Mirror Node Explorer for Staking Functionality
Sep 27, 2022
by Devin Saxon

As native staking on Hedera continues on through Phase II, technical functionality for staking integrations into ecosystem wallets, exchanges, and explorers is available. Third-party websites HashScan, LedgerWorks, and Hedera Explorer feature staking data.

The mirror node REST APIS now retrieve staking information. An example schema of a valid request call is pasted below:

Code Snippet Background
{
  "network_stake": {
    "max_staking_reward_rate_per_hbar": "17808,",
    "node_reward_fee_fraction": "1.0,",
    "stake_total": "35000000000000000,",
    "staking_period": {
      "from": "1655164800.000000000",
      "to": "1655251200.000000000"
    },
    "staking_period_duration": "1440,",
    "staking_periods_stored": "365,",
    "staking_reward_fee_fraction": "1.0,",
    "staking_reward_rate": "100000000000,",
    "staking_start_threshold": 25000000000000000
  }

You can find more mirror node example responses here. (Pending reward REST API coming soon. Stay up to date here.)

This contribution has been added to the OSS Hedera Mirror Node Explorer so you now have the ability to enable the staking page within your hosted version. 

HashScan’s staking page also adds support to stake your account via the supported wallets. Users can select their wallet, choose a node to stake to, and sign the transaction to start staking. For a wallet to support this staking integration, they need to be compliant with HIP-338. Today, HashPack and Blade wallets support staking on Hedera mainnet. We expect that additional wallets will implement HIP-338 and support staking for their users.


In regards to turning off/on the staking page (for those hosting the Hedera Mirror Node Explorer) you are able to do so within the .env file located at the root repository [link to README]:

Code Snippet Background
### When set to 'true', this variable will enable the 'Staking' page
VUE_APP_ENABLE_STAKING=false

For any additional questions/feedback around Hedera Mirror Node Explorer please submit here: https://github.com/hashgraph/hedera-mirror-node-explorer

Questions/Feedback around supported wallets:

https://github.com/hashgraph/hedera-improvement-proposal/discussions/355