# Vote

### **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** <a href="#learn-more" id="learn-more"></a>

```javascript
const params = {
  unit: 'E0qMVlyvKUQ/H7QQjB1pEevprTUnl44cY/DPWyn3cF4=',
  choice: 'stay'
};

client.post.vote(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>&#x20;
