decent-sdk
Version:
SDK for the Decent API
19 lines (18 loc) • 725 B
TypeScript
import { Dao } from '../../core/types/Dao';
import { Address } from '../../core/types/Common';
import { SupportedChainId } from '../../core/types/Chains';
import { QueryReturn } from '../types';
type FetchDaoParams = {
chainId?: SupportedChainId;
address?: Address;
};
/**
* React hook to fetch a specific DAO.
*
* @param {FetchDaoParams} params - Object containing chainId and address
* @param {SupportedChainId} params.chainId - The EIP155 chain ID
* @param {Address} params.address - The contract address of the DAO
* @returns {QueryReturn<Dao>} Object with { data: Dao, isLoading: boolean, error: Error | null }
*/
export declare const useFetchDao: (params: FetchDaoParams) => QueryReturn<Dao>;
export {};