@bsv/sdk 1.2.6 → 1.2.7

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 (74) hide show
  1. package/dist/cjs/package.json +1 -1
  2. package/dist/cjs/src/script/templates/PushDrop.js +2 -2
  3. package/dist/cjs/src/script/templates/PushDrop.js.map +1 -1
  4. package/dist/cjs/src/transaction/Transaction.js +1 -5
  5. package/dist/cjs/src/transaction/Transaction.js.map +1 -1
  6. package/dist/cjs/src/wallet/CachedKeyDeriver.js +4 -4
  7. package/dist/cjs/src/wallet/CachedKeyDeriver.js.map +1 -1
  8. package/dist/cjs/src/wallet/KeyDeriver.js +5 -5
  9. package/dist/cjs/src/wallet/KeyDeriver.js.map +1 -1
  10. package/dist/cjs/src/wallet/ProtoWallet.js.map +1 -1
  11. package/dist/cjs/src/wallet/Wallet.interfaces.js +14 -0
  12. package/dist/cjs/src/wallet/Wallet.interfaces.js.map +1 -1
  13. package/dist/cjs/src/wallet/WalletClient.js.map +1 -1
  14. package/dist/cjs/src/wallet/substrates/WalletWireProcessor.js.map +1 -1
  15. package/dist/cjs/src/wallet/substrates/WalletWireTransceiver.js.map +1 -1
  16. package/dist/cjs/src/wallet/substrates/XDM.js.map +1 -1
  17. package/dist/cjs/src/wallet/substrates/window.CWI.js.map +1 -1
  18. package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
  19. package/dist/esm/src/script/templates/PushDrop.js +2 -2
  20. package/dist/esm/src/script/templates/PushDrop.js.map +1 -1
  21. package/dist/esm/src/transaction/Transaction.js +1 -5
  22. package/dist/esm/src/transaction/Transaction.js.map +1 -1
  23. package/dist/esm/src/wallet/CachedKeyDeriver.js +4 -4
  24. package/dist/esm/src/wallet/CachedKeyDeriver.js.map +1 -1
  25. package/dist/esm/src/wallet/KeyDeriver.js +5 -5
  26. package/dist/esm/src/wallet/KeyDeriver.js.map +1 -1
  27. package/dist/esm/src/wallet/ProtoWallet.js.map +1 -1
  28. package/dist/esm/src/wallet/Wallet.interfaces.js +13 -1
  29. package/dist/esm/src/wallet/Wallet.interfaces.js.map +1 -1
  30. package/dist/esm/src/wallet/WalletClient.js.map +1 -1
  31. package/dist/esm/src/wallet/substrates/WalletWireProcessor.js.map +1 -1
  32. package/dist/esm/src/wallet/substrates/WalletWireTransceiver.js.map +1 -1
  33. package/dist/esm/src/wallet/substrates/XDM.js.map +1 -1
  34. package/dist/esm/src/wallet/substrates/window.CWI.js.map +1 -1
  35. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  36. package/dist/types/src/script/templates/PushDrop.d.ts +5 -4
  37. package/dist/types/src/script/templates/PushDrop.d.ts.map +1 -1
  38. package/dist/types/src/transaction/Transaction.d.ts +0 -1
  39. package/dist/types/src/transaction/Transaction.d.ts.map +1 -1
  40. package/dist/types/src/wallet/CachedKeyDeriver.d.ts +9 -8
  41. package/dist/types/src/wallet/CachedKeyDeriver.d.ts.map +1 -1
  42. package/dist/types/src/wallet/KeyDeriver.d.ts +10 -9
  43. package/dist/types/src/wallet/KeyDeriver.d.ts.map +1 -1
  44. package/dist/types/src/wallet/ProtoWallet.d.ts +10 -10
  45. package/dist/types/src/wallet/ProtoWallet.d.ts.map +1 -1
  46. package/dist/types/src/wallet/Wallet.interfaces.d.ts +30 -2
  47. package/dist/types/src/wallet/Wallet.interfaces.d.ts.map +1 -1
  48. package/dist/types/src/wallet/WalletClient.d.ts +10 -10
  49. package/dist/types/src/wallet/WalletClient.d.ts.map +1 -1
  50. package/dist/types/src/wallet/substrates/WalletWireProcessor.d.ts.map +1 -1
  51. package/dist/types/src/wallet/substrates/WalletWireTransceiver.d.ts +10 -10
  52. package/dist/types/src/wallet/substrates/WalletWireTransceiver.d.ts.map +1 -1
  53. package/dist/types/src/wallet/substrates/XDM.d.ts +10 -10
  54. package/dist/types/src/wallet/substrates/XDM.d.ts.map +1 -1
  55. package/dist/types/src/wallet/substrates/window.CWI.d.ts +10 -10
  56. package/dist/types/src/wallet/substrates/window.CWI.d.ts.map +1 -1
  57. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  58. package/dist/umd/bundle.js +1 -1
  59. package/docs/overlay-tools.md +21 -19
  60. package/docs/script.md +21 -19
  61. package/docs/transaction.md +4 -6
  62. package/docs/wallet.md +229 -196
  63. package/package.json +1 -1
  64. package/src/script/templates/PushDrop.ts +5 -4
  65. package/src/transaction/Transaction.ts +1 -5
  66. package/src/wallet/CachedKeyDeriver.ts +9 -8
  67. package/src/wallet/KeyDeriver.ts +11 -10
  68. package/src/wallet/ProtoWallet.ts +10 -9
  69. package/src/wallet/Wallet.interfaces.ts +32 -2
  70. package/src/wallet/WalletClient.ts +9 -9
  71. package/src/wallet/substrates/WalletWireProcessor.ts +3 -2
  72. package/src/wallet/substrates/WalletWireTransceiver.ts +11 -11
  73. package/src/wallet/substrates/XDM.ts +9 -9
  74. package/src/wallet/substrates/window.CWI.ts +9 -9
