Skip to main content
GET
/
voting-power
Voting Power
curl --request GET \
  --url https://tokens.shakesco.com/voting-power \
  --header 'Authorization: Bearer <token>'
{ "voting_power": "15" }

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. Returns the number of votes a customer has based on their available balance and the configured ratio. Only available balance counts: staked and unvested tokens do not contribute. Returns "0" if voting hasn’t been configured.

Query Parameters

customer_ref
string
required
Your unique identifier for this customer

Response

voting_power
string
Integer number of votes (e.g. "15")
const res = await fetch(
  "https://tokens.shakesco.com/voting-power?customer_ref=customer-123",
  { headers: { Authorization: `Bearer ${API_KEY}` } }
);
const { voting_power } = await res.json();
{ "voting_power": "15" }