Hive Engine net work status API : Get the health of Hive-Engine nodes

avatar

Hello everyone ! This week-end, I've made a small project which can help every HIVE project or token developer. It's not a big thing but it can be helpful. This one is the latest addition to HiveLive galaxy. Ladies & gentlemen, please welcome the Hive-Engine Network status.

Network Status Logo

Presentation

This tool is a small API for developer. I will check all the Hive-Engine nodes and returns the list, sorted by ping, of every node (with some data). It's really useful to improve the experience of your project.

It can allow you or your users to switch to the best Hive-Engine API node. No more bugs or freezes from the API node you use, just get the best node from Hive-Engine Network status and execute your query on the node.

At this time, there is two endpoint to use:

  • /all to bring the list sorted by ping (the first the fastest)
  • /best bring only the fastest node

By using them, you'll have a JSON response with, per node:

  • url: link of the node
  • name: hostname of the node
  • online: online status
  • ping: ping of the node, in ms
  • version: version of Hive-Engine running on node
  • nodeType: full or light
  • chain: what chain is executed by the node (mainnet or testnet)

Easy, isn't it? I choose to bring only easy and fast way to improve any project which use Hive-Engine.

Future

It's quite good for a "week-end project". But on my discord server, after talking about that, some users have plenty of ideas:

  • Scan the Hive nodes
  • Add more tests
  • Endpoints with data, or not
  • Many more...

What do you think about Hive-Engine Network status ? IF you know some developers who have some problems with Hive-Engine nodes, just talk with them about my project :)

As usual, if you like my works, you can upvote and reblog this post. And if you have some idea, questions or feedback, feel free to ask me in the comments.



0
0
0.000
18 comments
avatar
(Edited)

PIZZA!
The Hive.Pizza team manually curated this post.

$PIZZA slices delivered:
pravesh0 tipped bambukah

Join us in Discord!

0
0
0.000
avatar
(Edited)

You need to test if they are valid, this only checks response time not if they are currently valid and caught up. This is a big problem with Hive Engine nodes they frequently get behind and other issues, but will respond to pings without a problem. So this really only helps if all the nodes are functioning (which is almost never).

0
0
0.000
avatar

It's not only ping. I've already the getStatus() to have version, type of node, ...
But many users ask me to try some other commands to test every node.
Do you have some functions to test before all ? maybe getLastBlock() ? I can try to update for the next week end ;)

0
0
0.000
avatar

You need to check for divergence, round hash, and so on. I am not sure if beacon does this either (they have a similar hive engine test like their hive test).

0
0
0.000
avatar

Thank you so much for your answer.
I'll try to do the best for that !

0
0
0.000
avatar

There is a divergence script included with hive engine node install so you can review that for how it is done. There is also a round hash you can check across nodes.

0
0
0.000
avatar

Great start, but as Marky pointed out the really useful info is if the node is in sync or behind, in BeeSwap you have a ticker down below that shows the delay from Hive in seconds, up to 10 seconds is an ok value while higher than 15 seconds is not.

!ALIVE

0
0
0.000
avatar

@bambukah! You Are Alive so I just staked 0.1 $ALIVE to your account on behalf of @ flaxz. (14/20)

The tip has been paid for by the We Are Alive Tribe through the earnings on @alive.chat, feel free to swing by our daily chat any time you want, plus you can win Hive Power (2x 50 HP) and Alive Power (2x 500 AP) delegations (4 weeks), and Ecency Points (4x 50 EP), in our chat every day.

0
0
0.000
avatar

1


This post has been selected for upvote from our token accounts by @seckorama! Based on your tags you received upvotes from the following account(s):

- @dhedge.bonus
- @dhedge.leo
- @dhedge.bee

@seckorama has 14 vote calls left today.

Hold 10 or more DHEDGE to unlock daily dividends and gain access to upvote rounds on your posts from @dhedge. Hold 100 or more DHEDGE to unlock thread votes. Calling in our curation accounts currently has a minimum holding requirement of 100 DHEDGE. The more DHEDGE you hold, the higher upvote you can call in. Buy DHEDGE on Tribaldex or earn some daily by joining one of our many delegation pools at app.dhedge.cc.

0
0
0.000
avatar

This is really cool Bambukah. I could see this helping project managers avoid a lot of potential headaches and smooth out the development process for building an app!

0
0
0.000
avatar

Congratulations @bambukah! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You distributed more than 54000 upvotes.
Your next target is to reach 55000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out our last posts:

HiveFest Meetings Contest
0
0
0.000