UNPKG

@hashgraph/sdk

Version:
35 lines (34 loc) 1.11 kB
/** * @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel */ /** * @augments {ManagedNetwork<MirrorChannel, MirrorNode, string>} */ export default class MirrorNetwork extends ManagedNetwork<import("../channel/MirrorChannel.js").default, MirrorNode, string> { /** * @param {(address: string) => MirrorChannel} channelInitFunction */ constructor(channelInitFunction: (address: string) => MirrorChannel); /** * @param {string[]} network */ setNetwork(network: string[]): void; /** * @returns {string[]} */ get network(): string[]; /** * @returns {MirrorNode} */ getNextMirrorNode(): MirrorNode; /** * Gets the base URL for the mirror node REST API. * * @returns {string} The base URL for the mirror node REST API * @throws {Error} When no mirror network is configured or available */ get mirrorRestApiBaseUrl(): string; } export type MirrorChannel = import("../channel/MirrorChannel.js").default; import MirrorNode from "../MirrorNode.js"; import ManagedNetwork from "./ManagedNetwork.js";