@sats-connect/core 0.7.0-f22f1e4 → 0.7.1-07f514f

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,16 +152,26 @@ 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
  }
159
+ type AddressWithPublicKey = AddressPurpose.Payment | AddressPurpose.Ordinals | AddressPurpose.Stacks;
160
+ type AddressWithoutPublicKey = Exclude<AddressPurpose, AddressWithPublicKey>;
20
161
  declare const addressSchema: v.ObjectSchema<{
21
162
  readonly address: v.StringSchema<undefined>;
22
- readonly publicKey: v.StringSchema<undefined>;
163
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
23
164
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
24
165
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
25
166
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
26
167
  }, undefined>;
27
- type Address = v.InferOutput<typeof addressSchema>;
168
+ type Address = v.InferOutput<typeof addressSchema> & ({
169
+ purpose: AddressWithPublicKey;
170
+ publicKey: string;
171
+ } | {
172
+ purpose: AddressWithoutPublicKey;
173
+ publicKey?: undefined;
174
+ });
28
175
  interface GetAddressResponse {
29
176
  addresses: Address[];
30
177
  }
@@ -101,12 +248,12 @@ interface InputToSign {
101
248
  }
102
249
  type PsbtPayload = {
103
250
  psbtBase64: string;
104
- inputsToSign: InputToSign[];
251
+ inputsToSign?: InputToSign[];
105
252
  broadcast?: boolean;
106
253
  };
107
254
  type SignMultiplePsbtPayload = {
108
255
  psbtBase64: string;
109
- inputsToSign: InputToSign[];
256
+ inputsToSign?: InputToSign[];
110
257
  };
111
258
  interface SignTransactionPayload extends RequestPayload, PsbtPayload {
112
259
  message: string;
@@ -134,7 +281,7 @@ declare const accountChangeSchema: v.ObjectSchema<{
134
281
  readonly type: v.LiteralSchema<"accountChange", undefined>;
135
282
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
136
283
  readonly address: v.StringSchema<undefined>;
137
- readonly publicKey: v.StringSchema<undefined>;
284
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
138
285
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
139
286
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
140
287
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -152,7 +299,7 @@ declare const networkChangeSchema: v.ObjectSchema<{
152
299
  }, undefined>;
153
300
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
154
301
  readonly address: v.StringSchema<undefined>;
155
- readonly publicKey: v.StringSchema<undefined>;
302
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
156
303
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
157
304
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
158
305
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -168,7 +315,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
168
315
  readonly type: v.LiteralSchema<"accountChange", undefined>;
169
316
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
170
317
  readonly address: v.StringSchema<undefined>;
171
- readonly publicKey: v.StringSchema<undefined>;
318
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
172
319
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
173
320
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
174
321
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -183,7 +330,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
183
330
  }, undefined>;
184
331
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
185
332
  readonly address: v.StringSchema<undefined>;
186
- readonly publicKey: v.StringSchema<undefined>;
333
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
187
334
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
188
335
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
189
336
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -192,9 +339,20 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
192
339
  readonly type: v.LiteralSchema<"disconnect", undefined>;
193
340
  }, undefined>], undefined>;
194
341
  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;
342
+ type AccountChangeCallback = (e: AccountChangeEvent) => void;
343
+ type DisconnectCallback = (e: DisconnectEvent) => void;
344
+ type NetworkChangeCallback = (e: NetworkChangeEvent) => void;
345
+ type ListenerInfo = {
346
+ eventName: typeof accountChangeEventName;
347
+ cb: AccountChangeCallback;
348
+ } | {
349
+ eventName: typeof disconnectEventName;
350
+ cb: DisconnectCallback;
351
+ } | {
352
+ eventName: typeof networkChangeEventName;
353
+ cb: NetworkChangeCallback;
354
+ };
355
+ type AddListener = (arg: ListenerInfo) => () => void;
198
356
  interface BaseBitcoinProvider {
199
357
  request: <Method extends keyof Requests>(method: Method, options: Params<Method>, providerId?: string) => Promise<RpcResponse<Method>>;
200
358
  connect: (request: string) => Promise<GetAddressResponse>;
@@ -244,137 +402,6 @@ declare function getDefaultProvider(): string | null;
244
402
  declare function removeDefaultProvider(): void;
245
403
  declare function getSupportedWallets(): SupportedWallet[];
246
404
 
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
405
  declare const getInfoMethodName = "getInfo";
379
406
  declare const getInfoParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
380
407
  type GetInfoParams = v.InferOutput<typeof getInfoParamsSchema>;
@@ -420,22 +447,20 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
420
447
  */
421
448
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
422
449
  readonly address: v.StringSchema<undefined>;
423
- 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
- */
450
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
451
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
427
452
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
428
453
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
429
454
  }, undefined>, undefined>;
