@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.
- package/dist/{index-C4SuAZP4.d.ts → index-CR7fLCYO.d.ts} +1 -1
- package/dist/{index-DkB0ouBN.d.mts → index-Dh2ukHnr.d.mts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -0
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.d.mts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +21 -0
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +21 -0
- package/dist/react/index.mjs.map +1 -1
- package/dist/services/index.d.mts +21 -1
- package/dist/services/index.d.ts +21 -1
- package/dist/services/index.js +21 -0
- package/dist/services/index.js.map +1 -1
- package/dist/services/index.mjs +21 -0
- package/dist/services/index.mjs.map +1 -1
- package/dist/wallet/index.d.mts +2 -2
- package/dist/wallet/index.d.ts +2 -2
- package/dist/wallet/index.js +21 -0
- package/dist/wallet/index.js.map +1 -1
- package/dist/wallet/index.mjs +21 -0
- package/dist/wallet/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/{WalletManager-B4Ag188W.d.mts → WalletManager-CGIuecnp.d.mts} +11 -11
- package/dist/{WalletManager-9bC646Ax.d.ts → WalletManager-D1ohlVea.d.ts} +11 -11
package/dist/wallet/index.mjs
CHANGED
|
@@ -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;
|