Lisk Elements API Client: Peers Resource

This is a resource for interacting with the peers endpoint provided by the Lisk public API. Each of the following methods can be accessed via the peers property of an APIClient instance.

get

This searches for specified peers.

Syntax

get([options])

Parameters

options: Please see the options in the following link: Core API documentation.

Return value

Promise: Resolves to an API response object.

Examples

client.peers.get({ height: 5509963 })
    .then(res => {
        console.log(res.data);
    })