> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shakesco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Voting Ratio

> Configure how many tokens equal one vote

<span style={{display:"none"}}>For the complete documentation index, see [llms.txt](/llms.txt).</span>

Sets the conversion rate between token balance and voting power. If you set `tokens_per_vote: 10`, a customer with 50 tokens gets 5 votes. Useful for token-weighted polls or governance decisions.

### Request Body

<ParamField body="tokens_per_vote" type="number" required>
  Tokens required for one vote (e.g. `10`). Decimals allowed.
</ParamField>

### Response

<ResponseField name="tx_hash" type="string">
  Reference identifier for the configuration
</ResponseField>

```javascript theme={null}
await fetch("https://tokens.shakesco.com/set-voting-ratio", {
  method: "POST",
  headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ tokens_per_vote: 10 }),
});
```

<ResponseExample>
  ```json 200 OK theme={null}
  { "tx_hash": "0xabc..." }
  ```
</ResponseExample>
