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

37 lines (32 loc) 880 B
import { RequestErrorType } from "viem/utils"; /** * Parameters for the info.acps method. */ export type AcpsParameters = Record<string, never>; /** * Return type for the info.acps method. * @property acps - Map of ACP IDs to their peer preferences */ export type AcpsReturnType = { acps: Map< number, { // The weight of stake supporting the ACP supportWeight: bigint; // The set of node IDs supporting the ACP supporters: Set<string>; // The weight of stake objecting to the ACP objectWeight: bigint; // The set of node IDs objecting to the ACP objectors: Set<string>; // The weight of stake abstaining from the ACP abstainWeight: bigint; } >; }; export type AcpsErrorType = RequestErrorType; export type AcpsMethod = { Method: "info.acps"; Parameters: {}; ReturnType: AcpsReturnType; };