Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.08 KB

allPeers.md

File metadata and controls

42 lines (30 loc) · 1.08 KB

< EON API Documentation

node/allPeers

Returns the list of all sidechain nodes known by this node.

Parameters

No parameters

Example request

 curl -sX POST 'http://127.0.0.1:9085/node/allPeers' -H 'Content-Type: application/json' -H 'accept: application/json' 

Example response

{
    "result" : {
        "peers" : [ 
            {
                "remoteAddress" : "/143.42.26.149:5674",
                "lastHandshake" : 0,
                "lastMessage" : 0,
                "name" : "unknown-/143.42.26.149:5674",
                "agentName" : "unknown",
                "protocolVersion" : "Version(0,0,1)"
            }, 
            {
                "remoteAddress" : "/192.46.215.198:5674",
                "lastHandshake" : 0,
                "lastMessage" : 0,
                "name" : "unknown-/192.46.215.198:5674",
                "agentName" : "unknown",
                "protocolVersion" : "Version(0,0,1)"
            }
        ]
        }
    }