UNPKG

decent-sdk

Version:

SDK for the Decent API

16 lines (15 loc) 596 B
import { Dao } from '../../core/types/Dao'; import { SupportedChainId } from '../../core/types/Chains'; import { QueryReturn } from '../types'; type FetchDaosParams = { chainId?: SupportedChainId; }; /** * React hook to fetch all DAOs. * * @param {FetchDaosParams} params - Optional parameters to filter DAOs by chainId. * @param {SupportedChainId} params.chainId - The EIP155 chain ID * @returns {QueryReturn<Dao[]>} Object with { data: Dao[], isLoading: boolean, error: Error | null } */ export declare const useFetchDaos: (params?: FetchDaosParams) => QueryReturn<Dao[]>; export {};