Vote
To cast votes, users send ‘vote’ messages
- unit
string
required Hash of unit where the poll was defined. - choice
string
required Indicate what the user want to vote for. The choice must be defined in the poll message.
Returns the unit hash.
const params = {
unit: 'E0qMVlyvKUQ/H7QQjB1pEevprTUnl44cY/DPWyn3cF4=',
choice: 'stay'
};
client.post.vote(params, wif, function(err, result) {
if (err) return console.error(err);
console.log(result);
});
Last modified 2yr ago