@1sat/wallet-toolbox 0.0.55 → 0.0.57

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.
@@ -82,6 +82,7 @@ export const inscribe = {
82
82
  }),
83
83
  },
84
84
  ],
85
+ options: { signAndProcess: true, acceptDelayedBroadcast: false },
85
86
  });
86
87
  if (!result.txid) {
87
88
  return { error: "no-txid-returned" };
@@ -140,6 +140,7 @@ export const lockBsv = {
140
140
  const result = await ctx.wallet.createAction({
141
141
  description: `Lock BSV in ${requests.length} output(s)`,
142
142
  outputs,
143
+ options: { signAndProcess: true, acceptDelayedBroadcast: false },
143
144
  });
144
145
  if (!result.txid) {
145
146
  return { error: "no-txid-returned" };
@@ -270,6 +271,7 @@ export const unlockBsv = {
270
271
  const signResult = await ctx.wallet.signAction({
271
272
  reference: createResult.signableTransaction.reference,
272
273
  spends,
274
+ options: { acceptDelayedBroadcast: false },
273
275
  });
274
276
  if ("error" in signResult) {
275
277
  return { error: String(signResult.error) };
@@ -203,6 +203,7 @@ export async function buildTransferOrdinals(ctx, request) {
203
203
  lockingScript: new P2PKH().lock(recipientAddress).toHex(),
204
204
  satoshis: 1,
205
205
  outputDescription: "Ordinal transfer to external address",
206
+ tags: [],
206
207
  });
207
208
  }
208
209
  }
@@ -387,6 +388,7 @@ export const transferOrdinals = {
387
388
  const signResult = await ctx.wallet.signAction({
388
389
  reference: createResult.signableTransaction.reference,
389
390
  spends,
391
+ options: { acceptDelayedBroadcast: false },
390
392
  });
391
393
  if ("error" in signResult) {
392
394
  return { error: String(signResult.error) };
@@ -444,6 +446,7 @@ export const listOrdinal = {
444
446
  const signResult = await ctx.wallet.signAction({
445
447
  reference: createResult.signableTransaction.reference,
446
448
  spends: { 0: { unlockingScript: unlocking } },
449
+ options: { acceptDelayedBroadcast: false },
447
450
  });
448
451
  if ("error" in signResult) {
449
452
  return { error: String(signResult.error) };
@@ -568,6 +571,7 @@ export const cancelListing = {
568
571
  spends: {
569
572
  0: { unlockingScript: unlockingScript.toHex() },
570
573
  },
574
+ options: { acceptDelayedBroadcast: false },
571
575
  });
572
576
  if ("error" in signResult) {
573
577
  return { error: String(signResult.error) };
@@ -674,6 +678,7 @@ export const purchaseOrdinal = {
674
678
  lockingScript: payoutLockingScript.toHex(),
675
679
  satoshis: payoutSatoshis,
676
680
  outputDescription: "Payment to seller",
681
+ tags: [],
677
682
  });
678
683
  if (marketplaceAddress && marketplaceRate && marketplaceRate > 0) {
679
684
  const marketFee = Math.ceil(payoutSatoshis * marketplaceRate);
@@ -682,6 +687,7 @@ export const purchaseOrdinal = {
682
687
  lockingScript: p2pkh.lock(marketplaceAddress).toHex(),
683
688
  satoshis: marketFee,
684
689
  outputDescription: "Marketplace fee",
690
+ tags: [],
685
691
  });
686
692
  }
687
693
  }
@@ -711,6 +717,7 @@ export const purchaseOrdinal = {
711
717
  spends: {
712
718
  0: { unlockingScript: unlockingScript.toHex() },
713
719
  },
720
+ options: { acceptDelayedBroadcast: false },
714
721
  });
715
722
  if ("error" in signResult) {
716
723
  return { error: String(signResult.error) };
@@ -96,12 +96,13 @@ export const sendBsv = {
96
96
  lockingScript: lockingScript.toHex(),
97
97
  satoshis: req.satoshis,
98
98
  outputDescription: `Payment of ${req.satoshis} sats`,
99
+ tags: [],
99
100
  });
100
101
  }
101
102
  const result = await ctx.wallet.createAction({
102
103
  description: `Send ${requests.length} payment(s)`,
103
104
  outputs,
104
- options: { signAndProcess: true },
105
+ options: { signAndProcess: true, acceptDelayedBroadcast: false },
105
106
  });
106
107
  if (!result.txid) {
107
108
  return { error: "no-txid-returned" };
@@ -166,7 +167,7 @@ export const sendAllBsv = {
166
167
  outputDescription: "Sweep all funds",
167
168
  },
168
169
  ],
169
- options: { signAndProcess: true },
170
+ options: { signAndProcess: true, acceptDelayedBroadcast: false },
170
171
  });
