@sats-connect/core 0.0.9-4995067 → 0.0.9-71f9d16
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.mjs +10 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -159,6 +159,16 @@ var getRunesApiClient = (network = "Mainnet" /* Mainnet */) => network === "Main
|
|
|
159
159
|
var SatsConnectAdapter = class {
|
|
160
160
|
async mintRunes(params) {
|
|
161
161
|
try {
|
|
162
|
+
const walletInfo = await this.requestInternal("getInfo", null).catch(() => null);
|
|
163
|
+
if (walletInfo && walletInfo.status === "success") {
|
|
164
|
+
const isMintSupported = walletInfo.result.methods?.includes("runes_mint");
|
|
165
|
+
if (isMintSupported) {
|
|
166
|
+
const response = await this.requestInternal("runes_mint", params);
|
|
167
|
+
if (response) {
|
|
168
|
+
return response;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
162
172
|
const mintRequest = {
|
|
163
173
|
destinationAddress: params.destinationAddress,
|
|
164
174
|
feeRate: params.feeRate,
|