Query Delegation
This page covers how to fetch delegation data from the DAO Café GraphQL API. Endpoint:https://dao.cafe/graphql
How Delegation Works
In governance tokens (ERC20Votes), holders can delegate their voting power to another address:- Delegator: The address that owns tokens and delegates voting power
- Delegate: The address that receives voting power and can vote
Self-delegation is common — users must delegate to themselves to activate their voting power.
Get Delegations by DAO
Fetch all delegation relationships in a DAO.Get Delegations by Delegator
Find who a specific address has delegated to.Get Delegations to a Delegate
Find all addresses that have delegated to a specific delegate.Check if Address Has Delegated
Check if a specific address has delegated in a specific DAO.Get Top Delegates
Find addresses receiving the most delegations. Combine with token holder data for voting power.Addresses with
votes > balance have received delegations from others.Get Delegation with DAO Context
Fetch delegations along with DAO information.Get Recent Delegation Changes
Find the most recent delegation updates.Available Delegate Fields Reference
| Field | Type | Description |
|---|---|---|
id | String | Composite ID: chainId_token_delegator |
daoId | String | Reference to DAO |
chainId | Int | Network chain ID |
token | Address | Token contract |
delegator | Address | Address delegating |
toDelegate | Address | Address receiving delegation |
updatedAt | BigInt | Last update timestamp |
blockNumber | BigInt | Last update block |
transactionHash | Hex | Last update tx hash |