@did-btcr2/bitcoin 0.3.4 → 0.4.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 (104) hide show
  1. package/dist/cjs/bitcoin.js +83 -84
  2. package/dist/cjs/bitcoin.js.map +1 -1
  3. package/dist/cjs/client/http.js +9 -0
  4. package/dist/cjs/client/http.js.map +1 -0
  5. package/dist/cjs/client/rest/address.js +20 -28
  6. package/dist/cjs/client/rest/address.js.map +1 -1
  7. package/dist/cjs/client/rest/block.js +23 -22
  8. package/dist/cjs/client/rest/block.js.map +1 -1
  9. package/dist/cjs/client/rest/index.js +31 -84
  10. package/dist/cjs/client/rest/index.js.map +1 -1
  11. package/dist/cjs/client/rest/protocol.js +129 -0
  12. package/dist/cjs/client/rest/protocol.js.map +1 -0
  13. package/dist/cjs/client/rest/transaction.js +19 -21
  14. package/dist/cjs/client/rest/transaction.js.map +1 -1
  15. package/dist/cjs/client/rpc/index.js +75 -337
  16. package/dist/cjs/client/rpc/index.js.map +1 -1
  17. package/dist/cjs/client/rpc/interface.js +1 -6
  18. package/dist/cjs/client/rpc/interface.js.map +1 -1
  19. package/dist/cjs/client/rpc/json-rpc.js +40 -63
  20. package/dist/cjs/client/rpc/json-rpc.js.map +1 -1
  21. package/dist/cjs/client/rpc/protocol.js +134 -0
  22. package/dist/cjs/client/rpc/protocol.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/bitcoin.js +83 -84
  31. package/dist/esm/bitcoin.js.map +1 -1
  32. package/dist/esm/client/http.js +9 -0
  33. package/dist/esm/client/http.js.map +1 -0
  34. package/dist/esm/client/rest/address.js +20 -28
  35. package/dist/esm/client/rest/address.js.map +1 -1
  36. package/dist/esm/client/rest/block.js +23 -22
  37. package/dist/esm/client/rest/block.js.map +1 -1
  38. package/dist/esm/client/rest/index.js +31 -84
  39. package/dist/esm/client/rest/index.js.map +1 -1
  40. package/dist/esm/client/rest/protocol.js +129 -0
  41. package/dist/esm/client/rest/protocol.js.map +1 -0
  42. package/dist/esm/client/rest/transaction.js +19 -21
  43. package/dist/esm/client/rest/transaction.js.map +1 -1
  44. package/dist/esm/client/rpc/index.js +75 -337
  45. package/dist/esm/client/rpc/index.js.map +1 -1
  46. package/dist/esm/client/rpc/interface.js +1 -6
  47. package/dist/esm/client/rpc/interface.js.map +1 -1
  48. package/dist/esm/client/rpc/json-rpc.js +40 -63
  49. package/dist/esm/client/rpc/json-rpc.js.map +1 -1
  50. package/dist/esm/client/rpc/protocol.js +134 -0
  51. package/dist/esm/client/rpc/protocol.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/bitcoin.d.ts +66 -45
  60. package/dist/types/bitcoin.d.ts.map +1 -1
  61. package/dist/types/client/http.d.ts +21 -0
  62. package/dist/types/client/http.d.ts.map +1 -0
  63. package/dist/types/client/rest/address.d.ts +16 -19
  64. package/dist/types/client/rest/address.d.ts.map +1 -1
  65. package/dist/types/client/rest/block.d.ts +24 -16
  66. package/dist/types/client/rest/block.d.ts.map +1 -1
  67. package/dist/types/client/rest/index.d.ts +20 -51
  68. package/dist/types/client/rest/index.d.ts.map +1 -1
  69. package/dist/types/client/rest/protocol.d.ts +58 -0
  70. package/dist/types/client/rest/protocol.d.ts.map +1 -0
  71. package/dist/types/client/rest/transaction.d.ts +16 -17
  72. package/dist/types/client/rest/transaction.d.ts.map +1 -1
  73. package/dist/types/client/rpc/index.d.ts +105 -253
  74. package/dist/types/client/rpc/index.d.ts.map +1 -1
  75. package/dist/types/client/rpc/interface.d.ts +1 -4
  76. package/dist/types/client/rpc/interface.d.ts.map +1 -1
  77. package/dist/types/client/rpc/json-rpc.d.ts +20 -18
  78. package/dist/types/client/rpc/json-rpc.d.ts.map +1 -1
  79. package/dist/types/client/rpc/protocol.d.ts +82 -0
  80. package/dist/types/client/rpc/protocol.d.ts.map +1 -0
  81. package/dist/types/constants.d.ts +16 -5
  82. package/dist/types/constants.d.ts.map +1 -1
  83. package/dist/types/errors.d.ts +4 -3
  84. package/dist/types/errors.d.ts.map +1 -1
  85. package/dist/types/index.d.ts +20 -13
  86. package/dist/types/index.d.ts.map +1 -1
  87. package/dist/types/types.d.ts +98 -696
  88. package/dist/types/types.d.ts.map +1 -1
  89. package/package.json +3 -3
  90. package/src/bitcoin.ts +105 -118
  91. package/src/client/http.ts +28 -0
  92. package/src/client/rest/address.ts +24 -30
  93. package/src/client/rest/block.ts +29 -26
  94. package/src/client/rest/index.ts +38 -94
  95. package/src/client/rest/protocol.ts +153 -0
  96. package/src/client/rest/transaction.ts +23 -23
  97. package/src/client/rpc/index.ts +140 -379
  98. package/src/client/rpc/interface.ts +42 -51
  99. package/src/client/rpc/json-rpc.ts +53 -60
  100. package/src/client/rpc/protocol.ts +160 -0
  101. package/src/constants.ts +17 -5
  102. package/src/errors.ts +10 -3
  103. package/src/index.ts +81 -13
  104. package/src/types.ts +332 -972