430
455
  readonly network: v.ObjectSchema<{
431
456
  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
- */
457
+ readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
436
458
  }, undefined>;
437
459
  readonly stacks: v.ObjectSchema<{
438
- readonly name: v.StringSchema<undefined>;
460
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
461
+ }, undefined>;
462
+ readonly spark: v.ObjectSchema<{
463
+ readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
439
464
  }, undefined>;
440
465
  }, undefined>;
441
466
  }, undefined>;
@@ -621,10 +646,8 @@ type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
621
646
  declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
622
647
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
623
648
  readonly address: v.StringSchema<undefined>;
624
- 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
- */
649
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
650
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
628
651
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
629
652
  }, undefined>, undefined>;
630
653
  type GetAccountsResult = v.InferOutput<typeof getAccountsResultSchema>;
@@ -994,6 +1017,164 @@ declare const runesTransferRequestMessageSchema: v.ObjectSchema<{
994
1017
  type RunesTransferRequestMessage = v.InferOutput<typeof runesTransferRequestMessageSchema>;
995
1018
  type RunesTransfer = MethodParamsAndResult<TransferRunesParams, RunesTransferResult>;
996
1019
 
1020
+ declare const sparkGetAddressesMethodName = "spark_getAddresses";
1021
+ declare const sparkGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
1022
+ /**
1023
+ * A message to be displayed to the user in the request prompt.
1024
+ */
1025
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1026
+ }, undefined>, undefined>;
1027
+ type SparkGetAddressesParams = v.InferOutput<typeof sparkGetAddressesParamsSchema>;
1028
+ declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
1029
+ /**
1030
+ * The addresses generated for the given purposes.
1031
+ */
1032
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1033
+ readonly address: v.StringSchema<undefined>;
1034
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1035
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1036
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1037
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
1038
+ }, undefined>, undefined>;
1039
+ readonly network: v.ObjectSchema<{
1040
+ readonly bitcoin: v.ObjectSchema<{
1041
+ readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1042
+ }, undefined>;
1043
+ readonly stacks: v.ObjectSchema<{
1044
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1045
+ }, undefined>;
1046
+ readonly spark: v.ObjectSchema<{
1047
+ readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
1048
+ }, undefined>;
1049
+ }, undefined>;
1050
+ }, undefined>;
1051
+ type SparkGetAddressesResult = v.InferOutput<typeof sparkGetAddressesResultSchema>;
1052
+ declare const sparkGetAddressesRequestMessageSchema: v.ObjectSchema<{
1053
+ readonly method: v.LiteralSchema<"spark_getAddresses", undefined>;
1054
+ readonly params: v.NullishSchema<v.ObjectSchema<{
1055
+ /**
1056
+ * A message to be displayed to the user in the request prompt.
1057
+ */
1058
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1059
+ }, undefined>, undefined>;
1060
+ readonly id: v.StringSchema<undefined>;
1061
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1062
+ }, undefined>;
1063
+ type SparkGetAddressesRequestMessage = v.InferOutput<typeof sparkGetAddressesRequestMessageSchema>;
1064
+ type SparkGetAddresses = MethodParamsAndResult<v.InferOutput<typeof sparkGetAddressesParamsSchema>, v.InferOutput<typeof sparkGetAddressesResultSchema>>;
1065
+
1066
+ declare const sparkGetBalanceMethodName = "spark_getBalance";
1067
+ declare const sparkGetBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
1068
+ type SparkGetBalanceParams = v.InferOutput<typeof sparkGetBalanceParamsSchema>;
1069
+ declare const sparkGetBalanceResultSchema: v.ObjectSchema<{
1070
+ /**
1071
+ * The Spark Bitcoin address balance in sats in string form.
1072
+ */
1073
+ readonly balance: v.StringSchema<undefined>;
1074
+ readonly tokenBalances: v.ArraySchema<v.ObjectSchema<{
1075
+ readonly balance: v.StringSchema<undefined>;
1076
+ readonly tokenMetadata: v.ObjectSchema<{
1077
+ readonly tokenIdentifier: v.StringSchema<undefined>;
1078
+ readonly tokenPublicKey: v.StringSchema<undefined>;
1079
+ readonly tokenName: v.StringSchema<undefined>;
1080
+ readonly tokenTicker: v.StringSchema<undefined>;
1081
+ readonly decimals: v.NumberSchema<undefined>;
1082
+ readonly maxSupply: v.StringSchema<undefined>;
1083
+ }, undefined>;
1084
+ }, undefined>, undefined>;
1085
+ }, undefined>;
1086
+ type SparkGetBalanceResult = v.InferOutput<typeof sparkGetBalanceResultSchema>;
1087
+ declare const sparkGetBalanceRequestMessageSchema: v.ObjectSchema<{
1088
+ readonly method: v.LiteralSchema<"spark_getBalance", undefined>;
1089
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
1090
+ readonly id: v.StringSchema<undefined>;
1091
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1092
+ }, undefined>;
1093
+ type SparkGetBalanceRequestMessage = v.InferOutput<typeof sparkGetBalanceRequestMessageSchema>;
1094
+ type SparkGetBalance = MethodParamsAndResult<SparkGetBalanceParams, SparkGetBalanceResult>;
1095
+
1096
+ declare const sparkTransferMethodName = "spark_transfer";
1097
+ declare const sparkTransferParamsSchema: v.ObjectSchema<{
1098
+ /**
1099
+ * Amount of SATS to transfer as a string or number.
1100
+ */
1101
+ readonly amountSats: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1102
+ /**
1103
+ * The recipient's spark address.
1104
+ */
1105
+ readonly receiverSparkAddress: v.StringSchema<undefined>;
1106
+ }, undefined>;
1107
+ type SparkTransferParams = v.InferOutput<typeof sparkTransferParamsSchema>;
1108
+ declare const sparkTransferResultSchema: v.ObjectSchema<{
1109
+ /**
1110
+ * The ID of the transaction.
1111
+ */
1112
+ readonly id: v.StringSchema<undefined>;
1113
+ }, undefined>;
1114
+ type SparkTransferResult = v.InferOutput<typeof sparkTransferResultSchema>;
1115
+ declare const sparkTransferRequestMessageSchema: v.ObjectSchema<{
1116
+ readonly method: v.LiteralSchema<"spark_transfer", undefined>;
1117
+ readonly params: v.ObjectSchema<{
1118
+ /**
1119
+ * Amount of SATS to transfer as a string or number.
1120
+ */
1121
+ readonly amountSats: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1122
+ /**
1123
+ * The recipient's spark address.
1124
+ */
1125
+ readonly receiverSparkAddress: v.StringSchema<undefined>;
1126
+ }, undefined>;
1127
+ readonly id: v.StringSchema<undefined>;
1128
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1129
+ }, undefined>;
1130
+ type SparkTransferRequestMessage = v.InferOutput<typeof sparkTransferRequestMessageSchema>;
1131
+ type SparkTransfer = MethodParamsAndResult<SparkTransferParams, SparkTransferResult>;
1132
+
1133
+ declare const sparkTransferTokenMethodName = "spark_transferToken";
1134
+ declare const sparkTransferTokenParamsSchema: v.ObjectSchema<{
1135
+ /**
1136
+ * Amount of units of the token to transfer as a string or number.
1137
+ */
1138
+ readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1139
+ /**
1140
+ * The token identifier.
1141
+ */
1142
+ readonly tokenIdentifier: v.StringSchema<undefined>;
1143
+ /**
1144
+ * The recipient's spark address.
1145
+ */
1146
+ readonly receiverSparkAddress: v.StringSchema<undefined>;
1147
+ }, undefined>;
1148
+ type SparkTransferTokenParams = v.InferOutput<typeof sparkTransferTokenParamsSchema>;
1149
+ declare const sparkTransferTokenResultSchema: v.ObjectSchema<{
1150
+ /**
1151
+ * The ID of the transaction.
1152
+ */
1153
+ readonly id: v.StringSchema<undefined>;
1154
+ }, undefined>;
1155
+ type SparkTransferTokenResult = v.InferOutput<typeof sparkTransferTokenResultSchema>;
1156
+ declare const sparkTransferTokenRequestMessageSchema: v.ObjectSchema<{
1157
+ readonly method: v.LiteralSchema<"spark_transferToken", undefined>;
1158
+ readonly params: v.ObjectSchema<{
1159
+ /**
1160
+ * Amount of units of the token to transfer as a string or number.
1161
+ */
1162
+ readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1163
+ /**
1164
+ * The token identifier.
1165
+ */
1166
+ readonly tokenIdentifier: v.StringSchema<undefined>;
1167
+ /**
1168
+ * The recipient's spark address.
1169
+ */
1170
+ readonly receiverSparkAddress: v.StringSchema<undefined>;
1171
+ }, undefined>;
1172
+ readonly id: v.StringSchema<undefined>;
1173
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1174
+ }, undefined>;
1175
+ type SparkTransferTokenRequestMessage = v.InferOutput<typeof sparkTransferTokenRequestMessageSchema>;
1176
+ type SparkTransferToken = MethodParamsAndResult<SparkTransferTokenParams, SparkTransferTokenResult>;
1177
+
997
1178
  declare const stxCallContractMethodName = "stx_callContract";
