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

29 lines (23 loc) 784 B
import { RequestErrorType } from "viem/utils"; /** * Return type for the `platform.getFeeState` method. * Get the current fee state of the P-Chain. * @property capacity - The current capacity of the fee market * @property excess - The current excess of the fee market * @property price - The current price of the fee market * @property timestamp - The timestamp of the fee state in ISO8601 format */ export type GetFeeStateReturnType = { capacity: bigint; excess: bigint; /** Price to use for dynamic fee calculation */ price: bigint; /** ISO8601 DateTime */ timestamp: string; }; export type GetFeeStateErrorType = RequestErrorType; export type GetFeeStateMethod = { Method: "platform.getFeeState"; Parameters: {}; ReturnType: GetFeeStateReturnType; };