Public Peers API

List all peers

Endpoint

GET /api/peers

Query Parameters

Name Type Description Required
page int The number of the page that will be returned.
limit int The 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": 4002,
            "version": "1.1.1",
            "status": "OK",
            "latency": 1390
        }
    ]
}

Retrieve a peer

Endpoint

GET /api/peers/{ip}

Query Parameters

Name Type Description Required
ip string The IP address of the block to be retrieved.

Response

{
    "data": {
        "ip": "167.114.29.55",
        "port": 4002,
        "version": "1.1.1",
        "status": "OK",
        "latency": 355
    }
}
Last Updated: 8/24/2018, 6:39:53 AM