import { type GetBlobBaseFeeErrorType as viem_GetBlobBaseFeeErrorType, type GetBlobBaseFeeReturnType as viem_GetBlobBaseFeeReturnType, getBlobBaseFee as viem_getBlobBaseFee, } from 'viem/actions' import type { Config } from '../createConfig.js' import type { ChainIdParameter } from '../types/properties.js' import type { Compute } from '../types/utils.js' import { getAction } from '../utils/getAction.js' export type GetBlobBaseFeeParameters< config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], > = Compute> export type GetBlobBaseFeeReturnType = viem_GetBlobBaseFeeReturnType export type GetBlobBaseFeeErrorType = viem_GetBlobBaseFeeErrorType /** https://wagmi.sh/core/api/actions/getBlobBaseFee */ export function getBlobBaseFee< config extends Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], >( config: config, parameters: GetBlobBaseFeeParameters = {}, ): Promise { const { chainId } = parameters const client = config.getClient({ chainId }) const action = getAction(client, viem_getBlobBaseFee, 'getBlobBaseFee') return action({}) }