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

32 lines (27 loc) 789 B
import { RequestErrorType } from "viem/utils"; /** * The parameters for the `feeConfig` method. * * @property blk - The block number or hash at which to retrieve the fee config. Defaults to the latest block if omitted. */ export type FeeConfigParameters = { blk: string; }; /** * The return type for the `feeConfig` method. * * @property feeConfig - An object containing the fee config for each chain. * @property lastChangedAt - The timestamp of the last fee config change. */ export type FeeConfigReturnType = { feeConfig: { [key: string]: string; }; lastChangedAt: string; }; export type FeeConfigErrorType = RequestErrorType; export type FeeConfigMethod = { Method: "eth_feeConfig"; Parameters: [FeeConfigParameters]; ReturnType: FeeConfigReturnType; };