Vote
'Poll' 메세지에 의해 게시된 여론조사에 본인이 투표를 진행하기 위해서는 'vote' 타입 메세지(app='vote')를 보낸다.
Arguments
unit
stringrequired 여론조사 내용이 기록된 유닛의 해시.choice
stringrequired 본인이 원하는 선택, 선택 내용들은 poll 메세지에 정의되어 있어야 한다.
Returns
결과가 기록된 유닛 해시
Example
const params = {
unit: 'E0qMVlyvKUQ/H7QQjB1pEevprTUnl44cY/DPWyn3cF4=',
choice: 'stay'
};
client.post.vote(params, wif, function(err, result) {
console.log(result);
});Last updated
Was this helpful?