To cast votes, users send ‘vote’ messages
Last updated 6 years ago
unit string required Hash of unit where the poll was defined.
string
choice string required Indicate what the user want to vote for. The choice must be defined in the poll message.
Returns the unit hash.
"29. Voting" (page 46)
const params = { unit: 'E0qMVlyvKUQ/H7QQjB1pEevprTUnl44cY/DPWyn3cF4=', choice: 'stay' }; client.post.vote(params, wif, function(err, result) { console.log(result); });