@sats-connect/core 0.7.0-f22f1e4 → 0.7.1-028f6d1

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
@@ -1,9 +1,146 @@
1
1
  import * as v from 'valibot';
2
2
 
3
+ declare enum BitcoinNetworkType {
4
+ Mainnet = "Mainnet",
5
+ Testnet = "Testnet",
6
+ Testnet4 = "Testnet4",
7
+ Signet = "Signet",
8
+ Regtest = "Regtest"
9
+ }
10
+ declare enum StacksNetworkType {
11
+ Mainnet = "mainnet",
12
+ Testnet = "testnet"
13
+ }
14
+ declare enum StarknetNetworkType {
15
+ Mainnet = "mainnet",
16
+ Sepolia = "sepolia"
17
+ }
18
+ declare enum SparkNetworkType {
19
+ Mainnet = "mainnet",
20
+ Regtest = "regtest"
21
+ }
22
+ interface BitcoinNetwork {
23
+ type: BitcoinNetworkType;
24
+ address?: string;
25
+ }
26
+ interface RequestPayload {
27
+ network: BitcoinNetwork;
28
+ }
29
+ interface RequestOptions<Payload extends RequestPayload, Response> {
30
+ onFinish: (response: Response) => void;
31
+ onCancel: () => void;
32
+ payload: Payload;
33
+ getProvider?: () => Promise<BitcoinProvider | undefined>;
34
+ }
35
+ declare const RpcIdSchema: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
36
+ type RpcId = v.InferOutput<typeof RpcIdSchema>;
37
+ declare const rpcRequestMessageSchema: v.ObjectSchema<{
38
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
39
+ readonly method: v.StringSchema<undefined>;
40
+ readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, undefined>;
41
+ readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>;
42
+ }, undefined>;
43
+ type RpcRequestMessage = v.InferOutput<typeof rpcRequestMessageSchema>;
44
+ interface RpcBase {
45
+ jsonrpc: '2.0';
46
+ id: RpcId;
47
+ }
48
+ interface RpcRequest<T extends string, U> extends RpcBase {
49
+ method: T;
50
+ params: U;
51
+ }
52
+ interface MethodParamsAndResult<TParams, TResult> {
53
+ params: TParams;
54
+ result: TResult;
55
+ }
56
+ /**
57
+ * @enum {number} RpcErrorCode
58
+ * @description JSON-RPC error codes
59
+ * @see https://www.jsonrpc.org/specification#error_object
60
+ */
61
+ declare enum RpcErrorCode {
62
+ /**
63
+ * Parse error Invalid JSON
64
+ **/
65
+ PARSE_ERROR = -32700,
66
+ /**
67
+ * The JSON sent is not a valid Request object.
68
+ **/
69
+ INVALID_REQUEST = -32600,
70
+ /**
71
+ * The method does not exist/is not available.
72
+ **/
73
+ METHOD_NOT_FOUND = -32601,
74
+ /**
75
+ * Invalid method parameter(s).
76
+ */
77
+ INVALID_PARAMS = -32602,
78
+ /**
79
+ * Internal JSON-RPC error.
80
+ * This is a generic error, used when the server encounters an error in performing the request.
81
+ **/
82
+ INTERNAL_ERROR = -32603,
83
+ /**
84
+ * user rejected/canceled the request
85
+ */
86
+ USER_REJECTION = -32000,
87
+ /**
88
+ * method is not supported for the address provided
89
+ */
90
+ METHOD_NOT_SUPPORTED = -32001,
91
+ /**
92
+ * The client does not have permission to access the requested resource.
93
+ */
94
+ ACCESS_DENIED = -32002
95
+ }
96
+ declare const rpcSuccessResponseMessageSchema: v.ObjectSchema<{
97
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
98
+ readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
99
+ readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
100
+ }, undefined>;
101
+ type RpcSuccessResponseMessage = v.InferOutput<typeof rpcSuccessResponseMessageSchema>;
102
+ declare const rpcErrorResponseMessageSchema: v.ObjectSchema<{
103
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
104
+ readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
105
+ readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
106
+ }, undefined>;
107
+ type RpcErrorResponseMessage = v.InferOutput<typeof rpcErrorResponseMessageSchema>;
108
+ declare const rpcResponseMessageSchema: v.UnionSchema<[v.ObjectSchema<{
109
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
110
+ readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
111
+ readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
112
+ }, undefined>, v.ObjectSchema<{
113
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
114
+ readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
115
+ readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
116
+ }, undefined>], undefined>;
117
+ type RpcResponseMessage = v.InferOutput<typeof rpcResponseMessageSchema>;
118
+ interface RpcError {
119
+ code: number | RpcErrorCode;
120
+ message: string;
121
+ data?: any;
122
+ }
123
+ interface RpcErrorResponse<TError extends RpcError = RpcError> extends RpcBase {
124
+ error: TError;
125
+ }
126
+ interface RpcSuccessResponse<Method extends keyof Requests> extends RpcBase {
127
+ result: Return<Method>;
128
+ }
129
+ type RpcResponse<Method extends keyof Requests> = RpcSuccessResponse<Method> | RpcErrorResponse;
130
+ type RpcResult<Method extends keyof Requests> = {
131
+ result: RpcSuccessResponse<Method>['result'];
132
+ status: 'success';
133
+ } | {
134
+ error: RpcErrorResponse['error'];
135
+ status: 'error';
136
+ };
137
+
3
138
  declare enum AddressPurpose {
4
139
  Ordinals = "ordinals",
5
140
  Payment = "payment",
6
- Stacks = "stacks"
141
+ Stacks = "stacks",
142
+ Starknet = "starknet",
143
+ Spark = "spark"
7
144
  }
