Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// network = 'ropsten';
// }
this.lastId = 0;
const options = {
credentials: {
id: credentialID,
secret,
},
network,
debug: config.debug,
disableBlockTracking: true,
};
// Pass options with the provider
this.bitskiProvider = Bitski.getProvider(clientID, options);
// this.bitskiProvider._blockTracker.stop();
this.accounts = accounts;
}
public constructor(options: BitskiProviderOptions) {
super(options);
this._options = options;
this._client = this;
this._provider = Bitski.getProvider(options.clientId, {
network: typeof options.network === 'undefined' ? 'mainnet' : options.network,
credentials: {
id: options.credentialsId,
secret: options.credentialsSecret,
},
});
}