@zubari/sdk 0.1.25 → 0.1.26

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.
@@ -553,6 +553,27 @@ var WdkApiClient = class {
553
553
  };
554
554
  }
555
555
  }
556
+ /**
557
+ * Get transaction status by hash
558
+ * Fetches from blockchain explorers to check confirmation status
559
+ */
560
+ async getTransactionStatus(txHash, chain, network = "testnet") {
561
+ try {
562
+ const response = await fetch(`${this.config.baseUrl}/api/wallets/wdk/tx-status`, {
563
+ method: "POST",
564
+ headers: {
565
+ "Content-Type": "application/json"
566
+ },
567
+ body: JSON.stringify({ txHash, chain, network })
568
+ });
569
+ return await response.json();
570
+ } catch (error) {
571
+ return {
572
+ success: false,
573
+ error: error instanceof Error ? error.message : "Failed to get transaction status"
574
+ };
575
+ }
576
+ }
556
577
  };
557
578
  var DEFAULT_API_URL = process.env.NEXT_PUBLIC_API_URL || "https://ckgwifsxka.us-east-2.awsapprunner.com";
558
579
  var wdkApiClient = null;