@1sat/wallet-toolbox 0.0.51 → 0.0.52
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/api/ordinals/index.js +13 -0
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -333,6 +334,18 @@ export const transferOrdinals = {
|
|
|
333
334
|
},
|
|
334
335
|
},
|
|
335
336
|
async execute(ctx, input) {
|
|
337
|
+
console.log("[transferOrdinals] EXECUTE START - input:", JSON.stringify({
|
|
338
|
+
transferCount: input.transfers?.length,
|
|
339
|
+
hasBEEF: !!input.inputBEEF,
|
|
340
|
+
beefLength: input.inputBEEF?.length,
|
|
341
|
+
transfers: input.transfers?.map(t => ({
|
|
342
|
+
outpoint: t.ordinal?.outpoint,
|
|
343
|
+
hasAddress: !!t.address,
|
|
344
|
+
hasCounterparty: !!t.counterparty,
|
|
345
|
+
tags: t.ordinal?.tags,
|
|
346
|
+
customInstructions: t.ordinal?.customInstructions,
|
|
347
|
+
})),
|
|
348
|
+
}, null, 2));
|
|
336
349
|
try {
|
|
337
350
|
const params = await buildTransferOrdinals(ctx, input);
|
|
338
351
|
if ("error" in params) {
|