Skip to main content
POST
/
set-voting-ratio
Set Voting Ratio
curl --request POST \
  --url https://tokens.shakesco.com/set-voting-ratio \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tokens_per_vote": 123
}
'
{ "tx_hash": "0xabc..." }

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.

For the complete documentation index, see llms.txt. 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

tokens_per_vote
number
required
Tokens required for one vote (e.g. 10). Decimals allowed.

Response

tx_hash
string
Reference identifier for the configuration
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 }),
});
{ "tx_hash": "0xabc..." }