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 (24 loc) 774 B
import { RequestErrorType } from "viem/utils"; /** * Parameters for the `platform.getTotalStake` method. * Get the total amount of stake on a Subnet. * @property subnetID - The ID of the Subnet to get total stake for */ export type GetTotalStakeParameters = { subnetID: string; }; /** * Return type for the `platform.getTotalStake` method. * @property weight - The total weight of all validators on the Subnet * @property stake - The total amount of stake on the Subnet */ export type GetTotalStakeReturnType = { weight: number; stake?: number; }; export type GetTotalStakeErrorType = RequestErrorType; export type GetTotalStakeMethod = { Method: "platform.getTotalStake"; Parameters: GetTotalStakeParameters; ReturnType: GetTotalStakeReturnType; };