Public Peers API

You are here:
< Back

List all peers

Endpoint

GET /api/peers

Query Parameters

NameTypeDescriptionRequired
pageintThe number of the page that will be returned.
limitintThe number of resources per page.

Response

{
    "meta": {
        "count": 2,
        "pageCount": 1,
        "totalCount": 2,
        "next": null,
        "previous": null,
        "self": "/v2/peers?page=1",
        "first": "/v2/peers?page=1",
        "last": "/v2/peers?page=1"
    },
    "data": [
        {
            "ip": "167.114.29.53",
            "port": 4001,
            "version": "2.0.16",
            "height": 6881793,
            "status": 200,
            "os": "linux", 
            "latency": 1390
        }
    ]
}

Retrieve a peer

Endpoint

GET /api/peers/{ip}

Query Parameters

NameTypeDescriptionRequired
ipstringThe IP address of the peer to be retrieved.

Response

{
    "data": {
        "ip": "167.114.29.55",
        "port": 4001,
        "version": "2.0.16",
        "height": 6881793,
        "status": 200,
        "os": "linux", 
        "latency": 355
    }
}
Last Updated On January 14, 2019