@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
20 lines (16 loc) • 587 B
text/typescript
import { RequestErrorType } from "viem/utils";
/**
* Return type for the info.uptime method.
* @property rewardingStakePercentage - The percent of stake which thinks this node is above the uptime requirement
* @property weightedAveragePercentage - The stake-weighted average of all observed uptimes for this node
*/
export type UptimeReturnType = {
rewardingStakePercentage: number;
weightedAveragePercentage: number;
};
export type UptimeErrorType = RequestErrorType;
export type UptimeMethod = {
Method: "info.uptime";
Parameters: {};
ReturnType: UptimeReturnType;
};