Skip to main content

Query Proposals

This page covers all the ways to fetch proposal data from the DAO Café GraphQL API. Endpoint: https://dao.cafe/graphql

Get All Proposals

Fetch all proposals across all DAOs, ordered by creation date.

Get Proposals by State

Filter proposals by their current state.

Active Proposals

Pending Proposals

Executed Proposals

Available states: PENDING, ACTIVE, CANCELED, DEFEATED, SUCCEEDED, QUEUED, EXPIRED, EXECUTED

Get Proposals by DAO

Fetch all proposals for a specific DAO.
Variables:

Get Proposal by ID

Fetch a single proposal with full details.

Get Proposals by Proposer

Find all proposals created by a specific address.

Get Proposal with Votes

Fetch a proposal along with all votes cast.

Get Proposals by Chain

Filter proposals by network.

Available Proposal Fields Reference

FieldTypeDescription
idStringComposite ID: chainId_governor_proposalId
daoIdStringParent DAO ID
chainIdIntNetwork chain ID
governorAddressGovernor contract
proposalIdBigIntOn-chain proposal ID
proposerAddressCreator address
descriptionStringProposal description
targets[String]Target contract addresses
values[String]ETH values for calls
calldatas[String]Encoded function calls
signatures[String]Function signatures (optional)
decodedActions[JSON]Human-readable decoded actions (see docs)
stateEnumCurrent proposal state
forVotesBigIntTotal FOR votes
againstVotesBigIntTotal AGAINST votes
abstainVotesBigIntTotal ABSTAIN votes
voteStartBigIntVoting start timestamp
voteEndBigIntVoting end timestamp
etaBigIntExecution time (when queued)
createdAtBigIntCreation timestamp
blockNumberBigIntCreation block
transactionHashHexCreation tx hash