Query Token Holders
This page covers how to fetch token holder data from the DAO Café GraphQL API. Endpoint:https://dao.cafe/graphql
Understanding Token Holders
Token holders are addresses that hold governance tokens. Each holder record tracks:- Balance: The actual token balance (tokens owned)
- Votes: The voting power (may differ from balance due to delegation)
An address can have
votes > balance if they’ve received delegations, or votes < balance if they’ve delegated to someone else.Get Token Holders by DAO
Fetch all token holders in a DAO, ordered by voting power.Get Top Token Holders
Find the addresses with the highest token balances.Get Token Holder by Address
Find a specific holder’s token balance and voting power in a DAO.The holder ID format is:
chainId_tokenAddress_holderAddress (all lowercase).
Example: 8453_0xb67b87d2f26928784f51a0e263a0f7a9a5efd833_0x983332bb0b689ed97907f658525d19f4d876d96cGet Holdings by Address
Find all token holdings for a specific address across all DAOs.Get Holders with Delegations
Find holders who have received delegations (votes > balance).Token Holder Schema
| Field | Type | Description |
|---|---|---|
id | String | Composite ID: chainId_token_holder |
daoId | String | Reference to DAO (chainId_governor) |
chainId | Int | Network chain ID (8453 for Base, 11155111 for Sepolia) |
token | Address | Governance token contract address |
holder | Address | Token holder address |
balance | BigInt | Token balance (in wei) |
votes | BigInt | Voting power (in wei) |
updatedAt | BigInt | Last update timestamp |
blockNumber | BigInt | Last update block number |
Example Response
Balance and votes are returned as strings representing wei (18 decimals). Divide by 10^18 for human-readable amounts.