998
1179
  declare const stxCallContractParamsSchema: v.ObjectSchema<{
999
1180
  /**
@@ -1182,7 +1363,10 @@ declare const stxGetAccountsResultSchema: v.ObjectSchema<{
1182
1363
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1183
1364
  }, undefined>;
1184
1365
  readonly stacks: v.ObjectSchema<{
1185
- readonly name: v.StringSchema<undefined>;
1366
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1367
+ }, undefined>;
1368
+ readonly spark: v.ObjectSchema<{
1369
+ readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
1186
1370
  }, undefined>;
1187
1371
  }, undefined>;
1188
1372
  }, undefined>;
@@ -1210,7 +1394,7 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
1210
1394
  */
1211
1395
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
1212
1396
  readonly address: v.StringSchema<undefined>;
1213
- readonly publicKey: v.StringSchema<undefined>;
1397
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1214
1398
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1215
1399
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1216
1400
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -1220,7 +1404,10 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
1220
1404
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1221
1405
  }, undefined>;
1222
1406
  readonly stacks: v.ObjectSchema<{
1223
- readonly name: v.StringSchema<undefined>;
1407
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1408
+ }, undefined>;
1409
+ readonly spark: v.ObjectSchema<{
1410
+ readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
1224
1411
  }, undefined>;
