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

25 lines 917 B
import { RequestErrorType } from "viem/utils"; /** * Return type for the `platform.getBlockchains` method. * Get all the blockchains that exist (excluding the P-Chain). * @property blockchains - List of blockchains * @property blockchains[].id - The ID of the blockchain * @property blockchains[].name - The name of the blockchain * @property blockchains[].subnetID - The ID of the subnet this blockchain is running on * @property blockchains[].vmID - The ID of the Virtual Machine this blockchain runs */ export type GetBlockchainsReturnType = { blockchains: { id: string; name: string; subnetID: string; vmID: string; }[]; }; export type GetBlockchainsErrorType = RequestErrorType; export type GetBlockchainsMethod = { Method: "platform.getBlockchains"; Parameters: {}; ReturnType: GetBlockchainsReturnType; }; //# sourceMappingURL=getBlockchains.d.ts.map