171
172
  if (!result.txid) {
172
173
  return { error: "no-txid-returned" };
@@ -204,6 +204,7 @@ export const sweepBsv = {
204
204
  const signResult = await ctx.wallet.signAction({
205
205
  reference: createResult.signableTransaction.reference,
206
206
  spends,
207
+ options: { acceptDelayedBroadcast: false },
207
208
  });
208
209
  if ("error" in signResult) {
209
210
  return { error: String(signResult.error) };
@@ -430,6 +431,7 @@ export const sweepOrdinals = {
430
431
  const signResult = await ctx.wallet.signAction({
431
432
  reference: createResult.signableTransaction.reference,
432
433
  spends,
434
+ options: { acceptDelayedBroadcast: false },
433
435
  });
434
436
  if ("error" in signResult) {
435
437
  return { error: String(signResult.error) };
@@ -598,6 +600,7 @@ export const sweepBsv21 = {
598
600
  lockingScript: p2pkh.lock(fundAddress).toHex(),
599
601
  satoshis: BSV21_FEE_SATS,
600
602
  outputDescription: "Overlay processing fee",
603
+ tags: [],
601
604
  });
602
605
  const beefData = firstBeef.toBinary();
603
606
  // Create action to get signable transaction
@@ -643,6 +646,7 @@ export const sweepBsv21 = {
643
646
  const signResult = await ctx.wallet.signAction({
644
647
  reference: createResult.signableTransaction.reference,
645
648
  spends,
649
+ options: { acceptDelayedBroadcast: false },
646
650
  });
647
651
  if ("error" in signResult) {
648
652
  return { error: String(signResult.error) };
@@ -259,6 +259,7 @@ export const sendBsv21 = {
259
259
  lockingScript: p2pkh.lock(fundAddress).toHex(),
260
260
  satoshis: BSV21_FEE_SATS,
261
261
  outputDescription: "Overlay processing fee",
262
+ tags: [],
262
263
  });
263
264
  const change = totalIn - amount;
264
265
  if (change > 0n) {
@@ -304,6 +305,7 @@ export const sendBsv21 = {
304
305
  const signResult = await ctx.wallet.signAction({
305
306
  reference: createResult.signableTransaction.reference,
306
307
  spends: {},
308
+ options: { acceptDelayedBroadcast: false },
307
309
  });
308
310
  if ("error" in signResult) {
309
311
  return { error: String(signResult.error) };
@@ -414,6 +416,7 @@ export const purchaseBsv21 = {
414
416
  lockingScript: payoutLockingScript.toHex(),
415
417
  satoshis: payoutSatoshis,
416
418
  outputDescription: "Payment to seller",
419
+ tags: [],
417
420
  });
418
421
  if (marketplaceAddress && marketplaceRate && marketplaceRate > 0) {
419
422
  const marketFee = Math.ceil(payoutSatoshis * marketplaceRate);
@@ -422,6 +425,7 @@ export const purchaseBsv21 = {
422
425
  lockingScript: p2pkh.lock(marketplaceAddress).toHex(),
423
426
  satoshis: marketFee,
424
427
  outputDescription: "Marketplace fee",
428
+ tags: [],
425
429
  });
426
430
  }
427
431
  }
@@ -451,6 +455,7 @@ export const purchaseBsv21 = {
451
455
  spends: {
452
456
  0: { unlockingScript: unlockingScript.toHex() },
453
457
  },
458
+ options: { acceptDelayedBroadcast: false },
454
459
  });
455
460
  if ("error" in signResult) {
456
461
  return { error: String(signResult.error) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1sat/wallet-toolbox",
3
- "version": "0.0.55",
3
+ "version": "0.0.57",
4
4
  "description": "BSV wallet library extending @bsv/wallet-toolbox with 1Sat Ordinals protocol support",
5
5
  "author": "1Sat Team",
6
6
  "license": "MIT",