1225
1412
  }, undefined>;
1226
1413
  }, undefined>;
@@ -1424,7 +1611,7 @@ declare const stxTransferStxParamsSchema: v.ObjectSchema<{
1424
1611
  */
1425
1612
  readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1426
1613
  /**
1427
- * The recipeint's principal.
1614
+ * The recipient's principal.
1428
1615
  */
1429
1616
  readonly recipient: v.StringSchema<undefined>;
1430
1617
  /**
@@ -1487,7 +1674,7 @@ declare const stxTransferStxRequestMessageSchema: v.ObjectSchema<{
1487
1674
  */
1488
1675
  readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1489
1676
  /**
1490
- * The recipeint's principal.
1677
+ * The recipient's principal.
1491
1678
  */
1492
1679
  readonly recipient: v.StringSchema<undefined>;
1493
1680
  /**
@@ -1695,7 +1882,10 @@ declare const getNetworkResultSchema: v.ObjectSchema<{
1695
1882
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1696
1883
  }, undefined>;
1697
1884
  readonly stacks: v.ObjectSchema<{
1698
- readonly name: v.StringSchema<undefined>;
1885
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1886
+ }, undefined>;
1887
+ readonly spark: v.ObjectSchema<{
1888
+ readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
1699
1889
  }, undefined>;
1700
1890
  }, undefined>;
1701
1891
  type GetNetworkResult = v.InferOutput<typeof getNetworkResultSchema>;
@@ -1724,6 +1914,23 @@ declare const changeNetworkRequestMessageSchema: v.ObjectSchema<{
1724
1914
  }, undefined>;
1725
1915
  type ChangeNetworkRequestMessage = v.InferOutput<typeof changeNetworkRequestMessageSchema>;
1726
1916
  type ChangeNetwork = MethodParamsAndResult<ChangeNetworkParams, ChangeNetworkResult>;
1917
+ declare const changeNetworkByIdMethodName = "wallet_changeNetworkById";
1918
+ declare const changeNetworkByIdParamsSchema: v.ObjectSchema<{
1919
+ readonly id: v.StringSchema<undefined>;
1920
+ }, undefined>;
1921
+ type ChangeNetworkByIdParams = v.InferOutput<typeof changeNetworkByIdParamsSchema>;
1922
+ declare const changeNetworkByIdResultSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
1923
+ type ChangeNetworkByIdResult = v.InferOutput<typeof changeNetworkByIdResultSchema>;
1924
+ declare const changeNetworkByIdRequestMessageSchema: v.ObjectSchema<{
1925
+ readonly method: v.LiteralSchema<"wallet_changeNetworkById", undefined>;
1926
+ readonly params: v.ObjectSchema<{
1927
+ readonly id: v.StringSchema<undefined>;
1928
+ }, undefined>;
1929
+ readonly id: v.StringSchema<undefined>;
1930
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1931
+ }, undefined>;
1932
+ type ChangeNetworkByIdRequestMessage = v.InferOutput<typeof changeNetworkByIdRequestMessageSchema>;
1933
+ type ChangeNetworkById = MethodParamsAndResult<ChangeNetworkByIdParams, ChangeNetworkByIdResult>;
1727
1934
  declare const getAccountMethodName = "wallet_getAccount";
1728
1935
  declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
1729
1936
  type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
@@ -1731,7 +1938,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
1731
1938
  readonly id: v.StringSchema<undefined>;
1732
1939
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
1733
1940
  readonly address: v.StringSchema<undefined>;
1734
- readonly publicKey: v.StringSchema<undefined>;
1941
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1735
1942
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1736
1943
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1737
1944
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -1742,7 +1949,10 @@ declare const getAccountResultSchema: v.ObjectSchema<{
1742
1949
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1743
1950
  }, undefined>;
1744
1951
  readonly stacks: v.ObjectSchema<{
1745
- readonly name: v.StringSchema<undefined>;
1952
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1953
+ }, undefined>;
1954
+ readonly spark: v.ObjectSchema<{
1955
+ readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
1746
1956
  }, undefined>;
1747
1957
  }, undefined>;
1748
1958
  }, undefined>;
@@ -1779,7 +1989,7 @@ declare const connectResultSchema: v.ObjectSchema<{
1779
1989
  readonly id: v.StringSchema<undefined>;
1780
1990
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
1781
1991
  readonly address: v.StringSchema<undefined>;
1782
- readonly publicKey: v.StringSchema<undefined>;
1992
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1783
1993
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1784
1994
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1785
1995
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -1790,7 +2000,10 @@ declare const connectResultSchema: v.ObjectSchema<{
1790
2000
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1791
2001
  }, undefined>;
1792
2002
  readonly stacks: v.ObjectSchema<{
1793
- readonly name: v.StringSchema<undefined>;
2003
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
2004
+ }, undefined>;
2005
+ readonly spark: v.ObjectSchema<{
2006
+ readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
1794
2007
  }, undefined>;
1795
2008
  }, undefined>;
1796
2009
  }, undefined>;
@@ -1823,54 +2036,62 @@ type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
1823
2036
  declare const addNetworkMethodName = "wallet_addNetwork";
1824
2037
  declare const addNetworkParamsSchema: v.VariantSchema<"chain", [v.ObjectSchema<{
1825
2038
  readonly chain: v.LiteralSchema<"bitcoin", undefined>;
1826
- readonly networkType: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
2039
+ readonly type: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1827
2040
  readonly name: v.StringSchema<undefined>;
1828
2041
  readonly rpcUrl: v.StringSchema<undefined>;
1829
2042
  readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1830
2043
  readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1831
2044
  readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2045
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1832
2046
  }, undefined>, v.ObjectSchema<{
1833
2047
  readonly chain: v.LiteralSchema<"stacks", undefined>;
1834
2048
  readonly name: v.StringSchema<undefined>;
1835
- readonly networkType: v.EnumSchema<typeof StacksNetworkType, undefined>;
2049
+ readonly type: v.EnumSchema<typeof StacksNetworkType, undefined>;
1836
2050
  readonly rpcUrl: v.StringSchema<undefined>;
1837
2051
  readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2052
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1838
2053
  }, undefined>, v.ObjectSchema<{
1839
2054
  readonly chain: v.LiteralSchema<"starknet", undefined>;
1840
2055
  readonly name: v.StringSchema<undefined>;
1841
- readonly networkType: v.EnumSchema<typeof StarknetNetworkType, undefined>;
2056
+ readonly type: v.EnumSchema<typeof StarknetNetworkType, undefined>;
1842
2057
  readonly rpcUrl: v.StringSchema<undefined>;
1843
2058
  readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2059
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1844
2060
  }, undefined>], undefined>;
1845
2061
  type AddNetworkParams = v.InferOutput<typeof addNetworkParamsSchema>;
1846
2062
  declare const addNetworkRequestMessageSchema: v.ObjectSchema<{
1847
2063
  readonly method: v.LiteralSchema<"wallet_addNetwork", undefined>;
1848
2064
  readonly params: v.VariantSchema<"chain", [v.ObjectSchema<{
1849
2065
  readonly chain: v.LiteralSchema<"bitcoin", undefined>;
1850
- readonly networkType: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
2066
+ readonly type: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1851
2067
  readonly name: v.StringSchema<undefined>;
1852
2068
  readonly rpcUrl: v.StringSchema<undefined>;
1853
2069
  readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1854
2070
  readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1855
2071
  readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2072
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1856
2073
  }, undefined>, v.ObjectSchema<{
1857
2074
  readonly chain: v.LiteralSchema<"stacks", undefined>;
1858
2075
  readonly name: v.StringSchema<undefined>;
1859
- readonly networkType: v.EnumSchema<typeof StacksNetworkType, undefined>;
2076
+ readonly type: v.EnumSchema<typeof StacksNetworkType, undefined>;
1860
2077
  readonly rpcUrl: v.StringSchema<undefined>;
1861
2078
  readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2079
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1862
2080
  }, undefined>, v.ObjectSchema<{
1863
2081
  readonly chain: v.LiteralSchema<"starknet", undefined>;
1864
2082
  readonly name: v.StringSchema<undefined>;
1865
- readonly networkType: v.EnumSchema<typeof StarknetNetworkType, undefined>;
2083
+ readonly type: v.EnumSchema<typeof StarknetNetworkType, undefined>;
1866
2084
  readonly rpcUrl: v.StringSchema<undefined>;
1867
2085
  readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2086
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1868
2087
  }, undefined>], undefined>;
1869
2088
  readonly id: v.StringSchema<undefined>;
1870
2089
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1871
2090
  }, undefined>;
1872
2091
  type AddNetworkRequestMessage = v.InferOutput<typeof addNetworkRequestMessageSchema>;
1873
- declare const addNetworkResultSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2092
+ declare const addNetworkResultSchema: v.ObjectSchema<{
2093
+ readonly id: v.StringSchema<undefined>;
2094
+ }, undefined>;
1874
2095
  type AddNetworkResult = v.InferOutput<typeof addNetworkResultSchema>;
1875
2096
  type AddNetwork = MethodParamsAndResult<AddNetworkParams, AddNetworkResult>;
1876
2097
 
@@ -1878,7 +2099,7 @@ declare const walletTypes: readonly ["software", "ledger", "keystone"];
1878
2099
  declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
1879
2100
  type WalletType = v.InferOutput<typeof walletTypeSchema>;
1880
2101
 
1881
- interface StxRequests {
2102
+ type StxRequests = {
1882
2103
  stx_callContract: StxCallContract;
1883
2104
  stx_deployContract: StxDeployContract;
1884
2105
  stx_getAccounts: StxGetAccounts;
@@ -1888,9 +2109,16 @@ interface StxRequests {
1888
2109
  stx_signTransaction: StxSignTransaction;
1889
2110
  stx_transferStx: StxTransferStx;
1890
2111
  stx_signTransactions: StxSignTransactions;
1891
- }
2112
+ };
1892
2113
  type StxRequestMethod = keyof StxRequests;
1893
- interface BtcRequests {
2114
+ type SparkRequests = {
2115
+ [sparkGetAddressesMethodName]: SparkGetAddresses;
2116
+ [sparkGetBalanceMethodName]: SparkGetBalance;
2117
+ [sparkTransferMethodName]: SparkGetBalance;
2118
+ [sparkTransferTokenMethodName]: SparkTransferToken;
2119
+ };
2120
+ type SparkRequestMethod = keyof SparkRequests;
2121
+ type BtcRequests = {
1894
2122
  getInfo: GetInfo;
1895
2123
  getAddresses: GetAddresses;
1896
2124
  getAccounts: GetAccounts;
@@ -1898,9 +2126,9 @@ interface BtcRequests {
1898
2126
  signMessage: SignMessage;
1899
2127
  sendTransfer: SendTransfer;
1900
2128
  signPsbt: SignPsbt;
1901
- }
2129
+ };
1902
2130
  type BtcRequestMethod = keyof BtcRequests;
1903
- interface RunesRequests {
2131
+ type RunesRequests = {
1904
2132
  runes_estimateEtch: RunesEstimateEtch;
1905
2133
  runes_estimateMint: RunesEstimateMint;
1906
2134
  runes_estimateRbfOrder: RunesEstimateRbfOrder;
@@ -1910,16 +2138,17 @@ interface RunesRequests {
1910
2138
  runes_mint: RunesMint;
1911
2139
  runes_rbfOrder: RunesRbfOrder;
1912
2140
  runes_transfer: RunesTransfer;
1913
- }
2141
+ };
1914
2142
  type RunesRequestMethod = keyof RunesRequests;
1915
- interface OrdinalsRequests {
2143
+ type OrdinalsRequests = {
1916
2144
  ord_getInscriptions: GetInscriptions;
1917
2145
  ord_sendInscriptions: SendInscriptions;
1918
- }
2146
+ };
1919
2147
  type OrdinalsRequestMethod = keyof OrdinalsRequests;
1920
- interface WalletRequests {
2148
+ type WalletRequests = {
1921
2149
  wallet_addNetwork: AddNetwork;
1922
2150
  wallet_changeNetwork: ChangeNetwork;
2151
+ wallet_changeNetworkById: ChangeNetworkById;
1923
2152
  wallet_connect: Connect;
1924
2153
  wallet_disconnect: Disconnect;
1925
2154
  wallet_getAccount: GetAccount;
@@ -1928,13 +2157,29 @@ interface WalletRequests {
1928
2157
  wallet_getWalletType: GetWalletType;
1929
2158
  wallet_renouncePermissions: RenouncePermissions;
1930
2159
  wallet_requestPermissions: RequestPermissions;
1931
- }
1932
- type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & OrdinalsRequests;
2160
+ };
2161
+ type Requests = BtcRequests & StxRequests & SparkRequests & RunesRequests & WalletRequests & OrdinalsRequests;
1933
2162
  type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
1934
2163
  type Params<Method> = Method extends keyof Requests ? Requests[Method]['params'] : never;
1935
2164
 
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>;
2165
+ declare const request: <Method extends keyof Requests>(method: Method, params: Params<Method>,
2166
+ /**
2167
+ * The providerId is the object path to the provider in the window object.
2168
+ * E.g., a provider available at `window.Foo.BarProvider` would have a
2169
+ * providerId of `Foo.BarProvider`.
2170
+ */
2171
+ providerId?: string) => Promise<RpcResult<Method>>;
2172
+ /**
2173
+ * Adds an event listener.
2174
+ *
2175
+ * Currently expects 2 arguments, although is also capable of handling legacy
2176
+ * calls with 3 arguments consisting of:
2177
+ *
2178
+ * - event name (string)
2179
+ * - callback (function)
2180
+ * - provider ID (optional string)
2181
+ */
2182
+ declare const addListener: (...rawArgs: unknown[]) => ReturnType<AddListener>;
1938
2183
 
1939
2184
  declare abstract class SatsConnectAdapter {
1940
2185
  abstract readonly id: string;
@@ -1953,11 +2198,11 @@ declare abstract class SatsConnectAdapter {
1953
2198
  declare class BaseAdapter extends SatsConnectAdapter {
1954
2199
  id: string;
1955
2200
  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>>;
2201
+ requestInternal: <Method extends keyof Requests>(method: Method, params: Params<Method>) => Promise<RpcResult<Method>>;
1957
2202
  addListener: AddListener;
1958
2203
  }
1959
2204
 
1960
2205
  declare const DefaultAdaptersInfo: Record<string, Provider>;
1961
2206
  declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
1962
2207
 
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 };
2208
+ 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 };