UNPKG

decent-sdk

Version:

SDK for the Decent API

11 lines (10 loc) 478 B
import { SupportedChainId } from '../../core/types/Chains'; import { QueryReturn, TanstackQueryOptions } from '../types'; type ApiChainsParams = TanstackQueryOptions; /** * React hook to fetch the list of supported chains from the API. * * @returns {QueryReturn<SupportedChainId[]>} Object with { data: SupportedChainId[], loading: boolean, error: Error | null } */ export declare const useApiChains: (params: ApiChainsParams) => QueryReturn<SupportedChainId[]>; export {};