UNPKG

jcc_rpc

Version:
33 lines (32 loc) 673 B
import JcBase from "./base"; /** * creation example: * * 1: `new JcConfig(["http://localhost:8080", "https://localhost:8090"])` * * 2: `new JcConfig(["localhost"], 8080, false)` * * @export * @class JcConfig * @extends {JcBase} */ export default class JcConfig extends JcBase { constructor(...args: any[]); /** * request config of jccdex * * `bizHosts`: biz nodes * * `cfgHosts`: config nodes * * `exHosts`: exchange nodes * * `infoHosts`: info nodes * * `scanHosts`: explorer nodes * * @returns {Promise<IResponse>} * @memberof JcConfig */ getConfig(): Promise<IResponse>; }