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) 654 B
import { RequestErrorType } from "viem/utils"; /** * Parameters for the `platform.validates` method. * Get the IDs of the blockchains a Subnet validates. * @property subnetID - The Subnet's ID */ export type ValidatesParameters = { subnetID: string; }; /** * Return type for the `platform.validates` method. * @property blockchainIDs - The IDs of the blockchains the Subnet validates */ export type ValidatesReturnType = { blockchainIDs: string[]; }; export type ValidatesErrorType = RequestErrorType; export type ValidatesMethod = { Method: "platform.validates"; Parameters: ValidatesParameters; ReturnType: ValidatesReturnType; };