8
145
  interface GetAddressPayload extends RequestPayload {
9
146
  purposes: AddressPurpose[];
@@ -15,7 +152,9 @@ declare enum AddressType {
15
152
  p2wpkh = "p2wpkh",
16
153
  p2wsh = "p2wsh",
17
154
  p2tr = "p2tr",
18
- stacks = "stacks"
155
+ stacks = "stacks",
156
+ starknet = "starknet",
157
+ spark = "spark"
19
158
  }
20
159
  declare const addressSchema: v.ObjectSchema<{
21
160
  readonly address: v.StringSchema<undefined>;
@@ -101,12 +240,12 @@ interface InputToSign {
101
240
  }
102
241
  type PsbtPayload = {
103
242
  psbtBase64: string;
104
- inputsToSign: InputToSign[];
243
+ inputsToSign?: InputToSign[];
105
244
  broadcast?: boolean;
106
245
  };
107
246
  type SignMultiplePsbtPayload = {
108
247
  psbtBase64: string;
109
- inputsToSign: InputToSign[];
248
+ inputsToSign?: InputToSign[];
110
249
  };
111
250
  interface SignTransactionPayload extends RequestPayload, PsbtPayload {
112
251
  message: string;
@@ -192,9 +331,20 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
192
331
  readonly type: v.LiteralSchema<"disconnect", undefined>;
193
332
  }, undefined>], undefined>;
194
333
  type WalletEvent = v.InferOutput<typeof walletEventSchema>;
195
- type AddListener = <const WalletEventName extends WalletEvent['type']>(eventName: WalletEventName, cb: (event: Extract<WalletEvent, {
196
- type: WalletEventName;
197
- }>) => void) => () => void;
334
+ type AccountChangeCallback = (e: AccountChangeEvent) => void;
335
+ type DisconnectCallback = (e: DisconnectEvent) => void;
336
+ type NetworkChangeCallback = (e: NetworkChangeEvent) => void;
337
+ type ListenerInfo = {
338
+ eventName: typeof accountChangeEventName;
339
+ cb: AccountChangeCallback;
340
+ } | {
341
+ eventName: typeof disconnectEventName;
342
+ cb: DisconnectCallback;
343
+ } | {
344
+ eventName: typeof networkChangeEventName;
345
+ cb: NetworkChangeCallback;
346
+ };
347
+ type AddListener = (arg: ListenerInfo) => () => void;
198
348
  interface BaseBitcoinProvider {
199
349
  request: <Method extends keyof Requests>(method: Method, options: Params<Method>, providerId?: string) => Promise<RpcResponse<Method>>;
200
350
  connect: (request: string) => Promise<GetAddressResponse>;
@@ -244,137 +394,6 @@ declare function getDefaultProvider(): string | null;
244
394
  declare function removeDefaultProvider(): void;
245
395
  declare function getSupportedWallets(): SupportedWallet[];
246
396
 
247
- declare enum BitcoinNetworkType {
248
- Mainnet = "Mainnet",
249
- Testnet = "Testnet",
250
- Testnet4 = "Testnet4",
251
- Signet = "Signet",
252
- Regtest = "Regtest"
253
- }
254
- declare enum StacksNetworkType {
255
- Mainnet = "mainnet",
256
- Testnet = "testnet"
257
- }
258
- declare enum StarknetNetworkType {
259
- Mainnet = "mainnet",
260
- Sepolia = "sepolia"
261
- }
262
- interface BitcoinNetwork {
263
- type: BitcoinNetworkType;
264
- address?: string;
265
- }
266
- interface RequestPayload {
267
- network: BitcoinNetwork;
268
- }
269
- interface RequestOptions<Payload extends RequestPayload, Response> {
270
- onFinish: (response: Response) => void;
271
- onCancel: () => void;
272
- payload: Payload;
273
- getProvider?: () => Promise<BitcoinProvider | undefined>;
274
- }
275
- declare const RpcIdSchema: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
276
- type RpcId = v.InferOutput<typeof RpcIdSchema>;
277
- declare const rpcRequestMessageSchema: v.ObjectSchema<{
278
- readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
279
- readonly method: v.StringSchema<undefined>;
280
- readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, undefined>;
281
- readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>;
282
- }, undefined>;
283
- type RpcRequestMessage = v.InferOutput<typeof rpcRequestMessageSchema>;
284
- interface RpcBase {
285
- jsonrpc: '2.0';
286
- id: RpcId;
287
- }
288
- interface RpcRequest<T extends string, U> extends RpcBase {
289
- method: T;
290
- params: U;
291
- }
292
- interface MethodParamsAndResult<TParams, TResult> {
293
- params: TParams;
294
- result: TResult;
295
- }
296
- /**
297
- * @enum {number} RpcErrorCode
298
- * @description JSON-RPC error codes
299
- * @see https://www.jsonrpc.org/specification#error_object
300
- */
301
- declare enum RpcErrorCode {
302
- /**
303
- * Parse error Invalid JSON
304
- **/
305
- PARSE_ERROR = -32700,
306
- /**
307
- * The JSON sent is not a valid Request object.
308
- **/
309
- INVALID_REQUEST = -32600,
310
- /**
311
- * The method does not exist/is not available.
312
- **/
313
- METHOD_NOT_FOUND = -32601,
314
- /**
315
- * Invalid method parameter(s).
316
- */
317
- INVALID_PARAMS = -32602,
318
- /**
319
- * Internal JSON-RPC error.
320
- * This is a generic error, used when the server encounters an error in performing the request.
321
- **/
322
- INTERNAL_ERROR = -32603,
323
- /**
324
- * user rejected/canceled the request
325
- */
326
- USER_REJECTION = -32000,
327
- /**
328
- * method is not supported for the address provided
329
- */
330
- METHOD_NOT_SUPPORTED = -32001,
331
- /**
332
- * The client does not have permission to access the requested resource.
333
- */
334
- ACCESS_DENIED = -32002
335
- }
336
- declare const rpcSuccessResponseMessageSchema: v.ObjectSchema<{
337
- readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
338
- readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
339
- readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
340
- }, undefined>;
341
- type RpcSuccessResponseMessage = v.InferOutput<typeof rpcSuccessResponseMessageSchema>;
342
- declare const rpcErrorResponseMessageSchema: v.ObjectSchema<{
343
- readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
344
- readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
345
- readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
346
- }, undefined>;
347
- type RpcErrorResponseMessage = v.InferOutput<typeof rpcErrorResponseMessageSchema>;
348
- declare const rpcResponseMessageSchema: v.UnionSchema<[v.ObjectSchema<{
349
- readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
350
- readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
351
- readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
352
- }, undefined>, v.ObjectSchema<{
353
- readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
354
- readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
355
- readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
356
- }, undefined>], undefined>;
357
- type RpcResponseMessage = v.InferOutput<typeof rpcResponseMessageSchema>;
358
- interface RpcError {
359
- code: number | RpcErrorCode;
360
- message: string;
361
- data?: any;
362
- }
363
- interface RpcErrorResponse<TError extends RpcError = RpcError> extends RpcBase {
364
- error: TError;
365
- }
366
- interface RpcSuccessResponse<Method extends keyof Requests> extends RpcBase {
367
- result: Return<Method>;
368
- }
369
- type RpcResponse<Method extends keyof Requests> = RpcSuccessResponse<Method> | RpcErrorResponse;
370
- type RpcResult<Method extends keyof Requests> = {
371
- result: RpcSuccessResponse<Method>['result'];
372
- status: 'success';
373
- } | {
374
- error: RpcErrorResponse['error'];
375
- status: 'error';
376
- };
377
-
378
397
  declare const getInfoMethodName = "getInfo";
379
398
  declare const getInfoParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
380
399
  type GetInfoParams = v.InferOutput<typeof getInfoParamsSchema>;
@@ -421,21 +440,19 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
421
440
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
422
441
  readonly address: v.StringSchema<undefined>;
423
442
  readonly publicKey: v.StringSchema<undefined>;
424
- readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>; /**
425
- * [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
426
- */
443
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
427
444
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
428
445
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
429
446
  }, undefined>, undefined>;
430
447
  readonly network: v.ObjectSchema<{
431
448
  readonly bitcoin: v.ObjectSchema<{
432
- readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>; /**
433
- * The purposes for which to generate addresses. See
434
- * {@linkcode AddressPurpose} for available purposes.
435
- */
449
+ readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
436
450
  }, undefined>;
437
451
  readonly stacks: v.ObjectSchema<{
438
- readonly name: v.StringSchema<undefined>;
452
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
453
+ }, undefined>;
454
+ readonly spark: v.ObjectSchema<{
455
+ readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
439
456
  }, undefined>;
440
457
  }, undefined>;
441
458
  }, undefined>;
