Get network information
GET
/api/v1/network/info
const url = 'http://localhost:8080/api/v1/network/info';const options = {method: 'GET', headers: {'X-Signature': '<X-Signature>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/v1/network/info \ --header 'X-Signature: <X-Signature>'Get network-wide information including node count and version
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Network information retrieved successfully
Media typeapplication/json
object
success
boolean
networkId
Network identifier
string
nodeCount
Total number of nodes in network
integer
totalPeers
Number of connected peers
integer
upSince
Network uptime start
string format: date-time
version
Protocol version
string
Example
{ "success": true, "networkId": "zentalk-mesh-v1", "nodeCount": 42, "totalPeers": 41, "upSince": "2025-12-10T10:00:00Z", "version": "1.0.0"}Internal Server Error
Media typeapplication/json
object
error
Error type
string
message
Human-readable error description
string
code
Optional error code
string
Example
{ "error": "Internal server error", "message": "An unexpected error occurred"}