@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) • 896 B
text/typescript
import { RequestErrorType } from "viem/utils";
/**
* Parameters for the `platform.getMinStake` method.
* Get the minimum stake required for validators and delegators.
* @property subnetID - The ID of the Subnet to get minimum stake for. If omitted, gets minimum stake for the Primary Network
*/
export type GetMinStakeParameters = {
subnetID?: string;
};
/**
* Return type for the `platform.getMinStake` method.
* @property minValidatorStake - The minimum amount of stake required for a validator
* @property minDelegatorStake - The minimum amount of stake required for a delegator
*/
export type GetMinStakeReturnType = {
minValidatorStake: bigint;
minDelegatorStake: bigint;
};
export type GetMinStakeErrorType = RequestErrorType;
export type GetMinStakeMethod = {
Method: "platform.getMinStake";
Parameters: GetMinStakeParameters;
ReturnType: GetMinStakeReturnType;
};