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

1
const params = {
2
question: 'Should I stay or should I go?',
3
choices: ['stay', 'go']
4
};
5
6
client.post.poll(params, wif, function(err, result) {
7
if (err) return console.error(err);
8
console.log(result);
9
});
Copied!

Learn more

Last modified 7mo ago