Get information about a given peer.
GEThttp://127.0.0.1:14265/api/core/v2/peers/:peerId
Get information about a given peer.
Request
Path Parameters
peerId stringrequired
Identifier of the block.
Example: 12D3KooWMajsSUxSUFb3CRgmJvygYCGd27uMDdppVYNGud7xuKG5
Responses
- 200
- 400
- 403
- 404
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- default
Schema
allOf Peer
{
"allOf": {
"id": "string",
"multiAddresses": [
"string"
],
"alias": "string",
"relation": "known",
"connected": true,
"gossip": {
"heartbeat": {
"solidMilestoneIndex": 0,
"prunedMilestoneIndex": 0,
"latestMilestoneIndex": 0,
"connectedNeighbors": 0,
"syncedNeighbors": 0
},
"metrics": {
"newBlocks": 0,
"knownBlocks": 0,
"receivedBlocks": 0,
"receivedBlockRequests": 0,
"receivedMilestoneRequests": 0,
"receivedHeartbeats": 0,
"sentBlocks": 0,
"sentBlockRequests": 0,
"sentMilestoneRequests": 0,
"sentHeartbeats": 0,
"droppedPackets": 0
}
}
}
}
{
"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": {
"newBlocks": 3799,
"knownBlocks": 554,
"receivedBlocks": 4370,
"receivedBlockRequests": 0,
"receivedMilestoneRequests": 1,
"receivedHeartbeats": 1,
"sentBlocks": 6,
"sentBlockRequests": 4325,
"sentMilestoneRequests": 31,
"sentHeartbeats": 9,
"droppedPackets": 0
}
}
}
Unsuccessful operation: indicates that the provided data is invalid.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 400,
"message": "invalid data provided"
}
}
Unsuccessful operation: indicates that the endpoint is not available for public use.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 403,
"message": "not available for public use"
}
}
Unsuccessful operation: indicates that the requested data was not found.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 404,
"message": "could not find data"
}
}
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
{
"error": {
"code": 500,
"message": "internal server error"
}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'http://127.0.0.1:14265/api/core/v2/peers/:peerId' \
-H 'Accept: application/json'
ResponseClear