Documentation Index
Fetch the complete documentation index at: https://dao.cafe/docs/llms.txt
Use this file to discover all available pages before exploring further.
Query Votes & Voting Power
This page covers how to fetch vote data and check voting power from the DAO Café GraphQL API. Endpoint:https://dao.cafe/graphql
Get Votes by Proposal
Fetch all votes cast on a specific proposal.Get Votes by Voter
Find all votes cast by a specific address across all proposals.Get Votes by Support Type
Filter votes by how they voted.FOR Votes
AGAINST Votes
ABSTAIN Votes
Support types:
FOR, AGAINST, ABSTAINCheck Voting Power
Query token holders to check voting power for a specific address.Get Voting Power for Address
votes field represents the actual voting power (may differ from balance due to delegation).
Get Top Voters by Voting Power
Find the addresses with the most voting power in a DAO.Get Top Token Holders by Balance
Find the addresses with the most tokens (may differ from voting power).Get All Token Holders with Voting Power
Find all addresses that have voting power > 0.Available Vote Fields Reference
| Field | Type | Description |
|---|---|---|
id | String | Composite ID |
proposalId | String | Reference to proposal |
daoId | String | Reference to DAO |
chainId | Int | Network chain ID |
governor | Address | Governor contract |
voter | Address | Voter address |
support | Enum | FOR, AGAINST, ABSTAIN |
weight | BigInt | Voting power used |
reason | String | Vote reason (optional) |
params | Hex | Extra params (optional) |
createdAt | BigInt | Vote timestamp |
blockNumber | BigInt | Vote block |
transactionHash | Hex | Vote tx hash |
Available Token Holder Fields Reference
| Field | Type | Description |
|---|---|---|
id | String | Composite ID |
daoId | String | Reference to DAO |
chainId | Int | Network chain ID |
token | Address | Token contract |
holder | Address | Holder address |
balance | BigInt | Token balance |
votes | BigInt | Voting power |
updatedAt | BigInt | Last update |
blockNumber | BigInt | Last update block |