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

$ curl -X GET http://localhost:2442/api/v1/peerList \
    -H 'Content-Type: application/json;charset=utf-8'

Response (Success)

[
    {
        "host": "110.14.194.10",
        "port": 8148,
        "lastSeen": "11/14/2018, 12:08:14 PM",
        "failCount": 0,
        "lastAttempt": "11/14/2018, 12:08:14 PM",
        "active": 2
    },
    ...
]

Last updated