@did-btcr2/bitcoin 0.3.4 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/cjs/client/http.js +9 -0
  2. package/dist/cjs/client/http.js.map +1 -0
  3. package/dist/cjs/client/rest/address.js +20 -28
  4. package/dist/cjs/client/rest/address.js.map +1 -1
  5. package/dist/cjs/client/rest/block.js +23 -22
  6. package/dist/cjs/client/rest/block.js.map +1 -1
  7. package/dist/cjs/client/rest/index.js +31 -84
  8. package/dist/cjs/client/rest/index.js.map +1 -1
  9. package/dist/cjs/client/rest/protocol.js +129 -0
  10. package/dist/cjs/client/rest/protocol.js.map +1 -0
  11. package/dist/cjs/client/rest/transaction.js +19 -21
  12. package/dist/cjs/client/rest/transaction.js.map +1 -1
  13. package/dist/cjs/client/rpc/index.js +79 -337
  14. package/dist/cjs/client/rpc/index.js.map +1 -1
  15. package/dist/cjs/client/rpc/interface.js +1 -6
  16. package/dist/cjs/client/rpc/interface.js.map +1 -1
  17. package/dist/cjs/client/rpc/json-rpc.js +40 -63
  18. package/dist/cjs/client/rpc/json-rpc.js.map +1 -1
  19. package/dist/cjs/client/rpc/protocol.js +134 -0
  20. package/dist/cjs/client/rpc/protocol.js.map +1 -0
  21. package/dist/cjs/connection.js +104 -0
  22. package/dist/cjs/connection.js.map +1 -0
  23. package/dist/cjs/constants.js +16 -5
  24. package/dist/cjs/constants.js.map +1 -1
  25. package/dist/cjs/errors.js.map +1 -1
  26. package/dist/cjs/index.js +21 -13
  27. package/dist/cjs/index.js.map +1 -1
  28. package/dist/cjs/types.js +5 -55
  29. package/dist/cjs/types.js.map +1 -1
  30. package/dist/esm/client/http.js +9 -0
  31. package/dist/esm/client/http.js.map +1 -0
  32. package/dist/esm/client/rest/address.js +20 -28
  33. package/dist/esm/client/rest/address.js.map +1 -1
  34. package/dist/esm/client/rest/block.js +23 -22
  35. package/dist/esm/client/rest/block.js.map +1 -1
  36. package/dist/esm/client/rest/index.js +31 -84
  37. package/dist/esm/client/rest/index.js.map +1 -1
  38. package/dist/esm/client/rest/protocol.js +129 -0
  39. package/dist/esm/client/rest/protocol.js.map +1 -0
  40. package/dist/esm/client/rest/transaction.js +19 -21
  41. package/dist/esm/client/rest/transaction.js.map +1 -1
  42. package/dist/esm/client/rpc/index.js +79 -337
  43. package/dist/esm/client/rpc/index.js.map +1 -1
  44. package/dist/esm/client/rpc/interface.js +1 -6
  45. package/dist/esm/client/rpc/interface.js.map +1 -1
  46. package/dist/esm/client/rpc/json-rpc.js +40 -63
  47. package/dist/esm/client/rpc/json-rpc.js.map +1 -1
  48. package/dist/esm/client/rpc/protocol.js +134 -0
  49. package/dist/esm/client/rpc/protocol.js.map +1 -0
  50. package/dist/esm/connection.js +104 -0
  51. package/dist/esm/connection.js.map +1 -0
  52. package/dist/esm/constants.js +16 -5
  53. package/dist/esm/constants.js.map +1 -1
  54. package/dist/esm/errors.js.map +1 -1
  55. package/dist/esm/index.js +21 -13
  56. package/dist/esm/index.js.map +1 -1
  57. package/dist/esm/types.js +5 -55
  58. package/dist/esm/types.js.map +1 -1
  59. package/dist/types/client/http.d.ts +22 -0
  60. package/dist/types/client/http.d.ts.map +1 -0
  61. package/dist/types/client/rest/address.d.ts +17 -19
  62. package/dist/types/client/rest/address.d.ts.map +1 -1
  63. package/dist/types/client/rest/block.d.ts +25 -16
  64. package/dist/types/client/rest/block.d.ts.map +1 -1
  65. package/dist/types/client/rest/index.d.ts +21 -51
  66. package/dist/types/client/rest/index.d.ts.map +1 -1
  67. package/dist/types/client/rest/protocol.d.ts +59 -0
  68. package/dist/types/client/rest/protocol.d.ts.map +1 -0
  69. package/dist/types/client/rest/transaction.d.ts +17 -17
  70. package/dist/types/client/rest/transaction.d.ts.map +1 -1
  71. package/dist/types/client/rpc/index.d.ts +112 -253
  72. package/dist/types/client/rpc/index.d.ts.map +1 -1
  73. package/dist/types/client/rpc/interface.d.ts +42 -6
  74. package/dist/types/client/rpc/interface.d.ts.map +1 -1
  75. package/dist/types/client/rpc/json-rpc.d.ts +21 -18
  76. package/dist/types/client/rpc/json-rpc.d.ts.map +1 -1
  77. package/dist/types/client/rpc/protocol.d.ts +83 -0
  78. package/dist/types/client/rpc/protocol.d.ts.map +1 -0
  79. package/dist/types/client/utils.d.ts +1 -0
  80. package/dist/types/connection.d.ts +82 -0
  81. package/dist/types/connection.d.ts.map +1 -0
  82. package/dist/types/constants.d.ts +17 -5
  83. package/dist/types/constants.d.ts.map +1 -1
  84. package/dist/types/errors.d.ts +5 -3
  85. package/dist/types/errors.d.ts.map +1 -1
  86. package/dist/types/index.d.ts +21 -13
  87. package/dist/types/index.d.ts.map +1 -1
  88. package/dist/types/network.d.ts +1 -0
  89. package/dist/types/types.d.ts +99 -696
  90. package/dist/types/types.d.ts.map +1 -1
  91. package/package.json +3 -3
  92. package/src/client/http.ts +28 -0
  93. package/src/client/rest/address.ts +24 -30
  94. package/src/client/rest/block.ts +29 -26
  95. package/src/client/rest/index.ts +38 -94
  96. package/src/client/rest/protocol.ts +153 -0
  97. package/src/client/rest/transaction.ts +23 -23
  98. package/src/client/rpc/index.ts +146 -379
  99. package/src/client/rpc/interface.ts +88 -53
  100. package/src/client/rpc/json-rpc.ts +53 -60
  101. package/src/client/rpc/protocol.ts +160 -0
  102. package/src/connection.ts +136 -0
  103. package/src/constants.ts +17 -5
  104. package/src/errors.ts +10 -3
  105. package/src/index.ts +81 -13
  106. package/src/types.ts +332 -972
  107. package/dist/cjs/bitcoin.js +0 -105
  108. package/dist/cjs/bitcoin.js.map +0 -1
  109. package/dist/esm/bitcoin.js +0 -105
  110. package/dist/esm/bitcoin.js.map +0 -1
  111. package/dist/types/bitcoin.d.ts +0 -60
  112. package/dist/types/bitcoin.d.ts.map +0 -1
  113. package/src/bitcoin.ts +0 -149
