# Poll

### **Arguments**

* **question** `string` *required*\
  Question of the poll.
* **choices** `array` *required*\
  Allowed set of choices.

### Returns

Returns the unit hash.

### Example

```javascript
const params = {
  question: 'Should I stay or should I go?',
  choices: ['stay', 'go']
};

client.post.poll(params, wif, function(err, result) {
  console.log(result);
});
```

### **Learn more** <a href="#learn-more" id="learn-more"></a>

* "29. Voting" (page 46) <https://obyte.org/Byteball.pdf>