@@ -622,9 +639,7 @@ declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
622
639
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
623
640
  readonly address: v.StringSchema<undefined>;
624
641
  readonly publicKey: v.StringSchema<undefined>;
625
- readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>; /**
626
- * [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
627
- */
642
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
628
643
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
629
644
  }, undefined>, undefined>;
630
645
  type GetAccountsResult = v.InferOutput<typeof getAccountsResultSchema>;
@@ -994,6 +1009,164 @@ declare const runesTransferRequestMessageSchema: v.ObjectSchema<{
994
1009
  type RunesTransferRequestMessage = v.InferOutput<typeof runesTransferRequestMessageSchema>;
995
1010
  type RunesTransfer = MethodParamsAndResult<TransferRunesParams, RunesTransferResult>;
996
1011
 
1012
+ declare const sparkGetAddressesMethodName = "spark_getAddresses";
1013
+ declare const sparkGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
1014
+ /**
1015
+ * A message to be displayed to the user in the request prompt.
1016
+ */
1017
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1018
+ }, undefined>, undefined>;
1019
+ type SparkGetAddressesParams = v.InferOutput<typeof sparkGetAddressesParamsSchema>;
1020
+ declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
1021
+ /**
1022
+ * The addresses generated for the given purposes.
1023
+ */
1024
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1025
+ readonly address: v.StringSchema<undefined>;
1026
+ readonly publicKey: v.StringSchema<undefined>;
1027
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1028
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1029
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
1030
+ }, undefined>, undefined>;
1031
+ readonly network: v.ObjectSchema<{
1032
+ readonly bitcoin: v.ObjectSchema<{
1033
+ readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1034
+ }, undefined>;
1035
+ readonly stacks: v.ObjectSchema<{
1036
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1037
+ }, undefined>;
1038
+ readonly spark: v.ObjectSchema<{
1039
+ readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
1040
+ }, undefined>;
1041
+ }, undefined>;
1042
+ }, undefined>;
1043
+ type SparkGetAddressesResult = v.InferOutput<typeof sparkGetAddressesResultSchema>;
1044
+ declare const sparkGetAddressesRequestMessageSchema: v.ObjectSchema<{
1045
+ readonly method: v.LiteralSchema<"spark_getAddresses", undefined>;
1046
+ readonly params: v.NullishSchema<v.ObjectSchema<{
1047
+ /**
1048
+ * A message to be displayed to the user in the request prompt.
1049
+ */
1050
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1051
+ }, undefined>, undefined>;
1052
+ readonly id: v.StringSchema<undefined>;
1053
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1054
+ }, undefined>;
1055
+ type SparkGetAddressesRequestMessage = v.InferOutput<typeof sparkGetAddressesRequestMessageSchema>;
1056
+ type SparkGetAddresses = MethodParamsAndResult<v.InferOutput<typeof sparkGetAddressesParamsSchema>, v.InferOutput<typeof sparkGetAddressesResultSchema>>;
1057
+
1058
+ declare const sparkGetBalanceMethodName = "spark_getBalance";
1059
+ declare const sparkGetBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
1060
+ type SparkGetBalanceParams = v.InferOutput<typeof sparkGetBalanceParamsSchema>;
1061
+ declare const sparkGetBalanceResultSchema: v.ObjectSchema<{
1062
+ /**
1063
+ * The Spark Bitcoin address balance in sats in string form.
1064
+ */
1065
+ readonly balance: v.StringSchema<undefined>;
1066
+ readonly tokenBalances: v.ArraySchema<v.ObjectSchema<{
1067
+ readonly balance: v.StringSchema<undefined>;
1068
+ readonly tokenMetadata: v.ObjectSchema<{
1069
+ readonly tokenIdentifier: v.StringSchema<undefined>;
1070
+ readonly tokenPublicKey: v.StringSchema<undefined>;
1071
+ readonly tokenName: v.StringSchema<undefined>;
1072
+ readonly tokenTicker: v.StringSchema<undefined>;
1073
+ readonly decimals: v.NumberSchema<undefined>;
1074
+ readonly maxSupply: v.StringSchema<undefined>;
1075
+ }, undefined>;
1076
+ }, undefined>, undefined>;
1077
+ }, undefined>;
1078
+ type SparkGetBalanceResult = v.InferOutput<typeof sparkGetBalanceResultSchema>;
1079
+ declare const sparkGetBalanceRequestMessageSchema: v.ObjectSchema<{
1080
+ readonly method: v.LiteralSchema<"spark_getBalance", undefined>;
1081
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
1082
+ readonly id: v.StringSchema<undefined>;
1083
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1084
+ }, undefined>;
1085
+ type SparkGetBalanceRequestMessage = v.InferOutput<typeof sparkGetBalanceRequestMessageSchema>;
1086
+ type SparkGetBalance = MethodParamsAndResult<SparkGetBalanceParams, SparkGetBalanceResult>;
1087
+
1088
+ declare const sparkTransferMethodName = "spark_transfer";
1089
+ declare const sparkTransferParamsSchema: v.ObjectSchema<{
1090
+ /**
1091
+ * Amount of SATS to transfer as a string or number.
1092
+ */
1093
+ readonly amountSats: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1094
+ /**
1095
+ * The recipient's spark address.
1096
+ */
1097
+ readonly receiverSparkAddress: v.StringSchema<undefined>;
1098
+ }, undefined>;
1099
+ type SparkTransferParams = v.InferOutput<typeof sparkTransferParamsSchema>;
1100
+ declare const sparkTransferResultSchema: v.ObjectSchema<{
1101
+ /**
1102
+ * The ID of the transaction.
1103
+ */
1104
+ readonly id: v.StringSchema<undefined>;
1105
+ }, undefined>;
1106
+ type SparkTransferResult = v.InferOutput<typeof sparkTransferResultSchema>;
1107
+ declare const sparkTransferRequestMessageSchema: v.ObjectSchema<{
1108
+ readonly method: v.LiteralSchema<"spark_transfer", undefined>;
1109
+ readonly params: v.ObjectSchema<{
1110
+ /**
1111
+ * Amount of SATS to transfer as a string or number.
1112
+ */
1113
+ readonly amountSats: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1114
+ /**
1115
+ * The recipient's spark address.
1116
+ */
1117
+ readonly receiverSparkAddress: v.StringSchema<undefined>;
1118
+ }, undefined>;
1119
+ readonly id: v.StringSchema<undefined>;
1120
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1121
+ }, undefined>;
1122
+ type SparkTransferRequestMessage = v.InferOutput<typeof sparkTransferRequestMessageSchema>;
1123
+ type SparkTransfer = MethodParamsAndResult<SparkTransferParams, SparkTransferResult>;
1124
+
1125
+ declare const sparkTransferTokenMethodName = "spark_transferToken";
1126
+ declare const sparkTransferTokenParamsSchema: v.ObjectSchema<{
1127
+ /**
1128
+ * Amount of units of the token to transfer as a string or number.
1129
+ */
1130
+ readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1131
+ /**
1132
+ * The token identifier.
1133
+ */
1134
+ readonly tokenIdentifier: v.StringSchema<undefined>;
1135
+ /**
1136
+ * The recipient's spark address.
1137
+ */
1138
+ readonly receiverSparkAddress: v.StringSchema<undefined>;
1139
+ }, undefined>;
1140
+ type SparkTransferTokenParams = v.InferOutput<typeof sparkTransferTokenParamsSchema>;
1141
+ declare const sparkTransferTokenResultSchema: v.ObjectSchema<{
1142
+ /**
1143
+ * The ID of the transaction.
1144
+ */
1145
+ readonly id: v.StringSchema<undefined>;
1146
+ }, undefined>;
1147
+ type SparkTransferTokenResult = v.InferOutput<typeof sparkTransferTokenResultSchema>;
1148
+ declare const sparkTransferTokenRequestMessageSchema: v.ObjectSchema<{
1149
+ readonly method: v.LiteralSchema<"spark_transferToken", undefined>;
1150
+ readonly params: v.ObjectSchema<{
1151
+ /**
1152
+ * Amount of units of the token to transfer as a string or number.
1153
+ */
1154
+ readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1155
+ /**
1156
+ * The token identifier.
1157
+ */
1158
+ readonly tokenIdentifier: v.StringSchema<undefined>;
1159
+ /**
1160
+ * The recipient's spark address.
1161
+ */
1162
+ readonly receiverSparkAddress: v.StringSchema<undefined>;
1163
+ }, undefined>;
1164
+ readonly id: v.StringSchema<undefined>;
1165
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1166
+ }, undefined>;
1167
+ type SparkTransferTokenRequestMessage = v.InferOutput<typeof sparkTransferTokenRequestMessageSchema>;
1168
+ type SparkTransferToken = MethodParamsAndResult<SparkTransferTokenParams, SparkTransferTokenResult>;
1169
+
997
1170
  declare const stxCallContractMethodName = "stx_callContract";