@@ -10,3 +10,4 @@ export declare function toBase64(s: string): string;
10
10
  * @returns {Promise<string>} The text content or empty string on failure
11
11
  */
12
12
  export declare function safeText(res: Response): Promise<string>;
13
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1,82 @@
1
+ import { networks } from 'bitcoinjs-lib';
2
+ import { HttpExecutor } from './client/http.js';
3
+ import { BitcoinRestClient } from './client/rest/index.js';
4
+ import { BitcoinCoreRpcClient } from './client/rpc/index.js';
5
+ import { NetworkName, RestConfig, RpcConfig } from './types.js';
6
+ /**
7
+ * Options for creating a BitcoinConnection.
8
+ */
9
+ export type BitcoinConnectionOptions = {
10
+ network: NetworkName;
11
+ rest: RestConfig;
12
+ rpc?: RpcConfig;
13
+ /** Optional HTTP executor for sans-I/O usage. Defaults to global `fetch`. */
14
+ executor?: HttpExecutor;
15
+ };
16
+ /**
17
+ * Represents a connection to a single Bitcoin network.
18
+ * Holds the REST and optional RPC clients for that network.
19
+ *
20
+ * The underlying clients use a sans-I/O protocol layer that separates
21
+ * request construction from HTTP execution. By default, requests are
22
+ * executed via the global `fetch` function. Supply a custom
23
+ * {@link HttpExecutor} to use any HTTP client.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * // Quick setup with defaults (uses fetch)
28
+ * const btc = BitcoinConnection.forNetwork('regtest');
29
+ *
30
+ * // With a custom HTTP executor
31
+ * const btc = BitcoinConnection.forNetwork('testnet4', {
32
+ * rest: { host: 'https://my-mempool/api' },
33
+ * executor: myCustomExecutor,
34
+ * });
35
+ *
36
+ * // Direct usage
37
+ * const tx = await btc.rest.transaction.get(txid);
38
+ * const block = await btc.rpc?.getBlock({ height: 100 });
39
+ *
40
+ * // Sans-I/O: build requests without performing I/O
41
+ * const req = btc.rest.protocol.getTx(txid);
42
+ * const res = await myHttpClient.execute(req);
43
+ * ```
44
+ */
45
+ export declare class BitcoinConnection {
46
+ /** The network this connection targets. */
47
+ readonly name: NetworkName;
48
+ /** REST client (Esplora API). */
49
+ readonly rest: BitcoinRestClient;
50
+ /** RPC client (Bitcoin Core). May be undefined if not configured. */
51
+ readonly rpc?: BitcoinCoreRpcClient;
52
+ /** bitcoinjs-lib network data (for address derivation, PSBT signing, etc.). */
53
+ readonly data: networks.Network;
54
+ constructor(options: BitcoinConnectionOptions);
55
+ /**
56
+ * Create a connection for a single network with optional REST/RPC endpoint overrides.
57
+ * Merges overrides on top of defaults from DEFAULT_BITCOIN_NETWORK_CONFIG.
58
+ * Does not read environment variables.
59
+ *
60
+ * @param network The network name (e.g., 'regtest', 'testnet4', 'bitcoin').
61
+ * @param overrides Optional endpoint and executor overrides.
62
+ * @returns A BitcoinConnection for the requested network.
63
+ */
64
+ static forNetwork(network: NetworkName, overrides?: {
65
+ rest?: Partial<RestConfig>;
66
+ rpc?: RpcConfig;
67
+ executor?: HttpExecutor;
68
+ }): BitcoinConnection;
69
+ /**
70
+ * Converts Bitcoin (BTC) to satoshis.
71
+ * Uses string-based arithmetic to avoid floating-point precision errors.
72
+ * @throws {RangeError} If the value has more than 8 decimal places.
73
+ */
74
+ static btcToSats(btc: number): number;
75
+ /**
76
+ * Converts satoshis to Bitcoin (BTC).
77
+ * Uses string-based arithmetic to avoid floating-point precision errors.
78
+ * @param sats Must be a non-negative integer.
79
+ */
80
+ static satsToBtc(sats: number): number;
81
+ }
82
+ //# sourceMappingURL=connection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/connection.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGhE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,iBAAiB;IAC5B,2CAA2C;IAC3C,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAE3B,iCAAiC;IACjC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IAEjC,qEAAqE;IACrE,QAAQ,CAAC,GAAG,CAAC,EAAE,oBAAoB,CAAC;IAEpC,+EAA+E;IAC/E,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC;gBAEpB,OAAO,EAAE,wBAAwB;IAO7C;;;;;;;;OAQG;IACH,MAAM,CAAC,UAAU,CACf,OAAO,EAAE,WAAW,EACpB,SAAS,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;QAAC,GAAG,CAAC,EAAE,SAAS,CAAC;QAAC,QAAQ,CAAC,EAAE,YAAY,CAAA;KAAE,GACnF,iBAAiB;IA0BpB;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAUrC;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAQvC"}
@@ -4,6 +4,22 @@ export declare const COINBASE_MATURITY_DELAY = 100;
4
4
  export declare const DEFAULT_BLOCK_CONFIRMATIONS = 7;
