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

27 lines (22 loc) 755 B
import { RequestErrorType } from "viem/utils"; /** * Parameters for the `platform.getStakingAssetID` method. * Get the ID of the asset used for staking on a Subnet. * @property subnetID - The ID of the Subnet to get the staking asset ID for */ export type GetStakingAssetIDParameters = { subnetID: string; }; /** * Return type for the `platform.getStakingAssetID` method. * @property assetID - The ID of the asset used for staking on the Subnet */ export type GetStakingAssetIDReturnType = { assetID: string; }; export type GetStakingAssetIDErrorType = RequestErrorType; export type GetStakingAssetIDMethod = { Method: "platform.getStakingAssetID"; Parameters: GetStakingAssetIDParameters; ReturnType: GetStakingAssetIDReturnType; };