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

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.

2.23893532 BEE
12 comments
(edited)

😍

0.00028249 BEE

Keep going bro. You are doing lot of development lately and we all love it!!!

!PIZZA
!LUV

0.00028444 BEE

@bambukah, @pravesh0(6/10) sent LUV. | connect | community | HiveWiki | NFT | <>< daily

Join in Hive General chat | Type ! help (no space) to get help on Hive. Info

Made with LUV by crrdlx

0E-8 BEE

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.00027744 BEE

@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.

0E-8 BEE

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.00027467 BEE
(edited)

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

$PIZZA slices delivered:
pravesh0 tipped bambukah

Join us in Discord!

0E-8 BEE

!hiqvote

0E-8 BEE

@coldbeetrootsoup, the HiQ Smart Bot has recognized your request (1/2) and will start the voting trail.

In addition, @bambukah gets !PIZZA from @hiq.redaktion.

For further questions, check out https://hiq-hive.com or join our Discord. And don't forget to vote HiQs fucking Witness! 😻

0E-8 BEE
(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).

0E-8 BEE

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 ;)

0E-8 BEE

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).

0E-8 BEE

Yay! 🤗
Your content has been boosted with Ecency Points, by @bambukah.
Use Ecency daily to boost your growth on platform!

Support Ecency
Vote for new Proposal
Delegate HP and earn more

0E-8 BEE

!DHEDGE

0E-8 BEE

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.

0E-8 BEE

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:

0E-8 BEE