UNPKG

@avalanche-sdk/client

Version:

A TypeScript SDK for interacting with the Avalanche network through JSON-RPC APIs. This SDK provides a comprehensive set of tools to interact with all Avalanche chains (P-Chain, X-Chain, C-Chain) and various APIs, including wallet functionality for transa

26 lines 999 B
import { Chain } from "viem"; import { Client, Transport } from "viem"; import { FeeConfigParameters, FeeConfigReturnType } from "./types/feeConfig.js"; /** * Get the fee config for a specific block. * * @param client - The client to use. * @param blk - The block number or hash to get the fee config for. {@link FeeConfigParameters } * @returns The fee config for the specified block. {@link FeeConfigReturnType} * * @example * ```ts * import { createClient, http } from '@avalanche-sdk/client' * import { avalanche } from '@avalanche-sdk/client/chains' * import { feeConfig } from '@avalanche-sdk/client/methods/public' * * const client = createClient({ * chain: avalanche, * transport: http(), * }) * * const feeConfig = await feeConfig(client, { blk: "0x1" }) * ``` */ export declare function feeConfig<chain extends Chain | undefined>(client: Client<Transport, chain>, { blk }: FeeConfigParameters): Promise<FeeConfigReturnType>; //# sourceMappingURL=feeConfig.d.ts.map