Poll

Anyone can set up a poll by sending a message with app=’poll’.

Arguments

  • question string required Question of the poll.

  • choices array required Allowed set of choices.

Returns

Returns the unit hash.

Example

const params = {
question: 'Should I stay or should I go?',
choices: ['stay', 'go']
};
client.post.poll(params, wif, function(err, result) {
console.log(result);
});

Learn more