UNPKG

decent-sdk

Version:

SDK for the Decent API

17 lines (16 loc) 683 B
import { Dao } from '../../core/types/Dao'; import { SupportedChainId } from '../../core/types/Chains'; import { QueryReturn, TanstackQueryOptions } from '../types'; type FetchDaosOptions = { chainId?: SupportedChainId; }; type FetchDaosParams = FetchDaosOptions & TanstackQueryOptions; /** * 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 {};