scrtlabs / enigma-p2p

The Enigma Worker Peer-to-Peer (P2P) package written in Node.js based on libp2p-js
https://enigma.co/protocol/
GNU Affero General Public License v3.0
38 stars 4 forks source link

Management API #262

Open on247 opened 4 years ago

on247 commented 4 years ago

I dont seem to find any RPC / HTTP api where i can retry basic status info about a enigma node such a syncing status , block number , network and chain status and so on

Is there any plans to implement such an api or a way to retrieve that info programatically

assafmo commented 4 years ago

@on247 Actually yes! We are currently working on this in https://github.com/enigmampc/enigma-p2p/pull/258.
You can checkout the health_check branch and play with it, although it is not quite documented yet.

lenak25 commented 4 years ago

@on247 , the health_check branch was merged to develop and the docs were updated. However it implements partially the feature you've requested (the sync status is not yet part of it and currently the api returns a boolean value - the node is ok or not). Thanks for raising the request, we will consider enhancing the health check feature.