Skip to main content

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.
This query shows which addresses a user has delegated their voting power to across all DAOs.

Get Delegations to a Delegate

Find all addresses that have delegated to a specific delegate.
This is useful for finding all the delegators backing 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

FieldTypeDescription
idStringComposite ID: chainId_token_delegator
daoIdStringReference to DAO
chainIdIntNetwork chain ID
tokenAddressToken contract
delegatorAddressAddress delegating
toDelegateAddressAddress receiving delegation
updatedAtBigIntLast update timestamp
blockNumberBigIntLast update block
transactionHashHexLast update tx hash