@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) • 907 B
text/typescript
import { RequestErrorType } from "viem/utils";
/**
* The parameters for the `eth_getActiveRulesAt` method.
*
* @property timestamp - The timestamp at which to retrieve the active rules.
*/
export type GetActiveRulesAtParameters = {
timestamp: string;
};
/**
* The return type for the `eth_getActiveRulesAt` method.
*
* @property ethRules - The active rules for the Ethereum chain.
* @property avalancheRules - The active rules for the Avalanche chain.
* @property precompiles - The precompiles for the Ethereum chain.
*/
export type GetActiveRulesAtReturnType = {
ethRules: Map<string, true>;
avalancheRules: Map<string, true>;
precompiles: Map<string, object>;
};
export type GetActiveRulesAtErrorType = RequestErrorType;
export type GetActiveRulesAtMethod = {
Method: "eth_getActiveRulesAt";
Parameters: [GetActiveRulesAtParameters];
ReturnType: GetActiveRulesAtReturnType;
};