@@ -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
 
@@ -14,7 +14,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
14
14
  | [SHIPBroadcasterConfig](#interface-shipbroadcasterconfig) |
15
15
  | [TaggedBEEF](#interface-taggedbeef) |
16
16
 
17
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
17
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
18
18
 
19
19
  ---
20
20
 
@@ -51,7 +51,7 @@ outputsToAdmit: number[]
51
51
 
52
52
  </details>
53
53
 
54
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
54
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
55
55
 
56
56
  ---
57
57
  ### Interface: LookupQuestion
@@ -88,7 +88,7 @@ service: string
88
88
 
89
89
  </details>
90
90
 
91
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
91
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
92
92
 
93
93
  ---
94
94
  ### Interface: LookupResolverConfig
@@ -145,7 +145,7 @@ slapTrackers?: string[]
145
145
 
146
146
  </details>
147
147
 
148
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
148
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
149
149
 
150
150
  ---
151
151
  ### Interface: OverlayBroadcastFacilitator
@@ -160,7 +160,7 @@ export interface OverlayBroadcastFacilitator {
160
160
 
161
161
  See also: [STEAK](#type-steak), [TaggedBEEF](#interface-taggedbeef)
162
162
 
163
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
163
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
164
164
 
165
165
  ---
166
166
  ### Interface: OverlayLookupFacilitator
@@ -190,7 +190,7 @@ See also: [LookupAnswer](#type-lookupanswer), [LookupQuestion](#interface-lookup
190
190
 
191
191
  </details>
192
192
 
193
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
193
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
194
194
 
195
195
  ---
196
196
  ### Interface: SHIPBroadcasterConfig
@@ -257,7 +257,7 @@ See also: [LookupResolver](#class-lookupresolver)
257
257
 
258
258
  </details>
259
259
 
260
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
260
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
261
261
 
262
262
  ---
263
263
  ### Interface: TaggedBEEF
@@ -271,7 +271,7 @@ export interface TaggedBEEF {
271
271
  }
272
272
  ```
273
273
 
274
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
274
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
275
275
 
276
276
  ---
277
277
  ## Classes
@@ -284,7 +284,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
284
284
  | [OverlayAdminTokenTemplate](#class-overlayadmintokentemplate) |
285
285
  | [SHIPCast](#class-shipcast) |
286
286
 
287
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
287
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
288
288
 
289
289
  ---
290
290
 
@@ -300,7 +300,7 @@ export class HTTPSOverlayBroadcastFacilitator implements OverlayBroadcastFacilit
300
300
 
301
301
  See also: [OverlayBroadcastFacilitator](#interface-overlaybroadcastfacilitator), [STEAK](#type-steak), [TaggedBEEF](#interface-taggedbeef)
302
302
 
303
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
303
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
304
304
 
305
305
  ---
306
306
  ### Class: HTTPSOverlayLookupFacilitator
@@ -315,7 +315,7 @@ export class HTTPSOverlayLookupFacilitator implements OverlayLookupFacilitator {
315
315
 
316
316
  See also: [LookupAnswer](#type-lookupanswer), [LookupQuestion](#interface-lookupquestion), [OverlayLookupFacilitator](#interface-overlaylookupfacilitator)
317
317
 
318
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
318
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
319
319
 
320
320
  ---
321
321
  ### Class: LookupResolver
@@ -346,7 +346,7 @@ See also: [LookupAnswer](#type-lookupanswer), [LookupQuestion](#interface-lookup
346
346
 
347
347
  </details>
348
348
 
349
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
349
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
350
350
 
351
351
  ---
352
352
  ### Class: OverlayAdminTokenTemplate
@@ -459,7 +459,7 @@ Argument Details
459
459
 
460
460
  </details>
461
461
 
462
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
462
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
463
463
 
464
464
  ---
465
465
  ### Class: SHIPCast
@@ -515,7 +515,7 @@ Argument Details
515
515
 
516
516
  </details>
517
517
 
518
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
518
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
519
519
 
520
520
  ---
521
521
  ## Functions
@@ -527,7 +527,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
527
527
  | [LookupAnswer](#type-lookupanswer) |
528
528
  | [STEAK](#type-steak) |
529
529
 
530
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
530
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
531
531
 
532
532
  ---
533
533
 
@@ -549,7 +549,7 @@ export type LookupAnswer = {
549
549
  }
550
550
  ```
551
551
 
552
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
552
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
553
553
 
554
554
  ---
555
555
  ### Type: STEAK
@@ -562,9 +562,11 @@ export type STEAK = Record<string, AdmittanceInstructions>
562
562
 
563
563
  See also: [AdmittanceInstructions](#interface-admittanceinstructions)
564
564
 
565
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
565
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
566
566
 
567
567
  ---
568
+ ## Enums
569
+
568
570
  ## Variables
569
571
 
570
572
  ### Variable: DEFAULT_SLAP_TRACKERS
@@ -577,6 +579,6 @@ DEFAULT_SLAP_TRACKERS: string[] = [
577
579
  ]
578
580
  ```
579
581
 
580
- 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)
581
583
 
582
584
  ---
package/docs/script.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
 
@@ -9,7 +9,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
9
9
  | [ScriptChunk](#interface-scriptchunk) |
10
10
  | [ScriptTemplate](#interface-scripttemplate) |
11
11
 
12
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
12
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
13
13
 
14
14
  ---
15
15
 
@@ -24,7 +24,7 @@ export default interface ScriptChunk {
24
24
  }
25
25
  ```
26
26
 
27
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
27
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
28
28
 
29
29
  ---
30
30
  ### Interface: ScriptTemplate
@@ -72,7 +72,7 @@ See also: [Transaction](#class-transaction), [UnlockingScript](#class-unlockings
72
72
 
73
73
  </details>
74
74
 
75
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
75
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
76
76
 
77
77
  ---
78
78
  ## Classes
@@ -87,7 +87,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
87
87
  | [Spend](#class-spend) |
88
88
  | [UnlockingScript](#class-unlockingscript) |
89
89
 
90
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
90
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
91
91
 
92
92
  ---
93
93
 
@@ -133,7 +133,7 @@ Always returns false for a LockingScript instance.
133
133
 
134
134
  </details>
135
135
 
136
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
136
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
137
137
 
138
138
  ---
139
139
  ### Class: P2PKH
@@ -212,7 +212,7 @@ Argument Details
212
212
 
213
213
  </details>
214
214
 
215
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
215
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
216
216
 
217
217
  ---
218
218
  ### Class: PushDrop
@@ -226,11 +226,11 @@ export default class PushDrop implements ScriptTemplate {
226
226
  }
227
227
  constructor(wallet: Wallet)
228
228
  async lock(fields: number[][], protocolID: [
229
- 0 | 1 | 2,
229
+ SecurityLevel,
230
230
  string
231
231
  ], keyID: string, counterparty: string, forSelf = false, includeSignature = true, lockPosition: "before" | "after" = "before"): Promise<LockingScript>
232
232
  unlock(protocolID: [
233
- 0 | 1 | 2,
233
+ SecurityLevel,
234
234
  string
235
235
  ], keyID: string, counterparty: string, signOutputs: "all" | "none" | "single" = "all", anyoneCanPay = false, sourceSatoshis?: number, lockingScript?: LockingScript): {
236
236
  sign: (tx: Transaction, inputIndex: number) => Promise<UnlockingScript>;
@@ -239,7 +239,7 @@ export default class PushDrop implements ScriptTemplate {
239
239
  }
240
240
  ```
241
241
 
242
- See also: [LockingScript](#class-lockingscript), [PublicKey](#class-publickey), [ScriptTemplate](#interface-scripttemplate), [Transaction](#class-transaction), [UnlockingScript](#class-unlockingscript), [Wallet](#interface-wallet), [sign](#variable-sign)
242
+ See also: [LockingScript](#class-lockingscript), [PublicKey](#class-publickey), [ScriptTemplate](#interface-scripttemplate), [SecurityLevel](#type-securitylevel), [Transaction](#class-transaction), [UnlockingScript](#class-unlockingscript), [Wallet](#interface-wallet), [sign](#variable-sign)
243
243
 
244
244
  <details>
245
245
 
@@ -287,11 +287,11 @@ Creates a PushDrop locking script with arbitrary data fields and a public key lo
287
287
 
288
288
  ```ts
289
289
  async lock(fields: number[][], protocolID: [
290
- 0 | 1 | 2,
290
+ SecurityLevel,
291
291
  string
292
292
  ], keyID: string, counterparty: string, forSelf = false, includeSignature = true, lockPosition: "before" | "after" = "before"): Promise<LockingScript>
293
293
  ```
294
- See also: [LockingScript](#class-lockingscript)
294
+ See also: [LockingScript](#class-lockingscript), [SecurityLevel](#type-securitylevel)
295
295
 
296
296
  Returns
297
297
 
@@ -318,14 +318,14 @@ Creates an unlocking script for spending a PushDrop token output.
318
318
 
319
319
  ```ts
320
320
  unlock(protocolID: [
321
- 0 | 1 | 2,
321
+ SecurityLevel,
322
322
  string
323
323
  ], keyID: string, counterparty: string, signOutputs: "all" | "none" | "single" = "all", anyoneCanPay = false, sourceSatoshis?: number, lockingScript?: LockingScript): {
324
324
  sign: (tx: Transaction, inputIndex: number) => Promise<UnlockingScript>;
325
325
  estimateLength: () => Promise<73>;
326
326
  }
327
327
  ```
328
- See also: [LockingScript](#class-lockingscript), [Transaction](#class-transaction), [UnlockingScript](#class-unlockingscript), [sign](#variable-sign)
328
+ See also: [LockingScript](#class-lockingscript), [SecurityLevel](#type-securitylevel), [Transaction](#class-transaction), [UnlockingScript](#class-unlockingscript), [sign](#variable-sign)
329
329
 
330
330
  Returns
331
331
 
@@ -352,7 +352,7 @@ Argument Details
352
352
 
353
353
  </details>
354
354
 
355
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
355
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
356
356
 
357
357
  ---
358
358
  ### Class: RPuzzle
@@ -442,7 +442,7 @@ Argument Details
442
442
 
443
443
  </details>
444
444
 
445
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
445
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
446
446
 
447
447
  ---
448
448
  ### Class: Script
@@ -752,7 +752,7 @@ Argument Details
752
752
 
753
753
  </details>
754
754
 
755
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
755
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
756
756
 
757
757
  ---
758
758
  ### Class: Spend
@@ -890,7 +890,7 @@ if (spend.validate()) {
890
890
 
891
891
  </details>
892
892
 
893
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
893
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
894
894
 
895
895
  ---
896
896
  ### Class: UnlockingScript
@@ -935,12 +935,14 @@ Always returns true for an UnlockingScript instance.
935
935
 
936
936
  </details>
937
937
 
938
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
938
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
939
939
 
940
940
  ---
941
941
  ## Functions
942
942
 
943
943
  ## Types
944
944
 
945
+ ## Enums
946
+
945
947
  ## Variables
946
948
 
@@ -1487,7 +1487,7 @@ export default class Transaction {
1487
1487
  addInput(input: TransactionInput): void
1488
1488
  addOutput(output: TransactionOutput): void
1489
1489
  updateMetadata(metadata: Record<string, any>): void
1490
- async fee(modelOrFee?: FeeModel | number, changeDistribution: "equal" | "random" = "equal"): Promise<void>
1490
+ async fee(modelOrFee: FeeModel | number = new SatoshisPerKilobyte(10), changeDistribution: "equal" | "random" = "equal"): Promise<void>
1491
1491
  getFee(): number
1492
1492
  async sign(): Promise<void>
1493
1493
  async broadcast(broadcaster: Broadcaster = defaultBroadcaster()): Promise<BroadcastResponse | BroadcastFailure>
@@ -1507,7 +1507,7 @@ export default class Transaction {
1507
1507
  }
1508
1508
  ```
1509
1509
 
1510
- See also: [BroadcastFailure](#interface-broadcastfailure), [BroadcastResponse](#interface-broadcastresponse), [Broadcaster](#interface-broadcaster), [ChainTracker](#interface-chaintracker), [FeeModel](#interface-feemodel), [MerklePath](#class-merklepath), [Reader](#class-reader), [TransactionInput](#interface-transactioninput), [TransactionOutput](#interface-transactionoutput), [defaultBroadcaster](#function-defaultbroadcaster), [defaultChainTracker](#function-defaultchaintracker), [sign](#variable-sign), [toHex](#variable-tohex), [verify](#variable-verify)
1510
+ See also: [BroadcastFailure](#interface-broadcastfailure), [BroadcastResponse](#interface-broadcastresponse), [Broadcaster](#interface-broadcaster), [ChainTracker](#interface-chaintracker), [FeeModel](#interface-feemodel), [MerklePath](#class-merklepath), [Reader](#class-reader), [SatoshisPerKilobyte](#class-satoshisperkilobyte), [TransactionInput](#interface-transactioninput), [TransactionOutput](#interface-transactionoutput), [defaultBroadcaster](#function-defaultbroadcaster), [defaultChainTracker](#function-defaultchaintracker), [sign](#variable-sign), [toHex](#variable-tohex), [verify](#variable-verify)
1511
1511
 
1512
1512
  <details>
1513
1513
 
@@ -1570,9 +1570,9 @@ If no fee model is provided, uses a SatoshisPerKilobyte fee model that pays 10 s
1570
1570
  If fee is a number, the transaction uses that value as fee.
1571
1571
 
1572
1572
  ```ts
1573
- async fee(modelOrFee?: FeeModel | number, changeDistribution: "equal" | "random" = "equal"): Promise<void>
1573
+ async fee(modelOrFee: FeeModel | number = new SatoshisPerKilobyte(10), changeDistribution: "equal" | "random" = "equal"): Promise<void>
1574
1574
  ```
1575
- See also: [FeeModel](#interface-feemodel)
1575
+ See also: [FeeModel](#interface-feemodel), [SatoshisPerKilobyte](#class-satoshisperkilobyte)
1576
1576
 
1577
1577
  Argument Details
1578
1578
 
@@ -1582,8 +1582,6 @@ Argument Details
1582
1582
  + Specifies how the change should be distributed
1583
1583
  amongst the change outputs
1584
1584
 
1585
- TODO: Benford's law change distribution.
1586
-
1587
1585
  #### Method fromAtomicBEEF
1588
1586
 
1589
1587
  Creates a new transaction from an Atomic BEEF (BRC-95) structure.