@bsv/sdk 1.2.17 → 1.2.18
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.
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/src/primitives/BigNumber.js +85 -89
- package/dist/cjs/src/primitives/BigNumber.js.map +1 -1
- package/dist/cjs/src/primitives/PublicKey.js +5 -2
- package/dist/cjs/src/primitives/PublicKey.js.map +1 -1
- package/dist/cjs/src/primitives/Random.js +3 -2
- package/dist/cjs/src/primitives/Random.js.map +1 -1
- package/dist/cjs/src/primitives/utils.js +71 -62
- package/dist/cjs/src/primitives/utils.js.map +1 -1
- package/dist/cjs/src/totp/totp.js +0 -1
- package/dist/cjs/src/totp/totp.js.map +1 -1
- package/dist/cjs/src/transaction/Beef.js +26 -40
- package/dist/cjs/src/transaction/Beef.js.map +1 -1
- package/dist/cjs/src/transaction/BeefParty.js +1 -1
- package/dist/cjs/src/transaction/BeefTx.js +75 -73
- package/dist/cjs/src/transaction/BeefTx.js.map +1 -1
- package/dist/cjs/src/transaction/Transaction.js +70 -96
- package/dist/cjs/src/transaction/Transaction.js.map +1 -1
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/src/primitives/BigNumber.js +85 -89
- package/dist/esm/src/primitives/BigNumber.js.map +1 -1
- package/dist/esm/src/primitives/PublicKey.js +5 -2
- package/dist/esm/src/primitives/PublicKey.js.map +1 -1
- package/dist/esm/src/primitives/Random.js +2 -2
- package/dist/esm/src/primitives/Random.js.map +1 -1
- package/dist/esm/src/primitives/utils.js +70 -61
- package/dist/esm/src/primitives/utils.js.map +1 -1
- package/dist/esm/src/totp/totp.js +0 -1
- package/dist/esm/src/totp/totp.js.map +1 -1
- package/dist/esm/src/transaction/Beef.js +25 -39
- package/dist/esm/src/transaction/Beef.js.map +1 -1
- package/dist/esm/src/transaction/BeefParty.js +1 -1
- package/dist/esm/src/transaction/BeefTx.js +76 -74
- package/dist/esm/src/transaction/BeefTx.js.map +1 -1
- package/dist/esm/src/transaction/Transaction.js +71 -97
- package/dist/esm/src/transaction/Transaction.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/types/src/primitives/BigNumber.d.ts +24 -22
- package/dist/types/src/primitives/BigNumber.d.ts.map +1 -1
- package/dist/types/src/primitives/PublicKey.d.ts.map +1 -1
- package/dist/types/src/primitives/utils.d.ts +17 -17
- package/dist/types/src/primitives/utils.d.ts.map +1 -1
- package/dist/types/src/transaction/Beef.d.ts +9 -12
- package/dist/types/src/transaction/Beef.d.ts.map +1 -1
- package/dist/types/src/transaction/BeefParty.d.ts +1 -1
- package/dist/types/src/transaction/BeefTx.d.ts +5 -2
- package/dist/types/src/transaction/BeefTx.d.ts.map +1 -1
- package/dist/types/src/transaction/Transaction.d.ts +6 -0
- package/dist/types/src/transaction/Transaction.d.ts.map +1 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/dist/umd/bundle.js +1 -1
- package/docs/compat.md +13 -11
- package/docs/primitives.md +152 -188
- package/docs/transaction.md +72 -75
- package/package.json +1 -1
- package/src/primitives/BigNumber.ts +111 -111
- package/src/primitives/PublicKey.ts +5 -2
- package/src/primitives/Random.ts +2 -2
- package/src/primitives/utils.ts +92 -77
- package/src/totp/totp.ts +0 -1
- package/src/transaction/Beef.ts +20 -43
- package/src/transaction/BeefParty.ts +1 -1
- package/src/transaction/BeefTx.ts +89 -57
- package/src/transaction/Transaction.ts +77 -100
- package/src/transaction/__tests/Beef.test.ts +9 -9
- package/src/transaction/__tests/Transaction.benchmarks.test.ts +1 -1
- package/src/transaction/__tests/Transaction.test.ts +3 -3
- package/src/transaction/broadcasters/__tests/WhatsOnChainBroadcaster.test.ts +2 -2
package/docs/transaction.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# API
|
|
2
2
|
|
|
3
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
3
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
4
4
|
|
|
5
5
|
## Interfaces
|
|
6
6
|
|
|
@@ -15,7 +15,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
15
15
|
| [FetchOptions](#interface-fetchoptions) | [WhatsOnChainConfig](#interface-whatsonchainconfig) |
|
|
16
16
|
| [HttpClient](#interface-httpclient) | |
|
|
17
17
|
|
|
18
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
19
19
|
|
|
20
20
|
---
|
|
21
21
|
|
|
@@ -91,7 +91,7 @@ See also: [HttpClient](#interface-httpclient)
|
|
|
91
91
|
|
|
92
92
|
</details>
|
|
93
93
|
|
|
94
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
94
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
95
95
|
|
|
96
96
|
---
|
|
97
97
|
### Interface: BroadcastFailure
|
|
@@ -108,7 +108,7 @@ export interface BroadcastFailure {
|
|
|
108
108
|
}
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
111
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
112
112
|
|
|
113
113
|
---
|
|
114
114
|
### Interface: BroadcastResponse
|
|
@@ -124,7 +124,7 @@ export interface BroadcastResponse {
|
|
|
124
124
|
}
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
127
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
128
128
|
|
|
129
129
|
---
|
|
130
130
|
### Interface: Broadcaster
|
|
@@ -141,7 +141,7 @@ export interface Broadcaster {
|
|
|
141
141
|
|
|
142
142
|
See also: [BroadcastFailure](#interface-broadcastfailure), [BroadcastResponse](#interface-broadcastresponse), [Transaction](#class-transaction)
|
|
143
143
|
|
|
144
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
144
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
145
145
|
|
|
146
146
|
---
|
|
147
147
|
### Interface: ChainTracker
|
|
@@ -169,7 +169,7 @@ export default interface ChainTracker {
|
|
|
169
169
|
}
|
|
170
170
|
```
|
|
171
171
|
|
|
172
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
172
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
173
173
|
|
|
174
174
|
---
|
|
175
175
|
### Interface: FeeModel
|
|
@@ -185,7 +185,7 @@ export default interface FeeModel {
|
|
|
185
185
|
|
|
186
186
|
See also: [Transaction](#class-transaction)
|
|
187
187
|
|
|
188
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
188
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
189
189
|
|
|
190
190
|
---
|
|
191
191
|
### Interface: FetchOptions
|
|
@@ -231,7 +231,7 @@ method?: string
|
|
|
231
231
|
|
|
232
232
|
</details>
|
|
233
233
|
|
|
234
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
234
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
235
235
|
|
|
236
236
|
---
|
|
237
237
|
### Interface: HttpClient
|
|
@@ -261,7 +261,7 @@ See also: [HttpClientRequestOptions](#interface-httpclientrequestoptions), [Http
|
|
|
261
261
|
|
|
262
262
|
</details>
|
|
263
263
|
|
|
264
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
264
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
265
265
|
|
|
266
266
|
---
|
|
267
267
|
### Interface: HttpClientRequestOptions
|
|
@@ -306,7 +306,7 @@ method?: string
|
|
|
306
306
|
|
|
307
307
|
</details>
|
|
308
308
|
|
|
309
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
309
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
310
310
|
|
|
311
311
|
---
|
|
312
312
|
### Interface: HttpsNodejs
|
|
@@ -321,7 +321,7 @@ export interface HttpsNodejs {
|
|
|
321
321
|
|
|
322
322
|
See also: [HttpClientRequestOptions](#interface-httpclientrequestoptions), [NodejsHttpClientRequest](#interface-nodejshttpclientrequest)
|
|
323
323
|
|
|
324
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
324
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
325
325
|
|
|
326
326
|
---
|
|
327
327
|
### Interface: MerklePathLeaf
|
|
@@ -335,7 +335,7 @@ export interface MerklePathLeaf {
|
|
|
335
335
|
}
|
|
336
336
|
```
|
|
337
337
|
|
|
338
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
338
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
339
339
|
|
|
340
340
|
---
|
|
341
341
|
### Interface: NodejsHttpClientRequest
|
|
@@ -350,7 +350,7 @@ export interface NodejsHttpClientRequest {
|
|
|
350
350
|
}
|
|
351
351
|
```
|
|
352
352
|
|
|
353
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
353
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
354
354
|
|
|
355
355
|
---
|
|
356
356
|
### Interface: TransactionInput
|
|
@@ -392,7 +392,7 @@ export default interface TransactionInput {
|
|
|
392
392
|
|
|
393
393
|
See also: [Transaction](#class-transaction), [UnlockingScript](#class-unlockingscript), [sign](#variable-sign)
|
|
394
394
|
|
|
395
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
395
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
396
396
|
|
|
397
397
|
---
|
|
398
398
|
### Interface: TransactionOutput
|
|
@@ -422,7 +422,7 @@ export default interface TransactionOutput {
|
|
|
422
422
|
|
|
423
423
|
See also: [LockingScript](#class-lockingscript)
|
|
424
424
|
|
|
425
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
425
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
426
426
|
|
|
427
427
|
---
|
|
428
428
|
### Interface: WhatsOnChainConfig
|
|
@@ -461,7 +461,7 @@ See also: [HttpClient](#interface-httpclient)
|
|
|
461
461
|
|
|
462
462
|
</details>
|
|
463
463
|
|
|
464
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
464
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
465
465
|
|
|
466
466
|
---
|
|
467
467
|
## Classes
|
|
@@ -479,7 +479,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
479
479
|
| [Transaction](#class-transaction) |
|
|
480
480
|
| [WhatsOnChain](#class-whatsonchain) |
|
|
481
481
|
|
|
482
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
482
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
483
483
|
|
|
484
484
|
---
|
|
485
485
|
|
|
@@ -579,7 +579,7 @@ Argument Details
|
|
|
579
579
|
|
|
580
580
|
</details>
|
|
581
581
|
|
|
582
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
582
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
583
583
|
|
|
584
584
|
---
|
|
585
585
|
### Class: Beef
|
|
@@ -588,10 +588,9 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
588
588
|
export class Beef {
|
|
589
589
|
bumps: MerklePath[] = [];
|
|
590
590
|
txs: BeefTx[] = [];
|
|
591
|
-
version:
|
|
591
|
+
version: number = BEEF_V2;
|
|
592
592
|
atomicTxid: string | undefined = undefined;
|
|
593
|
-
constructor(version
|
|
594
|
-
get magic(): number
|
|
593
|
+
constructor(version: number = BEEF_V2)
|
|
595
594
|
findTxid(txid: string): BeefTx | undefined
|
|
596
595
|
makeTxidOnly(txid: string): BeefTx | undefined
|
|
597
596
|
findBump(txid: string): MerklePath | undefined
|
|
@@ -612,7 +611,7 @@ export class Beef {
|
|
|
612
611
|
toHex(): string
|
|
613
612
|
static fromReader(br: Reader): Beef
|
|
614
613
|
static fromBinary(bin: number[]): Beef
|
|
615
|
-
static fromString(s: string, enc
|
|
614
|
+
static fromString(s: string, enc: "hex" | "utf8" | "base64" = "hex"): Beef
|
|
616
615
|
sortTxs(): {
|
|
617
616
|
missingInputs: string[];
|
|
618
617
|
notValid: string[];
|
|
@@ -628,7 +627,7 @@ export class Beef {
|
|
|
628
627
|
}
|
|
629
628
|
```
|
|
630
629
|
|
|
631
|
-
See also: [
|
|
630
|
+
See also: [BEEF_V2](#variable-beef_v2), [BeefTx](#class-beeftx), [ChainTracker](#interface-chaintracker), [MerklePath](#class-merklepath), [Reader](#class-reader), [Transaction](#class-transaction), [Writer](#class-writer), [toHex](#variable-tohex), [verify](#variable-verify)
|
|
632
631
|
|
|
633
632
|
<details>
|
|
634
633
|
|
|
@@ -745,7 +744,7 @@ Argument Details
|
|
|
745
744
|
Constructs an instance of the Beef class based on the provided string
|
|
746
745
|
|
|
747
746
|
```ts
|
|
748
|
-
static fromString(s: string, enc
|
|
747
|
+
static fromString(s: string, enc: "hex" | "utf8" | "base64" = "hex"): Beef
|
|
749
748
|
```
|
|
750
749
|
See also: [Beef](#class-beef)
|
|
751
750
|
|
|
@@ -989,7 +988,7 @@ Argument Details
|
|
|
989
988
|
|
|
990
989
|
</details>
|
|
991
990
|
|
|
992
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
991
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
993
992
|
|
|
994
993
|
---
|
|
995
994
|
### Class: BeefParty
|
|
@@ -1119,7 +1118,7 @@ See also: [Beef](#class-beef)
|
|
|
1119
1118
|
|
|
1120
1119
|
</details>
|
|
1121
1120
|
|
|
1122
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
1121
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
1123
1122
|
|
|
1124
1123
|
---
|
|
1125
1124
|
### Class: BeefTx
|
|
@@ -1148,8 +1147,11 @@ export default class BeefTx {
|
|
|
1148
1147
|
get tx()
|
|
1149
1148
|
get rawTx()
|
|
1150
1149
|
constructor(tx: Transaction | number[] | string, bumpIndex?: number)
|
|
1151
|
-
|
|
1152
|
-
static
|
|
1150
|
+
static fromTx(tx: Transaction, bumpIndex?: number): BeefTx
|
|
1151
|
+
static fromRawTx(rawTx: number[], bumpIndex?: number): BeefTx
|
|
1152
|
+
static fromTxid(txid: string, bumpIndex?: number): BeefTx
|
|
1153
|
+
toWriter(writer: Writer, version: number): void
|
|
1154
|
+
static fromReader(br: Reader, version: number): BeefTx
|
|
1153
1155
|
}
|
|
1154
1156
|
```
|
|
1155
1157
|
|
|
@@ -1185,7 +1187,7 @@ isValid?: boolean = undefined
|
|
|
1185
1187
|
|
|
1186
1188
|
</details>
|
|
1187
1189
|
|
|
1188
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
1190
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
1189
1191
|
|
|
1190
1192
|
---
|
|
1191
1193
|
### Class: FetchHttpClient
|
|
@@ -1201,7 +1203,7 @@ export class FetchHttpClient implements HttpClient {
|
|
|
1201
1203
|
|
|
1202
1204
|
See also: [Fetch](#type-fetch), [HttpClient](#interface-httpclient), [HttpClientRequestOptions](#interface-httpclientrequestoptions), [HttpClientResponse](#type-httpclientresponse)
|
|
1203
1205
|
|
|
1204
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
1206
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
1205
1207
|
|
|
1206
1208
|
---
|
|
1207
1209
|
### Class: MerklePath
|
|
@@ -1413,7 +1415,7 @@ Argument Details
|
|
|
1413
1415
|
|
|
1414
1416
|
</details>
|
|
1415
1417
|
|
|
1416
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
1418
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
1417
1419
|
|
|
1418
1420
|
---
|
|
1419
1421
|
### Class: NodejsHttpClient
|
|
@@ -1429,7 +1431,7 @@ export class NodejsHttpClient implements HttpClient {
|
|
|
1429
1431
|
|
|
1430
1432
|
See also: [HttpClient](#interface-httpclient), [HttpClientRequestOptions](#interface-httpclientrequestoptions), [HttpClientResponse](#type-httpclientresponse), [HttpsNodejs](#interface-httpsnodejs)
|
|
1431
1433
|
|
|
1432
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
1434
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
1433
1435
|
|
|
1434
1436
|
---
|
|
1435
1437
|
### Class: SatoshisPerKilobyte
|
|
@@ -1483,7 +1485,7 @@ Argument Details
|
|
|
1483
1485
|
|
|
1484
1486
|
</details>
|
|
1485
1487
|
|
|
1486
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
1488
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
1487
1489
|
|
|
1488
1490
|
---
|
|
1489
1491
|
### Class: Transaction
|
|
@@ -2061,7 +2063,7 @@ tx.verify(new WhatsOnChain(), new SatoshisPerKilobyte(1))
|
|
|
2061
2063
|
|
|
2062
2064
|
</details>
|
|
2063
2065
|
|
|
2064
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2066
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2065
2067
|
|
|
2066
2068
|
---
|
|
2067
2069
|
### Class: WhatsOnChain
|
|
@@ -2101,7 +2103,7 @@ Argument Details
|
|
|
2101
2103
|
|
|
2102
2104
|
</details>
|
|
2103
2105
|
|
|
2104
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2106
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2105
2107
|
|
|
2106
2108
|
---
|
|
2107
2109
|
## Functions
|
|
@@ -2114,7 +2116,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
2114
2116
|
| [isBroadcastFailure](#function-isbroadcastfailure) |
|
|
2115
2117
|
| [isBroadcastResponse](#function-isbroadcastresponse) |
|
|
2116
2118
|
|
|
2117
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2119
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2118
2120
|
|
|
2119
2121
|
---
|
|
2120
2122
|
|
|
@@ -2126,7 +2128,7 @@ export function defaultBroadcaster(isTestnet: boolean = false, config: ArcConfig
|
|
|
2126
2128
|
|
|
2127
2129
|
See also: [ArcConfig](#interface-arcconfig), [Broadcaster](#interface-broadcaster)
|
|
2128
2130
|
|
|
2129
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2131
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2130
2132
|
|
|
2131
2133
|
---
|
|
2132
2134
|
### Function: defaultChainTracker
|
|
@@ -2137,7 +2139,7 @@ export function defaultChainTracker(): ChainTracker
|
|
|
2137
2139
|
|
|
2138
2140
|
See also: [ChainTracker](#interface-chaintracker)
|
|
2139
2141
|
|
|
2140
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2142
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2141
2143
|
|
|
2142
2144
|
---
|
|
2143
2145
|
### Function: defaultHttpClient
|
|
@@ -2152,7 +2154,7 @@ export function defaultHttpClient(): HttpClient
|
|
|
2152
2154
|
|
|
2153
2155
|
See also: [HttpClient](#interface-httpclient)
|
|
2154
2156
|
|
|
2155
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2157
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2156
2158
|
|
|
2157
2159
|
---
|
|
2158
2160
|
### Function: isBroadcastFailure
|
|
@@ -2165,7 +2167,7 @@ export function isBroadcastFailure(r: BroadcastResponse | BroadcastFailure): r i
|
|
|
2165
2167
|
|
|
2166
2168
|
See also: [BroadcastFailure](#interface-broadcastfailure), [BroadcastResponse](#interface-broadcastresponse)
|
|
2167
2169
|
|
|
2168
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2170
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2169
2171
|
|
|
2170
2172
|
---
|
|
2171
2173
|
### Function: isBroadcastResponse
|
|
@@ -2178,30 +2180,20 @@ export function isBroadcastResponse(r: BroadcastResponse | BroadcastFailure): r
|
|
|
2178
2180
|
|
|
2179
2181
|
See also: [BroadcastFailure](#interface-broadcastfailure), [BroadcastResponse](#interface-broadcastresponse)
|
|
2180
2182
|
|
|
2181
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2183
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2182
2184
|
|
|
2183
2185
|
---
|
|
2184
2186
|
## Types
|
|
2185
2187
|
|
|
2186
2188
|
| |
|
|
2187
2189
|
| --- |
|
|
2188
|
-
| [BeefVersion](#type-beefversion) |
|
|
2189
2190
|
| [Fetch](#type-fetch) |
|
|
2190
2191
|
| [HttpClientResponse](#type-httpclientresponse) |
|
|
2191
2192
|
|
|
2192
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2193
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2193
2194
|
|
|
2194
2195
|
---
|
|
2195
2196
|
|
|
2196
|
-
### Type: BeefVersion
|
|
2197
|
-
|
|
2198
|
-
```ts
|
|
2199
|
-
export type BeefVersion = undefined | "V1" | "V2"
|
|
2200
|
-
```
|
|
2201
|
-
|
|
2202
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2203
|
-
|
|
2204
|
-
---
|
|
2205
2197
|
### Type: Fetch
|
|
2206
2198
|
|
|
2207
2199
|
fetch function interface limited to options needed by ts-sdk
|
|
@@ -2214,7 +2206,7 @@ export type Fetch = (url: string, options: FetchOptions) => Promise<Response>
|
|
|
2214
2206
|
|
|
2215
2207
|
See also: [FetchOptions](#interface-fetchoptions)
|
|
2216
2208
|
|
|
2217
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2209
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2218
2210
|
|
|
2219
2211
|
---
|
|
2220
2212
|
### Type: HttpClientResponse
|
|
@@ -2235,7 +2227,22 @@ export type HttpClientResponse<T = any> = {
|
|
|
2235
2227
|
}
|
|
2236
2228
|
```
|
|
2237
2229
|
|
|
2238
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2230
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2231
|
+
|
|
2232
|
+
---
|
|
2233
|
+
## Enums
|
|
2234
|
+
|
|
2235
|
+
### Enum: TX_DATA_FORMAT
|
|
2236
|
+
|
|
2237
|
+
```ts
|
|
2238
|
+
export enum TX_DATA_FORMAT {
|
|
2239
|
+
RAWTX = 0,
|
|
2240
|
+
RAWTX_AND_BUMP_INDEX = 1,
|
|
2241
|
+
TXID_ONLY = 2
|
|
2242
|
+
}
|
|
2243
|
+
```
|
|
2244
|
+
|
|
2245
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2239
2246
|
|
|
2240
2247
|
---
|
|
2241
2248
|
## Variables
|
|
@@ -2243,11 +2250,10 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
2243
2250
|
| |
|
|
2244
2251
|
| --- |
|
|
2245
2252
|
| [ATOMIC_BEEF](#variable-atomic_beef) |
|
|
2246
|
-
| [
|
|
2247
|
-
| [
|
|
2248
|
-
| [BEEF_MAGIC_V2](#variable-beef_magic_v2) |
|
|
2253
|
+
| [BEEF_V1](#variable-beef_v1) |
|
|
2254
|
+
| [BEEF_V2](#variable-beef_v2) |
|
|
2249
2255
|
|
|
2250
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2256
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2251
2257
|
|
|
2252
2258
|
---
|
|
2253
2259
|
|
|
@@ -2257,33 +2263,24 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
2257
2263
|
ATOMIC_BEEF = 16843009
|
|
2258
2264
|
```
|
|
2259
2265
|
|
|
2260
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2261
|
-
|
|
2262
|
-
---
|
|
2263
|
-
### Variable: BEEF_MAGIC
|
|
2264
|
-
|
|
2265
|
-
```ts
|
|
2266
|
-
BEEF_MAGIC = 4022206465
|
|
2267
|
-
```
|
|
2268
|
-
|
|
2269
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2266
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2270
2267
|
|
|
2271
2268
|
---
|
|
2272
|
-
### Variable:
|
|
2269
|
+
### Variable: BEEF_V1
|
|
2273
2270
|
|
|
2274
2271
|
```ts
|
|
2275
|
-
|
|
2272
|
+
BEEF_V1 = 4022206465
|
|
2276
2273
|
```
|
|
2277
2274
|
|
|
2278
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2275
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2279
2276
|
|
|
2280
2277
|
---
|
|
2281
|
-
### Variable:
|
|
2278
|
+
### Variable: BEEF_V2
|
|
2282
2279
|
|
|
2283
2280
|
```ts
|
|
2284
|
-
|
|
2281
|
+
BEEF_V2 = 4022206466
|
|
2285
2282
|
```
|
|
2286
2283
|
|
|
2287
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2284
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
2288
2285
|
|
|
2289
2286
|
---
|