PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@hashgraph/sdk/lib/client

Просмотр файла: NodeClient.d.ts

export namespace Network {
    const LOCAL_NODE: {
        "127.0.0.1:50211": AccountId;
    };
}
export namespace MirrorNetwork {
    /**
     * @param {string} name
     * @returns {string[]}
     */
    export function fromName(name: string): string[];
    export const MAINNET: string[];
    export const TESTNET: string[];
    export const PREVIEWNET: string[];
    const LOCAL_NODE_1: string[];
    export { LOCAL_NODE_1 as LOCAL_NODE };
}
/**
 * @augments {Client<NodeChannel, NodeMirrorChannel>}
 */
export default class NodeClient extends Client<NodeChannel, NodeMirrorChannel> {
    /**
     * @param {string | ClientConfiguration} data
     * @returns {NodeClient}
     */
    static fromConfig(data: string | ClientConfiguration): NodeClient;
    /**
     * @param {string} filename
     * @returns {Promise<NodeClient>}
     */
    static fromConfigFile(filename: string): Promise<NodeClient>;
    /**
     * Construct a client for a specific network.
     *
     * It is the responsibility of the caller to ensure that all nodes in the map are part of the
     * same Hedera network. Failure to do so will result in undefined behavior.
     *
     * The client will load balance all requests to Hedera using a simple round-robin scheme to
     * chose nodes to send transactions to. For one transaction, at most 1/3 of the nodes will be
     * tried.
     *
     * @param {{[key: string]: (string | AccountId)}} network
     * @param {ClientConfiguration} [props]
     * @returns {NodeClient}
     */
    static forNetwork(network: {
        [key: string]: string | AccountId;
    }, props?: import("./Client.js").ClientConfiguration | undefined): NodeClient;
    /**
     * @param {string} network
     * @param {object} [props]
     * @param {boolean} [props.scheduleNetworkUpdate]
     * @returns {NodeClient}
     */
    static forName(network: string, props?: {
        scheduleNetworkUpdate?: boolean | undefined;
    } | undefined): NodeClient;
    /**
     * Construct a Hedera client pre-configured for Mainnet access.
     *
     * @param {object} [props]
     * @param {boolean} [props.scheduleNetworkUpdate]
     * @returns {NodeClient}
     */
    static forMainnet(props?: {
        scheduleNetworkUpdate?: boolean | undefined;
    } | undefined): NodeClient;
    /**
     * Construct a Hedera client pre-configured for Testnet access.
     *
     * @param {object} [props]
     * @param {boolean} [props.scheduleNetworkUpdate]
     * @returns {NodeClient}
     */
    static forTestnet(props?: {
        scheduleNetworkUpdate?: boolean | undefined;
    } | undefined): NodeClient;
    /**
     * Construct a Hedera client pre-configured for Previewnet access.
     *
     * @param {object} [props]
     * @param {boolean} [props.scheduleNetworkUpdate]
     * @returns {NodeClient}
     */
    static forPreviewnet(props?: {
        scheduleNetworkUpdate?: boolean | undefined;
    } | undefined): NodeClient;
    /**
     * Construct a Hedera client pre-configured for local-node access.
     *
     * @param {object} [props]
     * @param {boolean} [props.scheduleNetworkUpdate]
     * @returns {NodeClient}
     */
    static forLocalNode(props?: {
        scheduleNetworkUpdate?: boolean | undefined;
    } | undefined): NodeClient;
    /**
     * @param {ClientConfiguration} [props]
     */
    constructor(props?: import("./Client.js").ClientConfiguration | undefined);
    /** @private */
    private _maxExecutionTime;
    /**
     * Available only for NodeClient
     *
     * @param {number} maxExecutionTime
     * @returns {this}
     */
    setMaxExecutionTime(maxExecutionTime: number): this;
    /**
     * @private
     * @param {string} name
     * @returns {this}
     */
    private _setNetworkFromName;
    /**
     * @param {string[] | string} mirrorNetwork
     * @returns {this}
     */
    setMirrorNetwork(mirrorNetwork: string[] | string): this;
    /**
     * @override
     * @returns {(address: string, cert?: string) => NodeChannel}
     */
    override _createNetworkChannel(): (address: string, cert?: string) => NodeChannel;
}
export type ClientConfiguration = import("./Client.js").ClientConfiguration;
import AccountId from "../account/AccountId.js";
import NodeChannel from "../channel/NodeChannel.js";
import NodeMirrorChannel from "../channel/NodeMirrorChannel.js";
import Client from "./Client.js";

Выполнить команду


Для локальной разработки. Не используйте в интернете!