Harmony Alert Bot

Magar Saroj
ibriz-harmony
Published in
3 min readMay 11, 2020

Harmony is connecting people around the world through its secure, scalable, and fast network. Harmony is one of the first mainnet with a sharded Effective Proof of Stake (EPoS) architecture, a partitioning technique that scales the Harmony blockchain and processes more transactions per second. The 4 Shards in Harmony mainnet produce blocks every 8 seconds.

As the Harmony advances towards the staking on Mainnet, iBriz.ai has developed a Telegram chatbot “Harmony Alert Bot”. A bot that provides notification to users on fee changes, median stake changes, change in delegations, rewards distribution, missing Block Signings, and wallet balance, and many more.

The Harmony Alert Bot allows the validator and delegator to register a wallet on telegram as a telegram user. This process doesn’t require the user to share their private keys with the bot. As the telegram user registers, they can select to use whether a Delegator monitoring or a Validator monitoring.

A validator monitoring provides information to users on validator node status and alerts the user when:

  • Validator misses blocks
  • Validator recovers from missing blocks
  • Validator is not on the committee.
  • Validator returns to the committee again.
  • Median stake changes more than X%
  • Delegations change on the Validator

The delegator monitoring aims to keep the delegators up to date on the validator’s performance and the rewards earned through the delegation. This includes an alert when:

  • Validator performs poorly over the last 4 epochs. (An epoch is a time period when the beacon shard produces 16484 blocks(in Mainnet))
  • Fee changes of validator
  • Validator performance which includes sign %
  • Rewards earned through delegation

The Node status option provides the view of all the information including:

  • Details of the validators being watched
  • Validators sign % for current epoch, also for the lifetime
  • By Validator the rewards they generated
  • Number of delegators
  • Median stake

Other features of Bot includes:

  • Rewards Distributions: Notifies the users’ when the rewards are distributed to the validator and delegator.
  • Epoch Time: Remaining time for Epoch to change.
  • Whale Transactions: Notifies the users if a whale transaction occurs on the Harmony network.
  • Harmony(One) Market Status: Includes the current price, total supply, circulating supply, Median Stake.
  • Epoch Change: Notifies the user on changing every epoch also the remaining time for the next epoch with the status of the validator.
  • Faucet: Users can directly use the website https://harmony-faucet.ibriz.ai from the bot to get the test ONE Tokens.

Key Specs on Harmony Alert Bot

  • Platform: Telegram Messenger
  • OS: As supported by Telegram Messenger
  • Device: Supporting Telegram Messenger
  • Programming: Python
  • Database: MongoDB
  • API: Python Telegram Bot 12.7, Harmony API V2 through JSON RPC
  • Machine: t3a.small 2 vcpu Variable 2 GiB RAM EBS

For ICON Blockchain, iBriz has a similar alert bot that you can find here.

iBriz has been actively participating in different activities with Harmony. If you have any suggestions or feedback to the bot, connect us at Twitter.

--

--