Vote

To cast votes, users send ‘vote’ messages

Arguments

  • 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

Returns the unit hash.

Example

const params = {
unit: 'E0qMVlyvKUQ/H7QQjB1pEevprTUnl44cY/DPWyn3cF4=',
choice: 'stay'
};
client.post.vote(params, wif, function(err, result) {
console.log(result);
});

Learn more