UNPKG

wagmi

Version:

React Hooks for Ethereum

16 lines 611 B
'use client'; import { getFeeHistoryQueryOptions, } from '@wagmi/core/query'; import { useQuery } from '../utils/query.js'; import { useChainId } from './useChainId.js'; import { useConfig } from './useConfig.js'; /** https://wagmi.sh/react/api/hooks/useFeeHistory */ export function useFeeHistory(parameters = {}) { const config = useConfig(parameters); const chainId = useChainId({ config }); const options = getFeeHistoryQueryOptions(config, { ...parameters, chainId: parameters.chainId ?? chainId, }); return useQuery(options); } //# sourceMappingURL=useFeeHistory.js.map