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) {
if (err) return console.error(err);
console.log(result);
});
Learn more
"29. Voting" (page 46) https://obyte.org/Byteball.pdf
Last updated