5
5
  export declare const TXIN_WITNESS_COINBASE = "0000000000000000000000000000000000000000000000000000000000000000";
6
6
  export declare const GENESIS_TX_ID = "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b";
7
+ /**
8
+ * Default endpoint configuration per Bitcoin network.
9
+ *
10
+ * **Regtest RPC:** Credentials are intentionally omitted — callers must
11
+ * provide `username` and `password` via overrides or explicit config.
12
+ * This prevents accidentally using hardcoded credentials in non-local
13
+ * environments.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * // Provide credentials explicitly
18
+ * BitcoinConnection.forNetwork('regtest', {
19
+ * rpc: { username: 'polaruser', password: 'polarpass' },
20
+ * });
21
+ * ```
22
+ */
7
23
  export declare const DEFAULT_BITCOIN_NETWORK_CONFIG: {
8
24
  readonly bitcoin: {
9
25
  readonly rpc: undefined;
@@ -37,16 +53,12 @@ export declare const DEFAULT_BITCOIN_NETWORK_CONFIG: {
37
53
  };
38
54
  readonly regtest: {
39
55
  readonly rpc: {
40
- readonly network: "regtest";
41
56
  readonly host: "http://localhost:18443";
42
- readonly port: 18443;
43
- readonly username: "polaruser";
44
- readonly password: "polarpass";
45
57
  readonly allowDefaultWallet: true;
46
- readonly version: "28.1.0";
47
58
  };
48
59
  readonly rest: {
49
60
  readonly host: "http://localhost:3000";
50
61
  };
51
62
  };
52
63
  };
64
+ //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,gBAAgB,MAAM,CAAC;AACpC,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAC7C,eAAO,MAAM,qBAAqB,qEAAqE,CAAC;AACxG,eAAO,MAAM,aAAa,qEAAqE,CAAC;AAChG,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCjC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,gBAAgB,MAAM,CAAC;AACpC,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAC7C,eAAO,MAAM,qBAAqB,qEAAqE,CAAC;AACxG,eAAO,MAAM,aAAa,qEAAqE,CAAC;AAEhG;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BjC,CAAC"}
@@ -1,13 +1,15 @@
1
+ export type RpcErrorType = 'HTTP_ERROR' | 'RPC_ERROR' | 'INVALID_PARAMS_GET_BLOCK' | 'SIGNING_INCOMPLETE' | 'UNKNOWN_ERROR';
1
2
  /**
2
3
  * Custom Error class for handling Bitcoin RPC errors.
3
4
  */
4
5
  export declare class BitcoinRpcError extends Error {
5
- readonly type: string;
6
+ readonly type: RpcErrorType;
6
7
  readonly code: number;
7
- readonly data?: any;
8
- constructor(type: string, code: number, message: string, data?: any);
8
+ readonly data?: unknown;
9
+ constructor(type: RpcErrorType, code: number, message: string, data?: unknown);
9
10
  }
10
11
  export declare class BitcoinRestError extends Error {
11
12
  readonly data?: any;
12
13
  constructor(message: string, data?: any);
13
14
  }
15
+ //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IACxC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,IAAI,CAAC,EAAE,GAAG,CAAC;gBACf,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG;CAOpE;AAED,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,SAAgB,IAAI,CAAC,EAAE,GAAG,CAAC;gBACf,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG;CAKxC"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GACpB,YAAY,GACZ,WAAW,GACX,0BAA0B,GAC1B,oBAAoB,GACpB,eAAe,CAAC;AAEpB;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IACxC,SAAgB,IAAI,EAAE,YAAY,CAAC;IACnC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,IAAI,CAAC,EAAE,OAAO,CAAC;gBACnB,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO;CAO9E;AAED,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,SAAgB,IAAI,CAAC,EAAE,GAAG,CAAC;gBACf,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG;CAKxC"}
@@ -1,13 +1,21 @@
1
- export * from './bitcoin.js';
2
- export * from './client/rest/address.js';
3
- export * from './client/rest/block.js';
4
- export * from './client/rest/index.js';
5
- export * from './client/rest/transaction.js';
6
- export * from './client/rpc/index.js';
7
- export * from './client/rpc/interface.js';
8
- export * from './client/rpc/json-rpc.js';
9
- export * from './client/utils.js';
10
- export * from './constants.js';
11
- export * from './errors.js';
12
- export * from './network.js';
13
- export * from './types.js';
1
+ export { BitcoinConnection, type BitcoinConnectionOptions } from './connection.js';
2
+ export type { HttpRequest, HttpExecutor } from './client/http.js';
3
+ export { defaultHttpExecutor } from './client/http.js';
4
+ export { EsploraProtocol } from './client/rest/protocol.js';
5
+ export { JsonRpcProtocol } from './client/rpc/protocol.js';
6
+ export { BitcoinRestClient } from './client/rest/index.js';
7
+ export { BitcoinCoreRpcClient } from './client/rpc/index.js';
8
+ export type { RpcMethodMap, TypedRpcMethod } from './client/rpc/index.js';
9
+ export type { BitcoinRpcClient } from './client/rpc/interface.js';
10
+ export { BitcoinAddress } from './client/rest/address.js';
11
+ export { BitcoinBlock } from './client/rest/block.js';
12
+ export { BitcoinTransaction } from './client/rest/transaction.js';
13
+ export { JsonRpcTransport } from './client/rpc/json-rpc.js';
14
+ export { BitcoinRpcError, BitcoinRestError } from './errors.js';
15
+ export type { RpcErrorType } from './errors.js';
16
+ export { getNetwork } from './network.js';
17
+ export { toBase64, safeText } from './client/utils.js';
18
+ export { DEFAULT_BITCOIN_NETWORK_CONFIG, INITIAL_BLOCK_REWARD, HALVING_INTERVAL, COINBASE_MATURITY_DELAY, DEFAULT_BLOCK_CONFIRMATIONS, TXIN_WITNESS_COINBASE, GENESIS_TX_ID, } from './constants.js';
19
+ export type { NetworkName, RestConfig, EsploraBlock, TransactionStatus, Vin, Vout, ChainStats, MempoolStats, AddressInfo, RawTransactionRest, AddressUtxo, RpcConfig, ChainInfo, GetBlockParams, BlockResponse, BlockV0, BlockV1, BlockV2, BlockV3, RawTransactionResponse, RawTransactionV0, RawTransactionV1, RawTransactionV2, CreateRawTxInputs, CreateRawTxOutputs, SignedRawTx, UnspentTxInfo, WalletTransaction, DerivedAddresses, ListTransactionsParams, ListTransactionsResult, MethodNameInLowerCase, FeeEstimateMode, } from './types.js';
20
+ export { VerbosityLevel } from './types.js';
21
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,KAAK,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAGnF,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAG3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC1E,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAGlE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAChE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,EACL,8BAA8B,EAC9B,oBAAoB,EACpB,gBAAgB,EAChB,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,aAAa,GACd,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAEV,WAAW,EAEX,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,GAAG,EACH,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,WAAW,EAEX,SAAS,EACT,SAAS,EACT,cAAc,EACd,aAAa,EACb,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
@@ -1,2 +1,3 @@
1
1
  import { networks } from 'bitcoinjs-lib';
2
2
  export declare function getNetwork(network: string): networks.Network;
3
+ //# sourceMappingURL=network.d.ts.map