openclaw-overlay-plugin 0.8.35 → 0.8.40

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/src/cli.js CHANGED
@@ -134731,6 +134731,33 @@ var init_wallet2 = __esm({
134731
134731
  async getBalance() {
134732
134732
  return await this._setup.wallet.balance();
134733
134733
  }
134734
+ /**
134735
+ * Import a raw transaction into the wallet.
134736
+ * Useful for manual funding or recovery.
134737
+ */
134738
+ async importRawTx(hex) {
134739
+ log("Importing raw transaction");
134740
+ const result = await this._setup.wallet.internalizeAction({
134741
+ tx: hex,
134742
+ // Cast to avoid AtomicBEEF vs string mismatch in older SDK versions
134743
+ description: "manual import"
134744
+ });
134745
+ return { success: result.accepted, txid: result.txid || "" };
134746
+ }
134747
+ /**
134748
+ * Import a specific UTXO by TXID and Output Index.
134749
+ * This will fetch the transaction data and add it to the wallet storage.
134750
+ */
134751
+ async importUtxo(txid, vout) {
134752
+ log("Importing UTXO: %s:%d", txid, vout);
134753
+ try {
134754
+ await this._setup.wallet.importOutput({ txid, vout });
134755
+ return { success: true };
134756
+ } catch (err) {
134757
+ log("UTXO import failed: %s", err.message);
134758
+ throw err;
134759
+ }
134760
+ }
134734
134761
  /**
134735
134762
  * Cleanly shut down the wallet, releasing database connections and
134736
134763
  * stopping the background monitor.