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) 674 B
import { RequestErrorType } from "viem/utils"; /** * Parameters for the `platform.validatedBy` method. * Get the Subnet that validates a given blockchain. * @property blockchainID - The blockchain's ID */ export type ValidatedByParameters = { blockchainID: string; }; /** * Return type for the `platform.validatedBy` method. * @property subnetID - The ID of the Subnet that validates the blockchain */ export type ValidatedByReturnType = { subnetID: string; }; export type ValidatedByErrorType = RequestErrorType; export type ValidatedByMethod = { Method: "platform.validatedBy"; Parameters: ValidatedByParameters; ReturnType: ValidatedByReturnType; };