React Hooks
The SDK provides React hooks built on TanStack Query for seamless data fetching with caching, background updates, and error handling.Setup
Wrap your app withQueryClientProvider:
DAO Hooks
useDAOs
Fetch all DAOs with pagination and ordering.Parameters
Parameters
Response Schema
Response Schema
useDAO
Fetch a single DAO by ID.Response Schema
Response Schema
DAO type.useDAOsByManager
Fetch DAOs managed by a specific address.Proposal Hooks
useProposals
Fetch proposals with optional filters.Parameters
Parameters
useProposal
Fetch a single proposal by ID.useProposalsByDAO
Fetch proposals for a specific DAO.useActiveProposals
Fetch all currently active proposals across all DAOs.Vote Hooks
useVotes
Fetch votes with optional filters.Parameters
Parameters