import { Conflux } from "js-conflux-sdk"; import { BaseProvider } from "./base_provider"; export class JsonRpcProvider extends BaseProvider { public networkId: number; private _url: string; constructor (url: string, networkId: number = 1) { super(); this._url = url; this.networkId = networkId; this.cfxClient = new Conflux({ url: url, networkId: networkId, }); } }