Get information about the peers of the node.
GET/api/v1/peers
Get information about the peers of the node.
Request
Responses
- 200
- 403
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- default
Schema
- Array [
- ]
data Peer[]required
The identifier of the peer.
The addresses of the peer.
The alias of the peer.
Possible values: [known
, unknown
, autopeered
]
Tells whether the peer is connected or not.
gossip Gossip
Information about the gossip stream with the peer.
heartbeat Heartbeatnullable
Information about the most recent heartbeat of the peer. The heartbeat is null
if none has been received yet.
The most recent milestone that has been solidified by the node.
Tells from which starting point the node holds data.
The most recent milestone known to the node.
Tells how many connected peers the node has.
Tells how many synced peers the node has.
metrics Metrics
Metrics about the gossip stream with the peer.
The number of received messages that were new for the node.
The number of received messages that already were known to the node.
The number of received messages from the peer.
The number of received message requests from the peer.
The number of received milestone requests from the peer.
The number of received heartbeats from the peer.
The number of sent messages to the peer.
The number of sent message requests to the peer.
The number of sent milestone requests to the peer.
The number of sent heartbeats to the peer.
The number of dropped packets.
{
"data": [
{
"id": "string",
"multiAddresses": [
"string"
],
"alias": "string",
"relation": "known",
"connected": true,
"gossip": {
"heartbeat": {
"solidMilestoneIndex": 0,
"prunedMilestoneIndex": 0,
"latestMilestoneIndex": 0,
"connectedNeighbors": 0,
"syncedNeighbors": 0
},
"metrics": {
"newMessages": 0,
"knownMessages": 0,
"receivedMessages": 0,
"receivedMessageRequests": 0,
"receivedMilestoneRequests": 0,
"receivedHeartbeats": 0,
"sentMessages": 0,
"sentMessageRequests": 0,
"sentMilestoneRequests": 0,
"sentHeartbeats": 0,
"droppedPackets": 0
}
}
}
]
}
{
"data": [
{
"id": "12D3KooWMajsSUxSUFb3CRgmJvygYCGd27uMDdppVYNGud7xuKG5",
"multiAddresses": [
"/dns/abc.com/tcp/15602"
],
"alias": "abc",
"relation": "known",
"connected": true,
"gossip": {
"heartbeat": {
"solidMilestoneIndex": 61527,
"prunedMilestoneIndex": 61200,
"latestMilestoneIndex": 61527,
"connectedNeighbors": 5,
"syncedNeighbors": 7
},
"metrics": {
"newMessages": 3799,
"knownMessages": 554,
"receivedMessages": 4370,
"receivedMessageRequests": 0,
"receivedMilestoneRequests": 1,
"receivedHeartbeats": 1,
"sentMessages": 6,
"sentMessageRequests": 4325,
"sentMilestoneRequests": 31,
"sentHeartbeats": 9,
"droppedPackets": 0
}
}
},
{
"id": "12D3KooWNYDcJqxnWqCLSgeQKqNStwFUqHSJXPdSYTJnfxQESzie",
"multiAddresses": [
"/dns/xyz.com/tcp/15600"
],
"alias": "xyz",
"relation": "known",
"connected": true,
"gossip": {
"heartbeat": {
"solidMilestoneIndex": 61527,
"prunedMilestoneIndex": 56508,
"latestMilestoneIndex": 61527,
"connectedNeighbors": 5,
"syncedNeighbors": 6
},
"metrics": {
"newMessages": 510,
"knownMessages": 79,
"receivedMessages": 589,
"receivedMessageRequests": 0,
"receivedMilestoneRequests": 1,
"receivedHeartbeats": 1,
"sentMessages": 42,
"sentMessageRequests": 576,
"sentMilestoneRequests": 1,
"sentHeartbeats": 9,
"droppedPackets": 0
}
}
}
]
}
Unsuccessful operation: indicates that the endpoint is not available for public use.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 403,
"message": "not available for public use"
}
}
Unsuccessful operation: indicates that an unexpected, internal server error happened which prevented the node from fulfilling the request.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 500,
"message": "internal server error"
}
}