@@ -0,0 +1,129 @@
1
+ import { StringUtils } from '@did-btcr2/common';
2
+ const HEX64_RE = /^[0-9a-f]{64}$/i;
3
+ /**
4
+ * Sans-I/O Esplora REST API protocol.
5
+ *
6
+ * Every method returns an {@link HttpRequest} descriptor — a plain object
7
+ * describing *what* to request — without performing any I/O. The caller
8
+ * is responsible for executing the request with an HTTP client of their
9
+ * choice and deserializing the response.
10
+ *
11
+ * This mirrors the pattern used by the Rust `esploda` crate where
12
+ * `Esplora` methods return `http::Request<()>` objects.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const protocol = new EsploraProtocol({ host: 'https://mempool.space/api' });
17
+ *
18
+ * // Build a request descriptor (no I/O)
19
+ * const req = protocol.getTx('abc123...');
20
+ *
21
+ * // Execute with any HTTP client
22
+ * const res = await fetch(req.url, req);
23
+ * const tx: RawTransactionRest = await res.json();
24
+ * ```
25
+ */
26
+ export class EsploraProtocol {
27
+ baseUrl;
28
+ defaultHeaders;
29
+ constructor(config) {
30
+ this.baseUrl = StringUtils.replaceEnd(config.host, '/');
31
+ this.defaultHeaders = {
32
+ 'Content-Type': 'application/json',
33
+ ...config.headers,
34
+ };
35
+ }
36
+ // ── validation ─────────────────────────────────────────────────────
37
+ static assertHex64(value, label) {
38
+ if (!HEX64_RE.test(value)) {
39
+ throw new Error(`Invalid ${label}: expected 64-char hex string`);
40
+ }
41
+ }
42
+ static assertAddress(value) {
43
+ if (!value || /[/\\.?#]/.test(value)) {
44
+ throw new Error('Invalid address: contains illegal characters');
45
+ }
46
+ }
47
+ // ── helpers ──────────────────────────────────────────────────────────
48
+ get(path) {
49
+ return {
50
+ url: `${this.baseUrl}${path}`,
51
+ method: 'GET',
52
+ headers: { ...this.defaultHeaders },
53
+ };
54
+ }
55
+ post(path, body, headers) {
56
+ return {
57
+ url: `${this.baseUrl}${path}`,
58
+ method: 'POST',
59
+ headers: headers ?? { ...this.defaultHeaders },
60
+ body,
61
+ };
62
+ }
63
+ // ── Transaction ──────────────────────────────────────────────────────
64
+ /** GET /tx/:txid */
65
+ getTx(txid) {
66
+ EsploraProtocol.assertHex64(txid, 'txid');
67
+ return this.get(`/tx/${txid}`);
68
+ }
69
+ /** GET /tx/:txid/hex */
70
+ getTxHex(txid) {
71
+ EsploraProtocol.assertHex64(txid, 'txid');
72
+ return this.get(`/tx/${txid}/hex`);
73
+ }
74
+ /** GET /tx/:txid/raw */
75
+ getTxRaw(txid) {
76
+ EsploraProtocol.assertHex64(txid, 'txid');
77
+ return this.get(`/tx/${txid}/raw`);
78
+ }
79
+ /** POST /tx */
80
+ postTx(hex) {
81
+ return this.post('/tx', hex, { 'Content-Type': 'text/plain' });
82
+ }
83
+ // ── Block ────────────────────────────────────────────────────────────
84
+ /** GET /blocks/tip/height */
85
+ getBlockTipHeight() {
86
+ return this.get('/blocks/tip/height');
87
+ }
88
+ /** GET /block/:blockhash */
89
+ getBlock(blockhash) {
90
+ EsploraProtocol.assertHex64(blockhash, 'blockhash');
91
+ return this.get(`/block/${blockhash}`);
92
+ }
93
+ /** GET /block-height/:height */
94
+ getBlockHeight(height) {
95
+ return this.get(`/block-height/${height}`);
96
+ }
97
+ // ── Address ──────────────────────────────────────────────────────────
98
+ /** GET /address/:address/txs */
99
+ getAddressTxs(address) {
100
+ EsploraProtocol.assertAddress(address);
101
+ return this.get(`/address/${address}/txs`);
102
+ }
103
+ /** GET /address/:address/txs/mempool */
104
+ getAddressTxsMempool(address) {
105
+ EsploraProtocol.assertAddress(address);
106
+ return this.get(`/address/${address}/txs/mempool`);
107
+ }
108
+ /** GET /address/:address/txs/chain[/:last_seen_txid] */
109
+ getAddressTxsChain(address, lastSeenTxId) {
110
+ EsploraProtocol.assertAddress(address);
111
+ if (lastSeenTxId)
112
+ EsploraProtocol.assertHex64(lastSeenTxId, 'lastSeenTxId');
113
+ const path = lastSeenTxId
114
+ ? `/address/${address}/txs/chain/${lastSeenTxId}`
115
+ : `/address/${address}/txs/chain`;
116
+ return this.get(path);
117
+ }
118
+ /** GET /address/:address */
119
+ getAddressInfo(address) {
120
+ EsploraProtocol.assertAddress(address);
121
+ return this.get(`/address/${address}`);
122
+ }
123
+ /** GET /address/:address/utxo */
124
+ getAddressUtxos(address) {
125
+ EsploraProtocol.assertAddress(address);
126
+ return this.get(`/address/${address}/utxo`);
127
+ }
128
+ }
129
+ //# sourceMappingURL=protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../../../src/client/rest/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA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OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,OAAO,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED,wCAAwC;IACxC,oBAAoB,CAAC,OAAe;QAClC,eAAe,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,OAAO,cAAc,CAAC,CAAC;IACrD,CAAC;IAED,wDAAwD;IACxD,kBAAkB,CAAC,OAAe,EAAE,YAAqB;QACvD,eAAe,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACvC,IAAI,YAAY;YAAE,eAAe,CAAC,WAAW,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAC5E,MAAM,IAAI,GAAG,YAAY;YACvB,CAAC,CAAC,YAAY,OAAO,cAAc,YAAY,EAAE;YACjD,CAAC,CAAC,YAAY,OAAO,YAAY,CAAC;QACpC,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,4BAA4B;IAC5B,cAAc,CAAC,OAAe;QAC5B,eAAe,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,OAAO,EAAE,CAAC,CAAC;IACzC,CAAC;IAED,iCAAiC;IACjC,eAAe,CAAC,OAAe;QAC7B,eAAe,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,OAAO,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF"}
@@ -1,56 +1,54 @@
1
1
  export class BitcoinTransaction {
2
- api;
3
- constructor(api) {
4
- this.api = api;
2
+ protocol;
3
+ exec;
4
+ constructor(protocol, exec) {
5
+ this.protocol = protocol;
6
+ this.exec = exec;
5
7
  }
6
8
  /**
7
9
  * Returns the transaction in JSON format.
8
10
  * See {@link https://github.com/blockstream/esplora/blob/master/API.md#get-txtxid | Esplora GET /tx/:txid } for details.
9
11
  * @param {string} txid The transaction id (required).
10
- * @returns {GetRawTransaction} A promise resolving to data about a transaction in the form specified by verbosity.
12
+ * @returns {Promise<RawTransactionRest>} A promise resolving to data about a transaction.
11
13
  */
12
14
  async get(txid) {
13
- return await this.api({ path: `/tx/${txid}` });
15
+ return await this.exec(this.protocol.getTx(txid));
14
16
  }
15
17
  /**
16
- * Returns the transaction in JSON format.
17
- * See {@link https://github.com/blockstream/esplora/blob/master/API.md#get-txtxid | Esplora GET /tx/:txid } for details.
18
+ * Checks if a transaction is confirmed.
18
19
  * @param {string} txid The transaction id (required).
19
- * @returns {GetRawTransaction} A promise resolving to data about a transaction in the form specified by verbosity.
20
+ * @returns {Promise<boolean>} True if the transaction is confirmed.
20
21
  */
21
22
  async isConfirmed(txid) {
22
23
  const tx = await this.get(txid);
23
24
  return tx.status.confirmed;
24
25
  }
25
26
  /**
26
- * Returns the raw transaction in hex or as binary data.
27
- * See {@link https://github.com/blockstream/esplora/blob/master/API.md#get-txtxidhex | Esplora GET /tx/:txid/hex } and
28
- * {@link https://github.com/blockstream/esplora/blob/master/API.md#get-txtxidraw | Esplora GET /tx/:txid/raw } for details.
27
+ * Returns the raw transaction as a hex string.
28
+ * See {@link https://github.com/blockstream/esplora/blob/master/API.md#get-txtxidhex | Esplora GET /tx/:txid/hex } for details.
29
29
  * @param {string} txid The transaction id (required).
30
- * @returns {Promise<RawTransactionRest | string>} A promise resolving to the raw transaction in the specified format.
30
+ * @returns {Promise<string>} A promise resolving to the raw transaction hex.
31
31
  */
32
32
  async getHex(txid) {
33
- return await this.api({ path: `/tx/${txid}/hex` });
33
+ return await this.exec(this.protocol.getTxHex(txid));
34
34
  }
35
35
  /**
36
- * Returns the raw transaction in hex or as binary data.
37
- * See {@link https://github.com/blockstream/esplora/blob/master/API.md#get-txtxidhex | Esplora GET /tx/:txid/hex } and
38
- * {@link https://github.com/blockstream/esplora/blob/master/API.md#get-txtxidraw | Esplora GET /tx/:txid/raw } for details.
36
+ * Returns the raw transaction as binary data.
37
+ * See {@link https://github.com/blockstream/esplora/blob/master/API.md#get-txtxidraw | Esplora GET /tx/:txid/raw } for details.
39
38
  * @param {string} txid The transaction id (required).
40
- * @returns {Promise<RawTransactionRest | string>} A promise resolving to the raw transaction in the specified format.
39
+ * @returns {Promise<Bytes>} A promise resolving to the raw transaction bytes.
41
40
  */
42
41
  async getRaw(txid) {
43
- return await this.api({ path: `/tx/${txid}/raw` });
42
+ return await this.exec(this.protocol.getTxRaw(txid));
44
43
  }
45
44
  /**
46
- * Broadcast a raw transaction to the network. The transaction should be provided as hex in the request body. The txid
47
- * will be returned on success.
45
+ * Broadcast a raw transaction to the network.
48
46
  * See {@link https://github.com/blockstream/esplora/blob/master/API.md#post-tx | Esplora POST /tx } for details.
49
47
  * @param {string} tx The raw transaction in hex format (required).
50
48
  * @returns {Promise<string>} The transaction id of the broadcasted transaction.
51
49
  */
52
50
  async send(tx) {
53
- return await this.api({ path: '/tx', method: 'POST', body: tx, headers: { 'Content-Type': 'text/plain' } });
51
+ return await this.exec(this.protocol.postTx(tx));
54
52
  }
55
53
  }
56
54
  //# sourceMappingURL=transaction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../../src/client/rest/transaction.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,kBAAkB;IACrB,GAAG,CAA8C;IAEzD,YAAY,GAAgD;QAC1D,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CAAC,IAAY;QAC3B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,OAAO,IAAI,EAAE,EAAE,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,WAAW,CAAC,IAAY;QACnC,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChC,OAAO,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC;IAC7B,C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