Votes

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

get

This returns all votes placed by an account.

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.votes.get({ address: '15434119221255134066L' })
    .then(res => {
        console.log(res.data);
    })