Skip to main content

Get basic peer info of the current node

GET 

//v1/node/peers/identity

Get basic peer info of the current node

Responses

This node peering identity

Schema
    isTrustedbooleanrequired
    namestringrequired
    peeringURLstringrequired

    The peering URL of the peer

    publicKeystringrequired

    The peers public key encoded in Hex

Authorization: Authorization

name: Authorizationtype: apiKeydescription: JWT Tokenin: header
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "/v1/node/peers/identity");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "<Authorization>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
Auth
ResponseClear

Click the Send API Request button above and see the response here!