syncer

Returns a list of currently connected peers

get/syncer/peers

Request

  • Base URL
    http://localhost:9980/api
  • URL
    http://localhost:9980/api/syncer/peers
  • Auth
    HTTP basic

Response

Current syncer peers.

addressstring required

Network address of the connected peer.

inboundboolean required

Whether the peer initiated the connection.

versionstring required

Protocol version reported by the peer.

firstSeenstring date-time nullable

Time the peer was first seen.

connectedSincestring date-time nullable

Time the current connection was established.

syncedBlocksinteger nullable

Number of blocks synced from this peer in the current session.

syncDurationinteger nullable

Total time spent syncing blocks from this peer in nanoseconds.

Changes

    • breaking

      the / response's property type changed from string to integer, and format from no format to int64 for status

    • breaking

      the / response's property type changed from integer to string, and format from int64 to no format for status