998
1171
  declare const stxCallContractParamsSchema: v.ObjectSchema<{
999
1172
  /**
@@ -1182,7 +1355,10 @@ declare const stxGetAccountsResultSchema: v.ObjectSchema<{
1182
1355
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1183
1356
  }, undefined>;
1184
1357
  readonly stacks: v.ObjectSchema<{
1185
- readonly name: v.StringSchema<undefined>;
1358
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1359
+ }, undefined>;
1360
+ readonly spark: v.ObjectSchema<{
1361
+ readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
1186
1362
  }, undefined>;
1187
1363
  }, undefined>;
1188
1364
  }, undefined>;
@@ -1220,7 +1396,10 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
1220
1396
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1221
1397
  }, undefined>;
1222
1398
  readonly stacks: v.ObjectSchema<{
1223
- readonly name: v.StringSchema<undefined>;
1399
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1400
+ }, undefined>;
1401
+ readonly spark: v.ObjectSchema<{
1402
+ readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
1224
1403
  }, undefined>;
1225
1404
  }, undefined>;
1226
1405
  }, undefined>;
@@ -1424,7 +1603,7 @@ declare const stxTransferStxParamsSchema: v.ObjectSchema<{
1424
1603
  */
1425
1604
  readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1426
1605
  /**
1427
- * The recipeint's principal.
1606
+ * The recipient's principal.
1428
1607
  */
1429
1608
  readonly recipient: v.StringSchema<undefined>;
1430
1609
  /**
@@ -1487,7 +1666,7 @@ declare const stxTransferStxRequestMessageSchema: v.ObjectSchema<{
1487
1666
  */
1488
1667
  readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1489
1668
  /**
1490
- * The recipeint's principal.
1669
+ * The recipient's principal.
1491
1670
  */
1492
1671
  readonly recipient: v.StringSchema<undefined>;
1493
1672
  /**
@@ -1695,7 +1874,10 @@ declare const getNetworkResultSchema: v.ObjectSchema<{
1695
1874
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1696
1875
  }, undefined>;
1697
1876
  readonly stacks: v.ObjectSchema<{
1698
- readonly name: v.StringSchema<undefined>;
1877
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1878
+ }, undefined>;
1879
+ readonly spark: v.ObjectSchema<{
1880
+ readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
1699
1881
  }, undefined>;
1700
1882
  }, undefined>;
1701
1883
  type GetNetworkResult = v.InferOutput<typeof getNetworkResultSchema>;
@@ -1724,6 +1906,23 @@ declare const changeNetworkRequestMessageSchema: v.ObjectSchema<{
1724
1906
  }, undefined>;
1725
1907
  type ChangeNetworkRequestMessage = v.InferOutput<typeof changeNetworkRequestMessageSchema>;
1726
1908
  type ChangeNetwork = MethodParamsAndResult<ChangeNetworkParams, ChangeNetworkResult>;
1909
+ declare const changeNetworkByIdMethodName = "wallet_changeNetworkById";
1910
+ declare const changeNetworkByIdParamsSchema: v.ObjectSchema<{
1911
+ readonly id: v.StringSchema<undefined>;
1912
+ }, undefined>;
1913
+ type ChangeNetworkByIdParams = v.InferOutput<typeof changeNetworkByIdParamsSchema>;
1914
+ declare const changeNetworkByIdResultSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
1915
+ type ChangeNetworkByIdResult = v.InferOutput<typeof changeNetworkByIdResultSchema>;
1916
+ declare const changeNetworkByIdRequestMessageSchema: v.ObjectSchema<{
1917
+ readonly method: v.LiteralSchema<"wallet_changeNetworkById", undefined>;
1918
+ readonly params: v.ObjectSchema<{
1919
+ readonly id: v.StringSchema<undefined>;
1920
+ }, undefined>;
1921
+ readonly id: v.StringSchema<undefined>;
1922
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1923
+ }, undefined>;
1924
+ type ChangeNetworkByIdRequestMessage = v.InferOutput<typeof changeNetworkByIdRequestMessageSchema>;
1925
+ type ChangeNetworkById = MethodParamsAndResult<ChangeNetworkByIdParams, ChangeNetworkByIdResult>;
1727
1926
  declare const getAccountMethodName = "wallet_getAccount";
1728
1927
  declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
1729
1928
  type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
@@ -1742,7 +1941,10 @@ declare const getAccountResultSchema: v.ObjectSchema<{
1742
1941
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1743
1942
  }, undefined>;
1744
1943
  readonly stacks: v.ObjectSchema<{
1745
- readonly name: v.StringSchema<undefined>;
1944
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1945
+ }, undefined>;
1946
+ readonly spark: v.ObjectSchema<{
1947
+ readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
1746
1948
  }, undefined>;
1747
1949
  }, undefined>;
1748
1950
  }, undefined>;
@@ -1790,7 +1992,10 @@ declare const connectResultSchema: v.ObjectSchema<{
1790
1992
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1791
1993
  }, undefined>;
1792
1994
  readonly stacks: v.ObjectSchema<{
1793
- readonly name: v.StringSchema<undefined>;
1995
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1996
+ }, undefined>;
1997
+ readonly spark: v.ObjectSchema<{
1998
+ readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
1794
1999
  }, undefined>;
1795
2000
  }, undefined>;
1796
2001
  }, undefined>;
@@ -1823,54 +2028,62 @@ type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
1823
2028
  declare const addNetworkMethodName = "wallet_addNetwork";
1824
2029
  declare const addNetworkParamsSchema: v.VariantSchema<"chain", [v.ObjectSchema<{
1825
2030
  readonly chain: v.LiteralSchema<"bitcoin", undefined>;
1826
- readonly networkType: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
2031
+ readonly type: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1827
2032
  readonly name: v.StringSchema<undefined>;
1828
2033
  readonly rpcUrl: v.StringSchema<undefined>;
1829
2034
  readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1830
2035
  readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1831
2036
  readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2037
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1832
2038
  }, undefined>, v.ObjectSchema<{
1833
2039
  readonly chain: v.LiteralSchema<"stacks", undefined>;
1834
2040
  readonly name: v.StringSchema<undefined>;
1835
- readonly networkType: v.EnumSchema<typeof StacksNetworkType, undefined>;
2041
+ readonly type: v.EnumSchema<typeof StacksNetworkType, undefined>;
1836
2042
  readonly rpcUrl: v.StringSchema<undefined>;
1837
2043
  readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2044
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1838
2045
  }, undefined>, v.ObjectSchema<{
1839
2046
  readonly chain: v.LiteralSchema<"starknet", undefined>;
1840
2047
  readonly name: v.StringSchema<undefined>;
1841
- readonly networkType: v.EnumSchema<typeof StarknetNetworkType, undefined>;
2048
+ readonly type: v.EnumSchema<typeof StarknetNetworkType, undefined>;
1842
2049
  readonly rpcUrl: v.StringSchema<undefined>;
1843
2050
  readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2051
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1844
2052
  }, undefined>], undefined>;
1845
2053
  type AddNetworkParams = v.InferOutput<typeof addNetworkParamsSchema>;
1846
2054
  declare const addNetworkRequestMessageSchema: v.ObjectSchema<{
1847
2055
  readonly method: v.LiteralSchema<"wallet_addNetwork", undefined>;
1848
2056
  readonly params: v.VariantSchema<"chain", [v.ObjectSchema<{
1849
2057
  readonly chain: v.LiteralSchema<"bitcoin", undefined>;
1850
- readonly networkType: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
2058
+ readonly type: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1851
2059
  readonly name: v.StringSchema<undefined>;
1852
2060
  readonly rpcUrl: v.StringSchema<undefined>;
1853
2061
  readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1854
2062
  readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1855
2063
  readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2064
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1856
2065
  }, undefined>, v.ObjectSchema<{
1857
2066
  readonly chain: v.LiteralSchema<"stacks", undefined>;
1858
2067
  readonly name: v.StringSchema<undefined>;
1859
- readonly networkType: v.EnumSchema<typeof StacksNetworkType, undefined>;
2068
+ readonly type: v.EnumSchema<typeof StacksNetworkType, undefined>;
1860
2069
  readonly rpcUrl: v.StringSchema<undefined>;
1861
2070
  readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2071
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1862
2072
  }, undefined>, v.ObjectSchema<{
1863
2073
  readonly chain: v.LiteralSchema<"starknet", undefined>;
1864
2074
  readonly name: v.StringSchema<undefined>;
1865
- readonly networkType: v.EnumSchema<typeof StarknetNetworkType, undefined>;
2075
+ readonly type: v.EnumSchema<typeof StarknetNetworkType, undefined>;
1866
2076
  readonly rpcUrl: v.StringSchema<undefined>;
1867
2077
  readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2078
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1868
2079
  }, undefined>], undefined>;
1869
2080
  readonly id: v.StringSchema<undefined>;
1870
2081
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1871
2082
  }, undefined>;
1872
2083
  type AddNetworkRequestMessage = v.InferOutput<typeof addNetworkRequestMessageSchema>;
1873
- declare const addNetworkResultSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2084
+ declare const addNetworkResultSchema: v.ObjectSchema<{
2085
+ readonly id: v.StringSchema<undefined>;
2086
+ }, undefined>;
1874
2087
  type AddNetworkResult = v.InferOutput<typeof addNetworkResultSchema>;
1875
2088
  type AddNetwork = MethodParamsAndResult<AddNetworkParams, AddNetworkResult>;
1876
2089
 
@@ -1878,7 +2091,7 @@ declare const walletTypes: readonly ["software", "ledger", "keystone"];
1878
2091
  declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
1879
2092
  type WalletType = v.InferOutput<typeof walletTypeSchema>;
1880
2093
 
1881
- interface StxRequests {
2094
+ type StxRequests = {
1882
2095
  stx_callContract: StxCallContract;
1883
2096
  stx_deployContract: StxDeployContract;
1884
2097
  stx_getAccounts: StxGetAccounts;
@@ -1888,9 +2101,16 @@ interface StxRequests {
1888
2101
  stx_signTransaction: StxSignTransaction;
1889
2102
  stx_transferStx: StxTransferStx;
1890
2103
  stx_signTransactions: StxSignTransactions;
1891
- }
2104
+ };
1892
2105
  type StxRequestMethod = keyof StxRequests;
1893
- interface BtcRequests {
2106
+ type SparkRequests = {
2107
+ [sparkGetAddressesMethodName]: SparkGetAddresses;
2108
+ [sparkGetBalanceMethodName]: SparkGetBalance;
2109
+ [sparkTransferMethodName]: SparkGetBalance;
2110
+ [sparkTransferTokenMethodName]: SparkTransferToken;
2111
+ };
2112
+ type SparkRequestMethod = keyof SparkRequests;
2113
+ type BtcRequests = {
1894
2114
  getInfo: GetInfo;
1895
2115
  getAddresses: GetAddresses;
1896
2116
  getAccounts: GetAccounts;
@@ -1898,9 +2118,9 @@ interface BtcRequests {
1898
2118
  signMessage: SignMessage;
1899
2119
  sendTransfer: SendTransfer;
1900
2120
  signPsbt: SignPsbt;
1901
- }
2121
+ };
1902
2122
  type BtcRequestMethod = keyof BtcRequests;
1903
- interface RunesRequests {
2123
+ type RunesRequests = {
1904
2124
  runes_estimateEtch: RunesEstimateEtch;
1905
2125
  runes_estimateMint: RunesEstimateMint;
1906
2126
  runes_estimateRbfOrder: RunesEstimateRbfOrder;
@@ -1910,16 +2130,17 @@ interface RunesRequests {
1910
2130
  runes_mint: RunesMint;
1911
2131
  runes_rbfOrder: RunesRbfOrder;
1912
2132
  runes_transfer: RunesTransfer;
1913
- }
2133
+ };
1914
2134
  type RunesRequestMethod = keyof RunesRequests;
1915
- interface OrdinalsRequests {
2135
+ type OrdinalsRequests = {
1916
2136
  ord_getInscriptions: GetInscriptions;
1917
2137
  ord_sendInscriptions: SendInscriptions;
1918
- }
2138
+ };
1919
2139
  type OrdinalsRequestMethod = keyof OrdinalsRequests;
1920
- interface WalletRequests {
2140
+ type WalletRequests = {
1921
2141
  wallet_addNetwork: AddNetwork;
1922
2142
  wallet_changeNetwork: ChangeNetwork;
2143
+ wallet_changeNetworkById: ChangeNetworkById;
1923
2144
  wallet_connect: Connect;
1924
2145
  wallet_disconnect: Disconnect;
1925
2146
  wallet_getAccount: GetAccount;
@@ -1928,13 +2149,29 @@ interface WalletRequests {
1928
2149
  wallet_getWalletType: GetWalletType;
1929
2150
  wallet_renouncePermissions: RenouncePermissions;
1930
2151
  wallet_requestPermissions: RequestPermissions;
1931
- }
1932
- type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & OrdinalsRequests;
2152
+ };
2153
+ type Requests = BtcRequests & StxRequests & SparkRequests & RunesRequests & WalletRequests & OrdinalsRequests;
1933
2154
  type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
1934
2155
  type Params<Method> = Method extends keyof Requests ? Requests[Method]['params'] : never;
1935
2156
 
1936
- declare const request: <Method extends keyof BtcRequests | keyof StxRequests | keyof RunesRequests | keyof WalletRequests | keyof OrdinalsRequests>(method: Method, params: Params<Method>, providerId?: string) => Promise<RpcResult<Method>>;
1937
- declare const addListener: (event: Parameters<AddListener>[0], cb: Parameters<AddListener>[1], providerId?: string) => ReturnType<AddListener>;
2157
+ declare const request: <Method extends keyof Requests>(method: Method, params: Params<Method>,
2158
+ /**
2159
+ * The providerId is the object path to the provider in the window object.
2160
+ * E.g., a provider available at `window.Foo.BarProvider` would have a
2161
+ * providerId of `Foo.BarProvider`.
2162
+ */
2163
+ providerId?: string) => Promise<RpcResult<Method>>;
2164
+ /**
2165
+ * Adds an event listener.
2166
+ *
2167
+ * Currently expects 2 arguments, although is also capable of handling legacy
2168
+ * calls with 3 arguments consisting of:
2169
+ *
2170
+ * - event name (string)
2171
+ * - callback (function)
2172
+ * - provider ID (optional string)
2173
+ */
2174
+ declare const addListener: (...rawArgs: unknown[]) => ReturnType<AddListener>;
1938
2175
 
