For the best viewing experience, please turn your phone to portrait mode.

Lisk Elements API Client: Voters Resource

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

get

Returns all votes received by a delegate.

Syntax

get(options)

Parameters

options: See options in the Core API documentation.

Return value

Promise: Resolves to an API response object.

Examples

client.voters.get({ username: 'oliver' })
    .then(res => {
        console.log(res.data);
    })