Get basic peer info of the current node
GET//v1/node/peers/identity
Get basic peer info of the current node
Responses
- 200
- 401
This node peering identity
- application/json
- Schema
- Example (from schema)
Schema
isTrusted booleanrequired
name stringrequired
peeringURL stringrequired
The peering URL of the peer
publicKey stringrequired
The peers public key encoded in Hex
{
"peeringURL": "localhost:4000",
"name": "name",
"publicKey": 0,
"isTrusted": true
}
Unauthorized (Wrong permissions, missing token)
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
missingPermission stringrequired
{
"error": "string",
"missingPermission": "string"
}
Authorization: Authorization
name: Authorizationtype: apiKeydescription: JWT Tokenin: header
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET '/v1/node/peers/identity' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear