@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.
@@ -855,6 +855,27 @@ var WdkApiClient = class {
855
855
  };
856
856
  }
857
857
  }
858
+ /**
859
+ * Get transaction status by hash
860
+ * Fetches from blockchain explorers to check confirmation status
861
+ */
862
+ async getTransactionStatus(txHash, chain, network = "testnet") {
863
+ try {
864
+ const response = await fetch(`${this.config.baseUrl}/api/wallets/wdk/tx-status`, {
865
+ method: "POST",
866
+ headers: {
867
+ "Content-Type": "application/json"
868
+ },
869
+ body: JSON.stringify({ txHash, chain, network })
870
+ });
871
+ return await response.json();
872
+ } catch (error) {
873
+ return {
874
+ success: false,
875
+ error: error instanceof Error ? error.message : "Failed to get transaction status"
876
+ };
877
+ }
878
+ }
858
879
  };
859
880
  var DEFAULT_API_URL = process.env.NEXT_PUBLIC_API_URL || "https://ckgwifsxka.us-east-2.awsapprunner.com";
860
881
  var wdkApiClient = null;