@1sat/wallet-toolbox 0.0.55 → 0.0.56

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) };
@@ -387,6 +387,7 @@ export const transferOrdinals = {
387
387
  const signResult = await ctx.wallet.signAction({
388
388
  reference: createResult.signableTransaction.reference,
389
389
  spends,
390
+ options: { acceptDelayedBroadcast: false },
390
391
  });
391
392
  if ("error" in signResult) {
392
393
  return { error: String(signResult.error) };
@@ -444,6 +445,7 @@ export const listOrdinal = {
444
445
  const signResult = await ctx.wallet.signAction({
445
446
  reference: createResult.signableTransaction.reference,
446
447
  spends: { 0: { unlockingScript: unlocking } },
448
+ options: { acceptDelayedBroadcast: false },
447
449
  });
448
450
  if ("error" in signResult) {
449
451
  return { error: String(signResult.error) };
@@ -568,6 +570,7 @@ export const cancelListing = {
568
570
  spends: {
569
571
  0: { unlockingScript: unlockingScript.toHex() },
570
572
  },
573
+ options: { acceptDelayedBroadcast: false },
571
574
  });
572
575
  if ("error" in signResult) {
573
576
  return { error: String(signResult.error) };
@@ -711,6 +714,7 @@ export const purchaseOrdinal = {
711
714
  spends: {
712
715
  0: { unlockingScript: unlockingScript.toHex() },
713
716
  },
717
+ options: { acceptDelayedBroadcast: false },
714
718
  });
715
719
  if ("error" in signResult) {
716
720
  return { error: String(signResult.error) };
@@ -101,7 +101,7 @@ export const sendBsv = {
101
101
  const result = await ctx.wallet.createAction({
102
102
  description: `Send ${requests.length} payment(s)`,
103
103
  outputs,
104
- options: { signAndProcess: true },
104
+ options: { signAndProcess: true, acceptDelayedBroadcast: false },
105
105
  });
106
106
  if (!result.txid) {
107
107
  return { error: "no-txid-returned" };
@@ -166,7 +166,7 @@ export const sendAllBsv = {
166
166
  outputDescription: "Sweep all funds",
167
167
  },
168
168
  ],
169
- options: { signAndProcess: true },
169
+ options: { signAndProcess: true, acceptDelayedBroadcast: false },
170
170
  });
171
171
  if (!result.txid) {
172
172
  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) };
@@ -643,6 +645,7 @@ export const sweepBsv21 = {
643
645
  const signResult = await ctx.wallet.signAction({
644
646
  reference: createResult.signableTransaction.reference,
645
647
  spends,
648
+ options: { acceptDelayedBroadcast: false },
646
649
  });
647
650
  if ("error" in signResult) {
648
651
  return { error: String(signResult.error) };
@@ -304,6 +304,7 @@ export const sendBsv21 = {
304
304
  const signResult = await ctx.wallet.signAction({
305
305
  reference: createResult.signableTransaction.reference,
306
306
  spends: {},
307
+ options: { acceptDelayedBroadcast: false },
307
308
  });
308
309
  if ("error" in signResult) {
309
310
  return { error: String(signResult.error) };
@@ -451,6 +452,7 @@ export const purchaseBsv21 = {
451
452
  spends: {
452
453
  0: { unlockingScript: unlockingScript.toHex() },
453
454
  },
455
+ options: { acceptDelayedBroadcast: false },
454
456
  });
455
457
  if ("error" in signResult) {
456
458
  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.56",
4
4
  "description": "BSV wallet library extending @bsv/wallet-toolbox with 1Sat Ordinals protocol support",
5
5
  "author": "1Sat Team",
6
6
  "license": "MIT",