@1sat/wallet-toolbox 0.0.60 → 0.0.62
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.
|
@@ -139,12 +139,17 @@ export class OneSatServices {
|
|
|
139
139
|
}
|
|
140
140
|
async postBeef(beef, txids) {
|
|
141
141
|
console.log("[OneSatServices] postBeef called with txids:", txids);
|
|
142
|
+
console.log("[OneSatServices] BEEF structure:\n" + beef.toLogString());
|
|
142
143
|
const results = [];
|
|
143
144
|
for (const txid of txids) {
|
|
144
145
|
try {
|
|
145
146
|
// Submit as AtomicBEEF which includes all source transactions
|
|
146
147
|
console.log("[OneSatServices] Submitting tx to arcade:", txid);
|
|
147
148
|
const atomicBeef = beef.toBinaryAtomic(txid);
|
|
149
|
+
console.log("[OneSatServices] AtomicBEEF length:", atomicBeef.length, "bytes");
|
|
150
|
+
// Parse back to verify structure
|
|
151
|
+
const verifyBeef = Beef.fromBinary(atomicBeef);
|
|
152
|
+
console.log("[OneSatServices] AtomicBEEF parsed back:\n" + verifyBeef.toLogString());
|
|
148
153
|
// TODO: Remove hardcoded callback headers after server testing
|
|
149
154
|
const status = await this.arcade.submitTransaction(atomicBeef, {
|
|
150
155
|
callbackUrl: `${this.baseUrl}/1sat/arc/callback`,
|