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

28 lines (23 loc) 787 B
import { RequestErrorType } from "viem/utils"; import { BlockchainStatus } from "./common.js"; /** * Parameters for the `platform.getBlockchainStatus` method. * Get the status of a blockchain. * @property blockchainId - The ID of the blockchain to get the status for */ export type GetBlockchainStatusParameters = { blockchainId: string; }; /** * Return type for the `platform.getBlockchainStatus` method. * @property status - The status of the blockchain */ export type GetBlockchainStatusReturnType = { status: BlockchainStatus; }; export type GetBlockchainStatusErrorType = RequestErrorType; export type GetBlockchainStatusMethod = { Method: "platform.getBlockchainStatus"; Parameters: GetBlockchainStatusParameters; ReturnType: GetBlockchainStatusReturnType; };