1939
2176
  declare abstract class SatsConnectAdapter {
1940
2177
  abstract readonly id: string;
@@ -1953,11 +2190,11 @@ declare abstract class SatsConnectAdapter {
1953
2190
  declare class BaseAdapter extends SatsConnectAdapter {
1954
2191
  id: string;
1955
2192
  constructor(providerId: string);
1956
- requestInternal: <Method extends keyof BtcRequests | keyof StxRequests | keyof RunesRequests | keyof WalletRequests | keyof OrdinalsRequests>(method: Method, params: Params<Method>) => Promise<RpcResult<Method>>;
2193
+ requestInternal: <Method extends keyof Requests>(method: Method, params: Params<Method>) => Promise<RpcResult<Method>>;
1957
2194
  addListener: AddListener;
1958
2195
  }
1959
2196
 
1960
2197
  declare const DefaultAdaptersInfo: Record<string, Provider>;
1961
2198
  declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
1962
2199
 
1963
- export { type AccountChangeEvent, type AddListener, type AddNetwork, type AddNetworkParams, type AddNetworkRequestMessage, type AddNetworkResult, type Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type Capability, type ChangeNetwork, type ChangeNetworkParams, type ChangeNetworkRequestMessage, type ChangeNetworkResult, type Connect, type ConnectParams, type ConnectRequestMessage, type ConnectResult, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type Disconnect, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type GetAccount, type GetAccountParams, type GetAccountRequestMessage, type GetAccountResult, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetBalanceParams, type GetBalanceRequestMessage, type GetBalanceResult, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetCurrentPermissions, type GetCurrentPermissionsParams, type GetCurrentPermissionsRequestMessage, type GetCurrentPermissionsResult, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetInscriptionsParams, type GetInscriptionsRequestMessage, type GetInscriptionsResult, type GetNetwork, type GetNetworkParams, type GetNetworkRequestMessage, type GetNetworkResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, PermissionRequestParams, type PermissionWithoutClientId, type Provider, type PsbtPayload, type Recipient, type RenouncePermissions, type RenouncePermissionsParams, type RenouncePermissionsRequestMessage, type RenouncePermissionsResult, type RequestOptions, type RequestPayload, type RequestPermissions, type RequestPermissionsParams, type RequestPermissionsRequestMessage, type RequestPermissionsResult, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcErrorResponseMessage, type RpcId, RpcIdSchema, type RpcRequest, type RpcRequestMessage, type RpcResponse, type RpcResponseMessage, type RpcResult, type RpcSuccessResponse, type RpcSuccessResponseMessage, type RunesEstimateEtch, type RunesEstimateEtchParams, type RunesEstimateEtchResult, type RunesEstimateMint, type RunesEstimateRbfOrder, type RunesEtch, type RunesEtchParams, type RunesEtchRequestMessage, type RunesEtchResult, type RunesGetBalance, type RunesGetBalanceParams, type RunesGetBalanceResult, type RunesGetOrder, type RunesMint, type RunesMintParams, type RunesMintRequestMessage, type RunesMintResult, type RunesRbfOrder, type RunesRequestMethod, type RunesRequests, type RunesTransfer, type RunesTransferRequestMessage, type RunesTransferResult, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendInscriptionsParams, type SendInscriptionsRequestMessage, type SendInscriptionsResult, type SendTransfer, type SendTransferParams, type SendTransferRequestMessage, type SendTransferResult, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtRequestMessage, type SignPsbtResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, StacksNetworkType, StarknetNetworkType, type StxCallContract, type StxCallContractParams, type StxCallContractRequestMessage, type StxCallContractResult, type StxDeployContract, type StxDeployContractParams, type StxDeployContractRequestMessage, type StxDeployContractResult, type StxGetAccounts, type StxGetAccountsParams, type StxGetAccountsRequestMessage, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignMessage, type StxSignMessageParams, type StxSignMessageRequestMessage, type StxSignMessageResult, type StxSignStructuredMessage, type StxSignStructuredMessageParams, type StxSignStructuredMessageRequestMessage, type StxSignStructuredMessageResult, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxSignTransactions, type StxSignTransactionsParams, type StxSignTransactionsRequestMessage, type StxSignTransactionsResult, type StxTransferStx, type StxTransferStxParams, type StxTransferStxRequestMessage, type StxTransferStxResult, type SupportedWallet, type TransferRunesParams, type WalletEvent, type WalletRequests, type WalletType, accountActionsSchema, accountChangeEventName, accountChangeSchema, accountPermissionSchema, addListener, addNetworkMethodName, addNetworkParamsSchema, addNetworkRequestMessageSchema, addNetworkResultSchema, addressSchema, changeNetworkMethodName, changeNetworkParamsSchema, changeNetworkRequestMessageSchema, changeNetworkResultSchema, connectMethodName, connectParamsSchema, connectRequestMessageSchema, connectResultSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectMethodName, disconnectParamsSchema, disconnectRequestMessageSchema, disconnectResultSchema, disconnectSchema, getAccountMethodName, getAccountParamsSchema, getAccountRequestMessageSchema, getAccountResultSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getCurrentPermissionsMethodName, getCurrentPermissionsParamsSchema, getCurrentPermissionsRequestMessageSchema, getCurrentPermissionsResultSchema, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsRequestMessageSchema, getInscriptionsResultSchema, getNetworkMethodName, getNetworkParamsSchema, getNetworkRequestMessageSchema, getNetworkResultSchema, getProviderById, getProviderOrThrow, getProviders, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permission, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, type runesEstimateMintParams, type runesEstimateMintResult, runesEtchMethodName, runesEtchParamsSchema, runesEtchRequestMessageSchema, runesEtchResultSchema, runesGetBalanceMethodName, runesGetBalanceParamsSchema, type runesGetBalanceRequestMessage, runesGetBalanceRequestMessageSchema, runesGetBalanceResultSchema, runesMintMethodName, runesMintParamsSchema, runesMintRequestMessageSchema, runesMintResultSchema, runesTransferMethodName, runesTransferParamsSchema, runesTransferRequestMessageSchema, runesTransferResultSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsRequestMessageSchema, sendInscriptionsResultSchema, sendTransferMethodName, sendTransferParamsSchema, sendTransferRequestMessageSchema, sendTransferResultSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signPsbtMethodName, signPsbtParamsSchema, signPsbtRequestMessageSchema, signPsbtResultSchema, signTransaction, stxCallContractMethodName, stxCallContractParamsSchema, stxCallContractRequestMessageSchema, stxCallContractResultSchema, stxDeployContractMethodName, stxDeployContractParamsSchema, stxDeployContractRequestMessageSchema, stxDeployContractResultSchema, stxGetAccountsMethodName, stxGetAccountsParamsSchema, stxGetAccountsRequestMessageSchema, stxGetAccountsResultSchema, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignMessageMethodName, stxSignMessageParamsSchema, stxSignMessageRequestMessageSchema, stxSignMessageResultSchema, stxSignStructuredMessageMethodName, stxSignStructuredMessageParamsSchema, stxSignStructuredMessageRequestMessageSchema, stxSignStructuredMessageResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, stxSignTransactionsMethodName, stxSignTransactionsParamsSchema, stxSignTransactionsRequestMessageSchema, stxSignTransactionsResultSchema, stxTransferStxMethodName, stxTransferStxParamsSchema, stxTransferStxRequestMessageSchema, stxTransferStxResultSchema, walletActionsSchema, walletEventSchema, walletPermissionSchema, walletTypeSchema, walletTypes };
2200
+ export { type AccountChangeCallback, type AccountChangeEvent, type AddListener, type AddNetwork, type AddNetworkParams, type AddNetworkRequestMessage, type AddNetworkResult, type Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type Capability, type ChangeNetwork, type ChangeNetworkById, type ChangeNetworkByIdParams, type ChangeNetworkByIdRequestMessage, type ChangeNetworkByIdResult, type ChangeNetworkParams, type ChangeNetworkRequestMessage, type ChangeNetworkResult, type Connect, type ConnectParams, type ConnectRequestMessage, type ConnectResult, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type Disconnect, type DisconnectCallback, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type GetAccount, type GetAccountParams, type GetAccountRequestMessage, type GetAccountResult, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetBalanceParams, type GetBalanceRequestMessage, type GetBalanceResult, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetCurrentPermissions, type GetCurrentPermissionsParams, type GetCurrentPermissionsRequestMessage, type GetCurrentPermissionsResult, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetInscriptionsParams, type GetInscriptionsRequestMessage, type GetInscriptionsResult, type GetNetwork, type GetNetworkParams, type GetNetworkRequestMessage, type GetNetworkResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, type ListenerInfo, MessageSigningProtocols, type MethodParamsAndResult, type NetworkChangeCallback, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, PermissionRequestParams, type PermissionWithoutClientId, type Provider, type PsbtPayload, type Recipient, type RenouncePermissions, type RenouncePermissionsParams, type RenouncePermissionsRequestMessage, type RenouncePermissionsResult, type RequestOptions, type RequestPayload, type RequestPermissions, type RequestPermissionsParams, type RequestPermissionsRequestMessage, type RequestPermissionsResult, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcErrorResponseMessage, type RpcId, RpcIdSchema, type RpcRequest, type RpcRequestMessage, type RpcResponse, type RpcResponseMessage, type RpcResult, type RpcSuccessResponse, type RpcSuccessResponseMessage, type RunesEstimateEtch, type RunesEstimateEtchParams, type RunesEstimateEtchResult, type RunesEstimateMint, type RunesEstimateRbfOrder, type RunesEtch, type RunesEtchParams, type RunesEtchRequestMessage, type RunesEtchResult, type RunesGetBalance, type RunesGetBalanceParams, type RunesGetBalanceResult, type RunesGetOrder, type RunesMint, type RunesMintParams, type RunesMintRequestMessage, type RunesMintResult, type RunesRbfOrder, type RunesRequestMethod, type RunesRequests, type RunesTransfer, type RunesTransferRequestMessage, type RunesTransferResult, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendInscriptionsParams, type SendInscriptionsRequestMessage, type SendInscriptionsResult, type SendTransfer, type SendTransferParams, type SendTransferRequestMessage, type SendTransferResult, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtRequestMessage, type SignPsbtResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, type SparkGetAddresses, type SparkGetAddressesParams, type SparkGetAddressesRequestMessage, type SparkGetAddressesResult, type SparkGetBalance, type SparkGetBalanceParams, type SparkGetBalanceRequestMessage, type SparkGetBalanceResult, SparkNetworkType, type SparkRequestMethod, type SparkRequests, type SparkTransfer, type SparkTransferParams, type SparkTransferRequestMessage, type SparkTransferResult, type SparkTransferToken, type SparkTransferTokenParams, type SparkTransferTokenRequestMessage, type SparkTransferTokenResult, StacksNetworkType, StarknetNetworkType, type StxCallContract, type StxCallContractParams, type StxCallContractRequestMessage, type StxCallContractResult, type StxDeployContract, type StxDeployContractParams, type StxDeployContractRequestMessage, type StxDeployContractResult, type StxGetAccounts, type StxGetAccountsParams, type StxGetAccountsRequestMessage, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignMessage, type StxSignMessageParams, type StxSignMessageRequestMessage, type StxSignMessageResult, type StxSignStructuredMessage, type StxSignStructuredMessageParams, type StxSignStructuredMessageRequestMessage, type StxSignStructuredMessageResult, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxSignTransactions, type StxSignTransactionsParams, type StxSignTransactionsRequestMessage, type StxSignTransactionsResult, type StxTransferStx, type StxTransferStxParams, type StxTransferStxRequestMessage, type StxTransferStxResult, type SupportedWallet, type TransferRunesParams, type WalletEvent, type WalletRequests, type WalletType, accountActionsSchema, accountChangeEventName, accountChangeSchema, accountPermissionSchema, addListener, addNetworkMethodName, addNetworkParamsSchema, addNetworkRequestMessageSchema, addNetworkResultSchema, addressSchema, changeNetworkByIdMethodName, changeNetworkByIdParamsSchema, changeNetworkByIdRequestMessageSchema, changeNetworkByIdResultSchema, changeNetworkMethodName, changeNetworkParamsSchema, changeNetworkRequestMessageSchema, changeNetworkResultSchema, connectMethodName, connectParamsSchema, connectRequestMessageSchema, connectResultSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectMethodName, disconnectParamsSchema, disconnectRequestMessageSchema, disconnectResultSchema, disconnectSchema, getAccountMethodName, getAccountParamsSchema, getAccountRequestMessageSchema, getAccountResultSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getCurrentPermissionsMethodName, getCurrentPermissionsParamsSchema, getCurrentPermissionsRequestMessageSchema, getCurrentPermissionsResultSchema, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsRequestMessageSchema, getInscriptionsResultSchema, getNetworkMethodName, getNetworkParamsSchema, getNetworkRequestMessageSchema, getNetworkResultSchema, getProviderById, getProviderOrThrow, getProviders, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permission, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, type runesEstimateMintParams, type runesEstimateMintResult, runesEtchMethodName, runesEtchParamsSchema, runesEtchRequestMessageSchema, runesEtchResultSchema, runesGetBalanceMethodName, runesGetBalanceParamsSchema, type runesGetBalanceRequestMessage, runesGetBalanceRequestMessageSchema, runesGetBalanceResultSchema, runesMintMethodName, runesMintParamsSchema, runesMintRequestMessageSchema, runesMintResultSchema, runesTransferMethodName, runesTransferParamsSchema, runesTransferRequestMessageSchema, runesTransferResultSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsRequestMessageSchema, sendInscriptionsResultSchema, sendTransferMethodName, sendTransferParamsSchema, sendTransferRequestMessageSchema, sendTransferResultSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signPsbtMethodName, signPsbtParamsSchema, signPsbtRequestMessageSchema, signPsbtResultSchema, signTransaction, sparkGetAddressesMethodName, sparkGetAddressesParamsSchema, sparkGetAddressesRequestMessageSchema, sparkGetAddressesResultSchema, sparkGetBalanceMethodName, sparkGetBalanceParamsSchema, sparkGetBalanceRequestMessageSchema, sparkGetBalanceResultSchema, sparkTransferMethodName, sparkTransferParamsSchema, sparkTransferRequestMessageSchema, sparkTransferResultSchema, sparkTransferTokenMethodName, sparkTransferTokenParamsSchema, sparkTransferTokenRequestMessageSchema, sparkTransferTokenResultSchema, stxCallContractMethodName, stxCallContractParamsSchema, stxCallContractRequestMessageSchema, stxCallContractResultSchema, stxDeployContractMethodName, stxDeployContractParamsSchema, stxDeployContractRequestMessageSchema, stxDeployContractResultSchema, stxGetAccountsMethodName, stxGetAccountsParamsSchema, stxGetAccountsRequestMessageSchema, stxGetAccountsResultSchema, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignMessageMethodName, stxSignMessageParamsSchema, stxSignMessageRequestMessageSchema, stxSignMessageResultSchema, stxSignStructuredMessageMethodName, stxSignStructuredMessageParamsSchema, stxSignStructuredMessageRequestMessageSchema, stxSignStructuredMessageResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, stxSignTransactionsMethodName, stxSignTransactionsParamsSchema, stxSignTransactionsRequestMessageSchema, stxSignTransactionsResultSchema, stxTransferStxMethodName, stxTransferStxParamsSchema, stxTransferStxRequestMessageSchema, stxTransferStxResultSchema, walletActionsSchema, walletEventSchema, walletPermissionSchema, walletTypeSchema, walletTypes };