@sats-connect/core 0.0.3-8ca018a → 0.0.3-aae39fb

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.d.mts CHANGED
@@ -381,6 +381,80 @@ type GetAccountsParams = {
381
381
  type GetAccountResult = Address$1[];
382
382
  type GetAccounts = MethodParamsAndResult<GetAccountsParams, GetAccountResult>;
383
383
 
384
+ type CreateMintOrderRequest = {
385
+ runeName: string;
386
+ repeats: number;
387
+ refundAddress: string;
388
+ destinationAddress: string;
389
+ feeRate: number;
390
+ appServiceFee?: number;
391
+ appServiceFeeAddress?: string;
392
+ };
393
+ type EstimateMintOrderRequest = Omit<CreateMintOrderRequest, 'refundAddress'>;
394
+ type EstimateOrderResponse = {
395
+ totalSize: number;
396
+ totalCost: number;
397
+ costBreakdown: {
398
+ postage: number;
399
+ networkFee: number;
400
+ serviceFee: number;
401
+ appServiceFee: number;
402
+ };
403
+ };
404
+ type CreateEtchOrderRequest = {
405
+ runeName: string;
406
+ divisibility?: number;
407
+ symbol?: string;
408
+ premine?: string;
409
+ isMintable: boolean;
410
+ terms?: {
411
+ amount?: string;
412
+ cap?: string;
413
+ heightStart?: string;
414
+ heightEnd?: string;
415
+ offsetStart?: string;
416
+ offsetEnd?: string;
417
+ };
418
+ inscriptionDetails?: {
419
+ contentType: string;
420
+ contentBase64: string;
421
+ };
422
+ delegateInscriptionId?: string;
423
+ destinationAddress: string;
424
+ refundAddress: string;
425
+ feeRate: number;
426
+ appServiceFee?: number;
427
+ appServiceFeeAddress?: string;
428
+ };
429
+ type EstimateEtchOrderRequest = Omit<CreateEtchOrderRequest, 'refundAddress'>;
430
+
431
+ interface EstimateRunesMintParams extends EstimateMintOrderRequest {
432
+ network?: BitcoinNetworkType;
433
+ }
434
+ type EstimateRunesMintResult = EstimateOrderResponse;
435
+ type EstimateRunesMint = MethodParamsAndResult<EstimateRunesMintParams, EstimateRunesMintResult>;
436
+ interface MintRunesParams extends CreateMintOrderRequest {
437
+ network?: BitcoinNetworkType;
438
+ }
439
+ type MintRunesResult = {
440
+ orderId: string;
441
+ fundTransactionId: string;
442
+ };
443
+ type MintRunes = MethodParamsAndResult<MintRunesParams, MintRunesResult>;
444
+ interface EstimateRunesEtchParams extends EstimateEtchOrderRequest {
445
+ network?: BitcoinNetworkType;
446
+ }
447
+ type EstimateRunesEtchResult = EstimateOrderResponse;
448
+ type EstimateRunesEtch = MethodParamsAndResult<EstimateRunesEtchParams, EstimateRunesEtchResult>;
449
+ interface EtchRunesParams extends CreateEtchOrderRequest {
450
+ network?: BitcoinNetworkType;
451
+ }
452
+ type EtchRunesResult = {
453
+ orderId: string;
454
+ fundTransactionId: string;
455
+ };
456
+ type EtchRunes = MethodParamsAndResult<EtchRunesParams, EtchRunesResult>;
457
+
384
458
  interface Pubkey {
385
459
  /**
386
460
  * When sending a transfer STX request to a wallet, users can generally
@@ -581,21 +655,33 @@ interface BtcRequests {
581
655
  signPsbt: SignPsbt;
582
656
  }
583
657
  type BtcRequestMethod = keyof BtcRequests;
584
- type Requests = BtcRequests & StxRequests;
658
+ interface RunesRequests {
659
+ runes_estimateMint: EstimateRunesMint;
660
+ runes_mint: MintRunes;
661
+ runes_estimateEtch: EstimateRunesEtch;
662
+ runes_etch: EtchRunes;
663
+ }
664
+ type RunesRequestMethod = keyof RunesRequests;
665
+ type Requests = BtcRequests & StxRequests & RunesRequests;
585
666
  type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
586
667
  type Params<Method> = Method extends keyof Requests ? Requests[Method]['params'] : never;
587
668
 
588
- declare const request: <Method extends keyof BtcRequests | keyof StxRequests>(method: Method, params: Params<Method>, providerId?: string) => Promise<RpcResult<Method>>;
669
+ declare const request: <Method extends keyof BtcRequests | keyof StxRequests | keyof RunesRequests>(method: Method, params: Params<Method>, providerId?: string) => Promise<RpcResult<Method>>;
589
670
 
590
671
  declare abstract class SatsConnectAdapter {
591
672
  abstract readonly id: string;
592
- abstract request<Method extends keyof Requests>(method: Method, params: Params<Method>): Promise<RpcResult<Method> | undefined>;
673
+ private mintRunes;
674
+ private etchRunes;
675
+ private estimateMint;
676
+ private estimateEtch;
677
+ request<Method extends keyof Requests>(method: Method, params: Params<Method>): Promise<RpcResult<Method> | undefined>;
678
+ protected abstract requestInternal<Method extends keyof Requests>(method: Method, params: Params<Method>): Promise<RpcResult<Method> | undefined>;
593
679
  }
594
680
 
595
681
  declare class BaseAdapter extends SatsConnectAdapter {
596
682
  id: string;
597
683
  constructor(providerId: string);
598
- request: <Method extends keyof BtcRequests | keyof StxRequests>(method: Method, params: Params<Method>) => Promise<RpcResult<Method> | undefined>;
684
+ requestInternal: <Method extends keyof BtcRequests | keyof StxRequests | keyof RunesRequests>(method: Method, params: Params<Method>) => Promise<RpcResult<Method> | undefined>;
599
685
  }
600
686
 
601
687
  declare const DefaultAdaptersInfo: Record<string, Provider>;
@@ -606,4 +692,4 @@ interface Config {
606
692
  }
607
693
  declare function createDefaultConfig(providers: SupportedWallet[]): Config;
608
694
 
609
- export { type Address$1 as Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type CallContractParams, type CallContractResult, type Capability, type Config, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type DeployContractParams, type DeployContractResult, type GetAccountResult, type GetAccounts, type GetAccountsParams, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesResult, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetInfo, type InputToSign, type MethodParamsAndResult, type Params, type Provider, type PsbtPayload, type Recipient$2 as Recipient, type RequestOptions, type RequestPayload, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcId, type RpcRequest, type RpcResponse, type RpcResult, type RpcSuccessResponse, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendTransfer, type SendTransferParams, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageResponse, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtResult, type SignStructuredMessageResult, type SignStxMessageParams, type SignStxMessageResult, type SignTransactionOptions, type SignTransactionParams, type SignTransactionPayload, type SignTransactionResponse, type SignTransactionResult, type StxCallContract, type StxDeployContract, type StxGetAccounts, type StxGetAddresses, type StxRequestMethod, type StxRequests, type StxSignStructuredMessage, type StxSignStxMessage, type StxSignTransaction, type StxTransferStx, type SupportedWallet, type TransferStxParams, type TransferStxResult, createDefaultConfig, createInscription, createRepeatInscriptions, defaultAdapters, getAddress, getCapabilities, getDefaultProvider, getProviderById, getProviderOrThrow, getProviders, getSupportedWallets, isProviderInstalled, removeDefaultProvider, request, sendBtcTransaction, setDefaultProvider, signMessage, signMultipleTransactions, signTransaction };
695
+ export { type Address$1 as Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type CallContractParams, type CallContractResult, type Capability, type Config, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type DeployContractParams, type DeployContractResult, type GetAccountResult, type GetAccounts, type GetAccountsParams, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesResult, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetInfo, type InputToSign, type MethodParamsAndResult, type Params, type Provider, type PsbtPayload, type Recipient$2 as Recipient, type RequestOptions, type RequestPayload, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcId, type RpcRequest, type RpcResponse, type RpcResult, type RpcSuccessResponse, type RunesRequestMethod, type RunesRequests, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendTransfer, type SendTransferParams, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageResponse, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtResult, type SignStructuredMessageResult, type SignStxMessageParams, type SignStxMessageResult, type SignTransactionOptions, type SignTransactionParams, type SignTransactionPayload, type SignTransactionResponse, type SignTransactionResult, type StxCallContract, type StxDeployContract, type StxGetAccounts, type StxGetAddresses, type StxRequestMethod, type StxRequests, type StxSignStructuredMessage, type StxSignStxMessage, type StxSignTransaction, type StxTransferStx, type SupportedWallet, type TransferStxParams, type TransferStxResult, createDefaultConfig, createInscription, createRepeatInscriptions, defaultAdapters, getAddress, getCapabilities, getDefaultProvider, getProviderById, getProviderOrThrow, getProviders, getSupportedWallets, isProviderInstalled, removeDefaultProvider, request, sendBtcTransaction, setDefaultProvider, signMessage, signMultipleTransactions, signTransaction };
package/dist/index.mjs CHANGED
@@ -1,5 +1,295 @@
1
+ // src/types.ts
2
+ var BitcoinNetworkType = /* @__PURE__ */ ((BitcoinNetworkType2) => {
3
+ BitcoinNetworkType2["Mainnet"] = "Mainnet";
4
+ BitcoinNetworkType2["Testnet"] = "Testnet";
5
+ return BitcoinNetworkType2;
6
+ })(BitcoinNetworkType || {});
7
+ var RpcErrorCode = /* @__PURE__ */ ((RpcErrorCode3) => {
8
+ RpcErrorCode3[RpcErrorCode3["PARSE_ERROR"] = -32700] = "PARSE_ERROR";
9
+ RpcErrorCode3[RpcErrorCode3["INVALID_REQUEST"] = -32600] = "INVALID_REQUEST";
10
+ RpcErrorCode3[RpcErrorCode3["METHOD_NOT_FOUND"] = -32601] = "METHOD_NOT_FOUND";
11
+ RpcErrorCode3[RpcErrorCode3["INVALID_PARAMS"] = -32602] = "INVALID_PARAMS";
12
+ RpcErrorCode3[RpcErrorCode3["INTERNAL_ERROR"] = -32603] = "INTERNAL_ERROR";
13
+ RpcErrorCode3[RpcErrorCode3["USER_REJECTION"] = -32e3] = "USER_REJECTION";
14
+ RpcErrorCode3[RpcErrorCode3["METHOD_NOT_SUPPORTED"] = -32001] = "METHOD_NOT_SUPPORTED";
15
+ return RpcErrorCode3;
16
+ })(RpcErrorCode || {});
17
+
18
+ // src/runes/index.ts
19
+ import axios from "axios";
20
+ var RUNES_API_BASE_URL = (network = "Mainnet" /* Mainnet */) => `https://ordinals${network === "Testnet" /* Testnet */ ? "-testnet" : ""}.xverse.app/v1/runes`;
21
+ var RunesApi = class {
22
+ client;
23
+ constructor(network) {
24
+ this.client = axios.create({
25
+ baseURL: `${RUNES_API_BASE_URL(network)}`
26
+ });
27
+ }
28
+ estimateMintCost = async (mintParams) => {
29
+ try {
30
+ const response = await this.client.post("/mint/estimate", {
31
+ ...mintParams
32
+ });
33
+ return {
34
+ data: response.data
35
+ };
36
+ } catch (error) {
37
+ const err = error;
38
+ return {
39
+ error: {
40
+ code: err.response?.status,
41
+ message: err.response?.data
42
+ }
43
+ };
44
+ }
45
+ };
46
+ estimateEtchCost = async (etchParams) => {
47
+ try {
48
+ const response = await this.client.post("/etch/estimate", {
49
+ ...etchParams
50
+ });
51
+ return {
52
+ data: response.data
53
+ };
54
+ } catch (error) {
55
+ const err = error;
56
+ return {
57
+ error: {
58
+ code: err.response?.status,
59
+ message: err.response?.data
60
+ }
61
+ };
62
+ }
63
+ };
64
+ createMintOrder = async (mintOrderParams) => {
65
+ try {
66
+ const response = await this.client.post("/mint/orders", {
67
+ ...mintOrderParams
68
+ });
69
+ return {
70
+ data: response.data
71
+ };
72
+ } catch (error) {
73
+ const err = error;
74
+ return {
75
+ error: {
76
+ code: err.response?.status,
77
+ message: err.response?.data
78
+ }
79
+ };
80
+ }
81
+ };
82
+ createEtchOrder = async (etchOrderParams) => {
83
+ try {
84
+ const response = await this.client.post("/etch/orders", {
85
+ ...etchOrderParams
86
+ });
87
+ return {
88
+ data: response.data
89
+ };
90
+ } catch (error) {
91
+ const err = error;
92
+ return {
93
+ error: {
94
+ code: err.response?.status,
95
+ message: err.response?.data
96
+ }
97
+ };
98
+ }
99
+ };
100
+ executeMint = async (orderId, fundTransactionId) => {
101
+ try {
102
+ const response = await this.client.post(`/mint/orders/${orderId}/execute`, {
103
+ fundTransactionId
104
+ });
105
+ return {
106
+ data: response.data
107
+ };
108
+ } catch (error) {
109
+ const err = error;
110
+ return {
111
+ error: {
112
+ code: err.response?.status,
113
+ message: err.response?.data
114
+ }
115
+ };
116
+ }
117
+ };
118
+ executeEtch = async (orderId, fundTransactionId) => {
119
+ try {
120
+ const response = await this.client.post(`/etch/orders/${orderId}/execute`, {
121
+ fundTransactionId
122
+ });
123
+ return {
124
+ data: response.data
125
+ };
126
+ } catch (error) {
127
+ const err = error;
128
+ return {
129
+ error: {
130
+ code: err.response?.status,
131
+ message: err.response?.data
132
+ }
133
+ };
134
+ }
135
+ };
136
+ };
137
+ var testnetClient = new RunesApi("Testnet" /* Testnet */);
138
+ var mainnetClient = new RunesApi("Mainnet" /* Mainnet */);
139
+ var getRunesApiClient = (network = "Mainnet" /* Mainnet */) => network === "Mainnet" /* Mainnet */ ? mainnetClient : testnetClient;
140
+
1
141
  // src/adapters/satsConnectAdapter.ts
2
142
  var SatsConnectAdapter = class {
143
+ async mintRunes(params) {
144
+ try {
145
+ const orderResponse = await new RunesApi(params.network).createMintOrder(params);
146
+ if (!orderResponse.data) {
147
+ return {
148
+ status: "error",
149
+ error: {
150
+ code: orderResponse.error.code === 400 ? -32600 /* INVALID_REQUEST */ : -32603 /* INTERNAL_ERROR */,
151
+ message: orderResponse.error.message
152
+ }
153
+ };
154
+ }
155
+ const paymentResponse = await this.requestInternal("sendTransfer", {
156
+ recipients: [
157
+ {
158
+ address: orderResponse.data.fundAddress,
159
+ amount: orderResponse.data.fundAmount
160
+ }
161
+ ]
162
+ });
163
+ if (paymentResponse?.status !== "success") {
164
+ return {
165
+ status: "error",
166
+ error: {
167
+ code: -32e3 /* USER_REJECTION */,
168
+ message: "User rejected the payment request"
169
+ }
170
+ };
171
+ }
172
+ await new RunesApi(params.network).executeMint(
173
+ orderResponse.data.orderId,
174
+ paymentResponse.result.txid
175
+ );
176
+ return {
177
+ status: "success",
178
+ result: {
179
+ orderId: orderResponse.data.orderId,
180
+ fundTransactionId: paymentResponse.result.txid
181
+ }
182
+ };
183
+ } catch (error) {
184
+ return {
185
+ status: "error",
186
+ error: {
187
+ code: -32603 /* INTERNAL_ERROR */,
188
+ message: error.message
189
+ }
190
+ };
191
+ }
192
+ }
193
+ async etchRunes(params) {
194
+ try {
195
+ const orderResponse = await new RunesApi(params.network).createEtchOrder(params);
196
+ if (!orderResponse.data) {
197
+ return {
198
+ status: "error",
199
+ error: {
200
+ code: orderResponse.error.code === 400 ? -32600 /* INVALID_REQUEST */ : -32603 /* INTERNAL_ERROR */,
201
+ message: orderResponse.error.message
202
+ }
203
+ };
204
+ }
205
+ const paymentResponse = await this.requestInternal("sendTransfer", {
206
+ recipients: [
207
+ {
208
+ address: orderResponse.data.fundAddress,
209
+ amount: orderResponse.data.fundAmount
210
+ }
211
+ ]
212
+ });
213
+ if (paymentResponse?.status !== "success") {
214
+ return {
215
+ status: "error",
216
+ error: {
217
+ code: -32e3 /* USER_REJECTION */,
218
+ message: "User rejected the payment request"
219
+ }
220
+ };
221
+ }
222
+ await new RunesApi(params.network).executeEtch(
223
+ orderResponse.data.orderId,
224
+ paymentResponse.result.txid
225
+ );
226
+ return {
227
+ status: "success",
228
+ result: {
229
+ orderId: orderResponse.data.orderId,
230
+ fundTransactionId: paymentResponse.result.txid
231
+ }
232
+ };
233
+ } catch (error) {
234
+ return {
235
+ status: "error",
236
+ error: {
237
+ code: -32603 /* INTERNAL_ERROR */,
238
+ message: error.message
239
+ }
240
+ };
241
+ }
242
+ }
243
+ async estimateMint(params) {
244
+ const response = await getRunesApiClient(
245
+ params.network
246
+ ).estimateMintCost(params);
247
+ if (response.data) {
248
+ return {
249
+ status: "success",
250
+ result: response.data
251
+ };
252
+ }
253
+ return {
254
+ status: "error",
255
+ error: {
256
+ code: response.error.code === 400 ? -32600 /* INVALID_REQUEST */ : -32603 /* INTERNAL_ERROR */,
257
+ message: response.error.message
258
+ }
259
+ };
260
+ }
261
+ async estimateEtch(params) {
262
+ const response = await getRunesApiClient(
263
+ params.network
264
+ ).estimateEtchCost(params);
265
+ if (response.data) {
266
+ return {
267
+ status: "success",
268
+ result: response.data
269
+ };
270
+ }
271
+ return {
272
+ status: "error",
273
+ error: {
274
+ code: response.error.code === 400 ? -32600 /* INVALID_REQUEST */ : -32603 /* INTERNAL_ERROR */,
275
+ message: response.error.message
276
+ }
277
+ };
278
+ }
279
+ async request(method, params) {
280
+ switch (method) {
281
+ case "runes_mint":
282
+ return this.mintRunes(params);
283
+ case "runes_etch":
284
+ return this.etchRunes(params);
285
+ case "runes_estimateMint":
286
+ return this.estimateMint(params);
287
+ case "runes_estimateEtch":
288
+ return this.estimateEtch(params);
289
+ default:
290
+ return this.requestInternal(method, params);
291
+ }
292
+ }
3
293
  };
4
294
 
5
295
  // src/provider/index.ts
@@ -78,32 +368,13 @@ var isRpcSuccessResponse = (response) => {
78
368
  // src/adapters/xverse.ts
79
369
  var XverseAdapter = class extends SatsConnectAdapter {
80
370
  id = DefaultAdaptersInfo.xverse.id;
81
- request = async (method, params) => {
371
+ requestInternal = async (method, params) => {
82
372
  return request(method, params, this.id);
83
373
  };
84
374
  };
85
375
 
86
376
  // src/adapters/unisat.ts
87
377
  import { Buffer } from "buffer";
88
-
89
- // src/types.ts
90
- var BitcoinNetworkType = /* @__PURE__ */ ((BitcoinNetworkType2) => {
91
- BitcoinNetworkType2["Mainnet"] = "Mainnet";
92
- BitcoinNetworkType2["Testnet"] = "Testnet";
93
- return BitcoinNetworkType2;
94
- })(BitcoinNetworkType || {});
95
- var RpcErrorCode = /* @__PURE__ */ ((RpcErrorCode2) => {
96
- RpcErrorCode2[RpcErrorCode2["PARSE_ERROR"] = -32700] = "PARSE_ERROR";
97
- RpcErrorCode2[RpcErrorCode2["INVALID_REQUEST"] = -32600] = "INVALID_REQUEST";
98
- RpcErrorCode2[RpcErrorCode2["METHOD_NOT_FOUND"] = -32601] = "METHOD_NOT_FOUND";
99
- RpcErrorCode2[RpcErrorCode2["INVALID_PARAMS"] = -32602] = "INVALID_PARAMS";
100
- RpcErrorCode2[RpcErrorCode2["INTERNAL_ERROR"] = -32603] = "INTERNAL_ERROR";
101
- RpcErrorCode2[RpcErrorCode2["USER_REJECTION"] = -32e3] = "USER_REJECTION";
102
- RpcErrorCode2[RpcErrorCode2["METHOD_NOT_SUPPORTED"] = -32001] = "METHOD_NOT_SUPPORTED";
103
- return RpcErrorCode2;
104
- })(RpcErrorCode || {});
105
-
106
- // src/adapters/unisat.ts
107
378
  import { AddressType as AddressType2, getAddressInfo } from "bitcoin-address-validation";
108
379
 
109
380
  // src/addresses/index.ts
@@ -240,7 +511,7 @@ var UnisatAdapter = class extends SatsConnectAdapter {
240
511
  psbt: psbtHex
241
512
  };
242
513
  }
243
- request = async (method, params) => {
514
+ requestInternal = async (method, params) => {
244
515
  try {
245
516
  switch (method) {
246
517
  case "getAccounts": {
@@ -306,7 +577,7 @@ var BaseAdapter = class extends SatsConnectAdapter {
306
577
  super();
307
578
  this.id = providerId;
308
579
  }
309
- request = async (method, params) => {
580
+ requestInternal = async (method, params) => {
310
581
  return request(method, params, this.id);
311
582
  };
312
583
  };
@@ -459,15 +730,6 @@ var signMessage = async (options) => {
459
730
  }
460
731
  };
461
732
 
462
- // src/runes/index.ts
463
- import axios from "axios";
464
- var runesAPI = axios.create({
465
- baseURL: "https://api.xverse.app/v1/runes",
466
- headers: {
467
- "Content-Type": "application/json"
468
- }
469
- });
470
-
471
733
  // src/transactions/sendBtcTransaction.ts
472
734
  import { createUnsecuredToken as createUnsecuredToken6 } from "jsontokens";
473
735
  var serializer = (recipient) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.0.3-8ca018a",
3
+ "version": "0.0.3-aae39fb",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",
@@ -24,7 +24,7 @@
24
24
  ]
25
25
  },
26
26
  "dependencies": {
27
- "axios": "^1.6.8",
27
+ "axios": "1.6.8",
28
28
  "bitcoin-address-validation": "2.2.3",
29
29
  "buffer": "6.0.3",
30
30
  "jsontokens": "4.0.1",