HYCON
Search…
Getting a list of peers
api/v1
Retrieve a list of peers connected to your Hycon node.
Response - 200 OK, application/json
Parameter
Type
Description
host
string
IP address of the peer
port
number
Port connected with the peer
lastSeen
timestamp
Most recent timestamp the peer was seen
failCount
number
Number of connection failures
lastAttempt
timestamp
Most recent timestamp the peer attempted connection
active
number
Activity of the peer
GET/api/v1/peerList
Example request
1
$ curl -X GET http://localhost:2442/api/v1/peerList \
2
-H 'Content-Type: application/json;charset=utf-8'
Copied!
Response (Success)
1
[
2
{
3
"host": "110.14.194.10",
4
"port": 8148,
5
"lastSeen": "11/14/2018, 12:08:14 PM",
6
"failCount": 0,
7
"lastAttempt": "11/14/2018, 12:08:14 PM",
8
"active": 2
9
},
10
...
11
]
Copied!
Last modified 3mo ago
Copy link