diff --git a/src/lib/client.ts b/src/lib/client.ts index 6ae7fa4..cc46a6e 100644 --- a/src/lib/client.ts +++ b/src/lib/client.ts @@ -62,6 +62,14 @@ export class CoreClient { const { debug } = opt + if (opt.network === 'bitcoin') { + opt.network = 'main' + } + + if (opt.network === 'testnet') { + opt.network = 'test' + } + this._cache = [ 'null', null ] this.params = [