@sats-connect/core 0.9.0 → 0.10.0-833738d

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.
@@ -0,0 +1,3915 @@
1
+ import * as v from "valibot";
2
+
3
+ //#region src/types.d.ts
4
+ declare enum BitcoinNetworkType {
5
+ Mainnet = "Mainnet",
6
+ Testnet = "Testnet",
7
+ Testnet4 = "Testnet4",
8
+ Signet = "Signet",
9
+ Regtest = "Regtest",
10
+ }
11
+ declare enum StacksNetworkType {
12
+ Mainnet = "mainnet",
13
+ Testnet = "testnet",
14
+ }
15
+ declare enum StarknetNetworkType {
16
+ Mainnet = "mainnet",
17
+ Sepolia = "sepolia",
18
+ }
19
+ declare enum SparkNetworkType {
20
+ Mainnet = "mainnet",
21
+ Regtest = "regtest",
22
+ }
23
+ interface BitcoinNetwork {
24
+ type: BitcoinNetworkType;
25
+ address?: string;
26
+ }
27
+ interface RequestPayload {
28
+ network: BitcoinNetwork;
29
+ }
30
+ interface RequestOptions<Payload extends RequestPayload, Response> {
31
+ onFinish: (response: Response) => void;
32
+ onCancel: () => void;
33
+ payload: Payload;
34
+ getProvider?: () => Promise<BitcoinProvider | undefined>;
35
+ }
36
+ declare const RpcIdSchema: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
37
+ type RpcId = v.InferOutput<typeof RpcIdSchema>;
38
+ declare const rpcRequestMessageSchema: v.ObjectSchema<{
39
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
40
+ readonly method: v.StringSchema<undefined>;
41
+ readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, undefined>;
42
+ readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>;
43
+ }, undefined>;
44
+ type RpcRequestMessage = v.InferOutput<typeof rpcRequestMessageSchema>;
45
+ interface RpcBase {
46
+ jsonrpc: '2.0';
47
+ id: RpcId;
48
+ }
49
+ interface RpcRequest<T extends string, U> extends RpcBase {
50
+ method: T;
51
+ params: U;
52
+ }
53
+ interface MethodParamsAndResult<TParams, TResult> {
54
+ params: TParams;
55
+ result: TResult;
56
+ }
57
+ /**
58
+ * @enum {number} RpcErrorCode
59
+ * @description JSON-RPC error codes
60
+ * @see https://www.jsonrpc.org/specification#error_object
61
+ */
62
+ declare enum RpcErrorCode {
63
+ /**
64
+ * Parse error Invalid JSON
65
+ **/
66
+ PARSE_ERROR = -32700,
67
+ /**
68
+ * The JSON sent is not a valid Request object.
69
+ **/
70
+ INVALID_REQUEST = -32600,
71
+ /**
72
+ * The method does not exist/is not available.
73
+ **/
74
+ METHOD_NOT_FOUND = -32601,
75
+ /**
76
+ * Invalid method parameter(s).
77
+ */
78
+ INVALID_PARAMS = -32602,
79
+ /**
80
+ * Internal JSON-RPC error.
81
+ * This is a generic error, used when the server encounters an error in performing the request.
82
+ **/
83
+ INTERNAL_ERROR = -32603,
84
+ /**
85
+ * user rejected/canceled the request
86
+ */
87
+ USER_REJECTION = -32000,
88
+ /**
89
+ * method is not supported for the address provided
90
+ */
91
+ METHOD_NOT_SUPPORTED = -32001,
92
+ /**
93
+ * The client does not have permission to access the requested resource.
94
+ */
95
+ ACCESS_DENIED = -32002,
96
+ }
97
+ declare const rpcSuccessResponseMessageSchema: v.ObjectSchema<{
98
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
99
+ readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
100
+ readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
101
+ }, undefined>;
102
+ type RpcSuccessResponseMessage = v.InferOutput<typeof rpcSuccessResponseMessageSchema>;
103
+ declare const rpcErrorResponseMessageSchema: v.ObjectSchema<{
104
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
105
+ readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
106
+ readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
107
+ }, undefined>;
108
+ type RpcErrorResponseMessage = v.InferOutput<typeof rpcErrorResponseMessageSchema>;
109
+ declare const rpcResponseMessageSchema: v.UnionSchema<[v.ObjectSchema<{
110
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
111
+ readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
112
+ readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
113
+ }, undefined>, v.ObjectSchema<{
114
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
115
+ readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
116
+ readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
117
+ }, undefined>], undefined>;
118
+ type RpcResponseMessage = v.InferOutput<typeof rpcResponseMessageSchema>;
119
+ interface RpcError {
120
+ code: number | RpcErrorCode;
121
+ message: string;
122
+ data?: any;
123
+ }
124
+ interface RpcErrorResponse<TError extends RpcError = RpcError> extends RpcBase {
125
+ error: TError;
126
+ }
127
+ interface RpcSuccessResponse<Method$1 extends keyof Requests> extends RpcBase {
128
+ result: Return<Method$1>;
129
+ }
130
+ type RpcResponse<Method$1 extends keyof Requests> = RpcSuccessResponse<Method$1> | RpcErrorResponse;
131
+ type RpcResult<Method$1 extends keyof Requests> = {
132
+ result: RpcSuccessResponse<Method$1>['result'];
133
+ status: 'success';
134
+ } | {
135
+ error: RpcErrorResponse['error'];
136
+ status: 'error';
137
+ };
138
+ //#endregion
139
+ //#region src/addresses/types.d.ts
140
+ declare enum AddressPurpose {
141
+ Ordinals = "ordinals",
142
+ Payment = "payment",
143
+ Stacks = "stacks",
144
+ Starknet = "starknet",
145
+ Spark = "spark",
146
+ }
147
+ interface GetAddressPayload extends RequestPayload {
148
+ purposes: AddressPurpose[];
149
+ message: string;
150
+ }
151
+ declare enum AddressType {
152
+ p2pkh = "p2pkh",
153
+ p2sh = "p2sh",
154
+ p2wpkh = "p2wpkh",
155
+ p2wsh = "p2wsh",
156
+ p2tr = "p2tr",
157
+ stacks = "stacks",
158
+ starknet = "starknet",
159
+ spark = "spark",
160
+ }
161
+ declare const addressSchema: v.ObjectSchema<{
162
+ readonly address: v.StringSchema<undefined>;
163
+ readonly publicKey: v.StringSchema<undefined>;
164
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
165
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
166
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
167
+ }, undefined>;
168
+ type Address = v.InferOutput<typeof addressSchema>;
169
+ interface GetAddressResponse {
170
+ addresses: Address[];
171
+ }
172
+ type GetAddressOptions = RequestOptions<GetAddressPayload, GetAddressResponse>;
173
+ //#endregion
174
+ //#region src/addresses/index.d.ts
175
+ /**
176
+ * @deprecated Use `request()` instead
177
+ */
178
+ declare const getAddress: (options: GetAddressOptions) => Promise<void>;
179
+ //#endregion
180
+ //#region src/capabilities/types.d.ts
181
+ interface GetCapabilitiesPayload extends RequestPayload {}
182
+ type GetCapabilitiesResponse = Capability[];
183
+ type GetCapabilitiesOptions = RequestOptions<GetCapabilitiesPayload, GetCapabilitiesResponse>;
184
+ //#endregion
185
+ //#region src/capabilities/index.d.ts
186
+ declare const getCapabilities: (options: GetCapabilitiesOptions) => Promise<void>;
187
+ //#endregion
188
+ //#region src/inscriptions/types.d.ts
189
+ interface CreateInscriptionPayload extends RequestPayload {
190
+ contentType: string;
191
+ content: string;
192
+ payloadType: 'PLAIN_TEXT' | 'BASE_64';
193
+ appFee?: number;
194
+ appFeeAddress?: string;
195
+ suggestedMinerFeeRate?: number;
196
+ token?: string;
197
+ }
198
+ interface CreateRepeatInscriptionsPayload extends CreateInscriptionPayload {
199
+ repeat: number;
200
+ }
201
+ type CreateInscriptionResponse = {
202
+ txId: string;
203
+ };
204
+ type CreateRepeatInscriptionsResponse = {
205
+ txId: string;
206
+ };
207
+ type CreateInscriptionOptions = RequestOptions<CreateInscriptionPayload, CreateInscriptionResponse>;
208
+ type CreateRepeatInscriptionsOptions = RequestOptions<CreateRepeatInscriptionsPayload, CreateRepeatInscriptionsResponse>;
209
+ //#endregion
210
+ //#region src/inscriptions/createInscription.d.ts
211
+ declare const createInscription: (options: CreateInscriptionOptions) => Promise<void>;
212
+ //#endregion
213
+ //#region src/inscriptions/createRepeatInscriptions.d.ts
214
+ declare const createRepeatInscriptions: (options: CreateRepeatInscriptionsOptions) => Promise<void>;
215
+ //#endregion
216
+ //#region src/messages/types.d.ts
217
+ interface SignMessagePayload extends RequestPayload {
218
+ address: string;
219
+ message: string;
220
+ protocol?: MessageSigningProtocols;
221
+ }
222
+ type SignMessageResponse = string;
223
+ type SignMessageOptions = RequestOptions<SignMessagePayload, SignMessageResponse>;
224
+ //#endregion
225
+ //#region src/messages/index.d.ts
226
+ declare const signMessage: (options: SignMessageOptions) => Promise<void>;
227
+ //#endregion
228
+ //#region src/transactions/types.d.ts
229
+ interface Recipient {
230
+ address: string;
231
+ amountSats: bigint;
232
+ }
233
+ type SerializedRecipient = Omit<Recipient, 'amountSats'> & {
234
+ amountSats: string;
235
+ };
236
+ interface SendBtcTransactionPayload extends RequestPayload {
237
+ recipients: Recipient[];
238
+ senderAddress: string;
239
+ message?: string;
240
+ }
241
+ type SerializedSendBtcTransactionPayload = Omit<SendBtcTransactionPayload, 'recipients'> & {
242
+ recipients: SerializedRecipient[];
243
+ };
244
+ type SendBtcTransactionResponse = string;
245
+ type SendBtcTransactionOptions = RequestOptions<SendBtcTransactionPayload, SendBtcTransactionResponse>;
246
+ interface InputToSign {
247
+ address: string;
248
+ signingIndexes: number[];
249
+ sigHash?: number;
250
+ }
251
+ type PsbtPayload = {
252
+ psbtBase64: string;
253
+ inputsToSign?: InputToSign[];
254
+ broadcast?: boolean;
255
+ };
256
+ type SignMultiplePsbtPayload = {
257
+ psbtBase64: string;
258
+ inputsToSign?: InputToSign[];
259
+ };
260
+ interface SignTransactionPayload extends RequestPayload, PsbtPayload {
261
+ message: string;
262
+ }
263
+ interface SignTransactionResponse {
264
+ psbtBase64: string;
265
+ txId?: string;
266
+ }
267
+ type SignTransactionOptions = RequestOptions<SignTransactionPayload, SignTransactionResponse>;
268
+ interface SignMultipleTransactionsPayload extends RequestPayload {
269
+ message: string;
270
+ psbts: SignMultiplePsbtPayload[];
271
+ }
272
+ type SignMultipleTransactionsResponse = SignTransactionResponse[];
273
+ type SignMultipleTransactionOptions = RequestOptions<SignMultipleTransactionsPayload, SignMultipleTransactionsResponse>;
274
+ //#endregion
275
+ //#region src/transactions/sendBtcTransaction.d.ts
276
+ declare const sendBtcTransaction: (options: SendBtcTransactionOptions) => Promise<void>;
277
+ //#endregion
278
+ //#region src/transactions/signTransaction.d.ts
279
+ declare const signTransaction: (options: SignTransactionOptions) => Promise<void>;
280
+ //#endregion
281
+ //#region src/transactions/signMultipleTransactions.d.ts
282
+ declare const signMultipleTransactions: (options: SignMultipleTransactionOptions) => Promise<void>;
283
+ //#endregion
284
+ //#region src/provider/types.d.ts
285
+ declare const accountChangeEventName = "accountChange";
286
+ declare const accountChangeSchema: v.ObjectSchema<{
287
+ readonly type: v.LiteralSchema<"accountChange", undefined>;
288
+ readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
289
+ readonly address: v.StringSchema<undefined>;
290
+ readonly publicKey: v.StringSchema<undefined>;
291
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
292
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
293
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
294
+ }, undefined>, undefined>, undefined>;
295
+ }, undefined>;
296
+ type AccountChangeEvent = v.InferOutput<typeof accountChangeSchema>;
297
+ declare const networkChangeEventName = "networkChange";
298
+ declare const networkChangeSchema: v.ObjectSchema<{
299
+ readonly type: v.LiteralSchema<"networkChange", undefined>;
300
+ readonly networks: v.ObjectSchema<{
301
+ readonly bitcoin: v.ObjectSchema<{
302
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
303
+ readonly xverseApiUrl: v.StringSchema<undefined>;
304
+ readonly electrsApiUrl: v.StringSchema<undefined>;
305
+ readonly id: v.StringSchema<undefined>;
306
+ readonly name: v.StringSchema<undefined>;
307
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
308
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
309
+ }, undefined>;
310
+ readonly spark: v.ObjectSchema<{
311
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
312
+ readonly electrsApiUrl: v.StringSchema<undefined>;
313
+ readonly id: v.StringSchema<undefined>;
314
+ readonly name: v.StringSchema<undefined>;
315
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
316
+ readonly chain: v.LiteralSchema<"spark", undefined>;
317
+ }, undefined>;
318
+ readonly stacks: v.ObjectSchema<{
319
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
320
+ readonly stacksApiUrl: v.StringSchema<undefined>;
321
+ readonly xverseApiUrl: v.StringSchema<undefined>;
322
+ readonly id: v.StringSchema<undefined>;
323
+ readonly name: v.StringSchema<undefined>;
324
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
325
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
326
+ }, undefined>;
327
+ readonly starknet: v.ObjectSchema<{
328
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
329
+ readonly rpcApiUrl: v.StringSchema<undefined>;
330
+ readonly xverseApiUrl: v.StringSchema<undefined>;
331
+ readonly id: v.StringSchema<undefined>;
332
+ readonly name: v.StringSchema<undefined>;
333
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
334
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
335
+ }, undefined>;
336
+ }, undefined>;
337
+ readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
338
+ readonly address: v.StringSchema<undefined>;
339
+ readonly publicKey: v.StringSchema<undefined>;
340
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
341
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
342
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
343
+ }, undefined>, undefined>, undefined>;
344
+ }, undefined>;
345
+ type NetworkChangeEvent = v.InferOutput<typeof networkChangeSchema>;
346
+ declare const disconnectEventName = "disconnect";
347
+ declare const disconnectSchema: v.ObjectSchema<{
348
+ readonly type: v.LiteralSchema<"disconnect", undefined>;
349
+ }, undefined>;
350
+ type DisconnectEvent = v.InferOutput<typeof disconnectSchema>;
351
+ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
352
+ readonly type: v.LiteralSchema<"accountChange", undefined>;
353
+ readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
354
+ readonly address: v.StringSchema<undefined>;
355
+ readonly publicKey: v.StringSchema<undefined>;
356
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
357
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
358
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
359
+ }, undefined>, undefined>, undefined>;
360
+ }, undefined>, v.ObjectSchema<{
361
+ readonly type: v.LiteralSchema<"networkChange", undefined>;
362
+ readonly networks: v.ObjectSchema<{
363
+ readonly bitcoin: v.ObjectSchema<{
364
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
365
+ readonly xverseApiUrl: v.StringSchema<undefined>;
366
+ readonly electrsApiUrl: v.StringSchema<undefined>;
367
+ readonly id: v.StringSchema<undefined>;
368
+ readonly name: v.StringSchema<undefined>;
369
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
370
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
371
+ }, undefined>;
372
+ readonly spark: v.ObjectSchema<{
373
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
374
+ readonly electrsApiUrl: v.StringSchema<undefined>;
375
+ readonly id: v.StringSchema<undefined>;
376
+ readonly name: v.StringSchema<undefined>;
377
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
378
+ readonly chain: v.LiteralSchema<"spark", undefined>;
379
+ }, undefined>;
380
+ readonly stacks: v.ObjectSchema<{
381
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
382
+ readonly stacksApiUrl: v.StringSchema<undefined>;
383
+ readonly xverseApiUrl: v.StringSchema<undefined>;
384
+ readonly id: v.StringSchema<undefined>;
385
+ readonly name: v.StringSchema<undefined>;
386
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
387
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
388
+ }, undefined>;
389
+ readonly starknet: v.ObjectSchema<{
390
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
391
+ readonly rpcApiUrl: v.StringSchema<undefined>;
392
+ readonly xverseApiUrl: v.StringSchema<undefined>;
393
+ readonly id: v.StringSchema<undefined>;
394
+ readonly name: v.StringSchema<undefined>;
395
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
396
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
397
+ }, undefined>;
398
+ }, undefined>;
399
+ readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
400
+ readonly address: v.StringSchema<undefined>;
401
+ readonly publicKey: v.StringSchema<undefined>;
402
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
403
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
404
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
405
+ }, undefined>, undefined>, undefined>;
406
+ }, undefined>, v.ObjectSchema<{
407
+ readonly type: v.LiteralSchema<"disconnect", undefined>;
408
+ }, undefined>], undefined>;
409
+ type WalletEvent = v.InferOutput<typeof walletEventSchema>;
410
+ type AccountChangeCallback = (e: AccountChangeEvent) => void;
411
+ type DisconnectCallback = (e: DisconnectEvent) => void;
412
+ type NetworkChangeCallback = (e: NetworkChangeEvent) => void;
413
+ type ListenerInfo = {
414
+ eventName: typeof accountChangeEventName;
415
+ cb: AccountChangeCallback;
416
+ } | {
417
+ eventName: typeof disconnectEventName;
418
+ cb: DisconnectCallback;
419
+ } | {
420
+ eventName: typeof networkChangeEventName;
421
+ cb: NetworkChangeCallback;
422
+ };
423
+ type AddListener = (arg: ListenerInfo) => () => void;
424
+ interface BaseBitcoinProvider {
425
+ request: <Method extends keyof Requests>(method: Method, options: Params<Method>, providerId?: string) => Promise<RpcResponse<Method>>;
426
+ connect: (request: string) => Promise<GetAddressResponse>;
427
+ signMessage: (request: string) => Promise<SignMessageResponse>;
428
+ signTransaction: (request: string) => Promise<SignTransactionResponse>;
429
+ sendBtcTransaction: (request: string) => Promise<SendBtcTransactionResponse>;
430
+ createInscription: (request: string) => Promise<CreateInscriptionResponse>;
431
+ createRepeatInscriptions: (request: string) => Promise<CreateRepeatInscriptionsResponse>;
432
+ signMultipleTransactions: (request: string) => Promise<SignMultipleTransactionsResponse>;
433
+ addListener: AddListener;
434
+ }
435
+ type Capability = keyof BaseBitcoinProvider;
436
+ interface BitcoinProvider extends BaseBitcoinProvider {
437
+ getCapabilities?: (request: string) => Promise<GetCapabilitiesResponse>;
438
+ }
439
+ interface Provider {
440
+ id: string;
441
+ name: string;
442
+ icon: string;
443
+ webUrl?: string;
444
+ chromeWebStoreUrl?: string;
445
+ mozillaAddOnsUrl?: string;
446
+ googlePlayStoreUrl?: string;
447
+ iOSAppStoreUrl?: string;
448
+ methods?: (StxRequestMethod | BtcRequestMethod | RunesRequestMethod | OrdinalsRequestMethod)[];
449
+ }
450
+ interface SupportedWallet extends Provider {
451
+ isInstalled: boolean;
452
+ }
453
+ declare global {
454
+ interface XverseProviders {
455
+ BitcoinProvider?: BitcoinProvider;
456
+ }
457
+ interface Window {
458
+ BitcoinProvider?: BitcoinProvider;
459
+ XverseProviders?: XverseProviders;
460
+ btc_providers?: Provider[];
461
+ }
462
+ }
463
+ //#endregion
464
+ //#region src/provider/index.d.ts
465
+ declare function getProviderOrThrow(getProvider?: () => Promise<BitcoinProvider | undefined>): Promise<BitcoinProvider>;
466
+ declare function getProviders(): Provider[];
467
+ declare function getProviderById(providerId: string): any;
468
+ declare function isProviderInstalled(providerId: string): boolean;
469
+ declare function setDefaultProvider(providerId: string): void;
470
+ declare function getDefaultProvider(): string | null;
471
+ declare function removeDefaultProvider(): void;
472
+ declare function getSupportedWallets(): SupportedWallet[];
473
+ //#endregion
474
+ //#region src/request/types/btcMethods.d.ts
475
+ declare enum ProviderPlatform {
476
+ Web = "web",
477
+ Mobile = "mobile",
478
+ }
479
+ declare const getInfoMethodName = "getInfo";
480
+ declare const getInfoParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
481
+ type GetInfoParams = v.InferOutput<typeof getInfoParamsSchema>;
482
+ declare const getInfoResultSchema: v.ObjectSchema<{
483
+ /**
484
+ * Version of the wallet.
485
+ */
486
+ readonly version: v.StringSchema<undefined>;
487
+ /**
488
+ * The platform the wallet is running on (web or mobile).
489
+ */
490
+ readonly platform: v.OptionalSchema<v.EnumSchema<typeof ProviderPlatform, undefined>, undefined>;
491
+ /**
492
+ * [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
493
+ */
494
+ readonly methods: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
495
+ /**
496
+ * List of WBIP standards supported by the wallet. Not currently used.
497
+ */
498
+ readonly supports: v.ArraySchema<v.StringSchema<undefined>, undefined>;
499
+ }, undefined>;
500
+ type GetInfoResult = v.InferOutput<typeof getInfoResultSchema>;
501
+ declare const getInfoRequestMessageSchema: v.ObjectSchema<{
502
+ readonly method: v.LiteralSchema<"getInfo", undefined>;
503
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
504
+ readonly id: v.StringSchema<undefined>;
505
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
506
+ }, undefined>;
507
+ type GetInfoRequestMessage = v.InferOutput<typeof getInfoRequestMessageSchema>;
508
+ type GetInfo = MethodParamsAndResult<v.InferOutput<typeof getInfoParamsSchema>, v.InferOutput<typeof getInfoResultSchema>>;
509
+ declare const getAddressesMethodName = "getAddresses";
510
+ declare const getAddressesParamsSchema: v.ObjectSchema<{
511
+ /**
512
+ * The purposes for which to generate addresses. See
513
+ * {@linkcode AddressPurpose} for available purposes.
514
+ */
515
+ readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
516
+ /**
517
+ * A message to be displayed to the user in the request prompt.
518
+ */
519
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
520
+ }, undefined>;
521
+ type GetAddressesParams = v.InferOutput<typeof getAddressesParamsSchema>;
522
+ declare const getAddressesResultSchema: v.ObjectSchema<{
523
+ /**
524
+ * The addresses generated for the given purposes.
525
+ */
526
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
527
+ readonly address: v.StringSchema<undefined>;
528
+ readonly publicKey: v.StringSchema<undefined>;
529
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
530
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
531
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
532
+ }, undefined>, undefined>;
533
+ readonly network: v.ObjectSchema<{
534
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
535
+ readonly xverseApiUrl: v.StringSchema<undefined>;
536
+ readonly electrsApiUrl: v.StringSchema<undefined>;
537
+ readonly id: v.StringSchema<undefined>;
538
+ readonly name: v.StringSchema<undefined>;
539
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
540
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
541
+ }, undefined>;
542
+ }, undefined>;
543
+ type GetAddressesResult = v.InferOutput<typeof getAddressesResultSchema>;
544
+ declare const getAddressesRequestMessageSchema: v.ObjectSchema<{
545
+ readonly method: v.LiteralSchema<"getAddresses", undefined>;
546
+ readonly params: v.ObjectSchema<{
547
+ /**
548
+ * The purposes for which to generate addresses. See
549
+ * {@linkcode AddressPurpose} for available purposes.
550
+ */
551
+ readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
552
+ /**
553
+ * A message to be displayed to the user in the request prompt.
554
+ */
555
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
556
+ }, undefined>;
557
+ readonly id: v.StringSchema<undefined>;
558
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
559
+ }, undefined>;
560
+ type GetAddressesRequestMessage = v.InferOutput<typeof getAddressesRequestMessageSchema>;
561
+ type GetAddresses = MethodParamsAndResult<v.InferOutput<typeof getAddressesParamsSchema>, v.InferOutput<typeof getAddressesResultSchema>>;
562
+ declare const signMessageMethodName = "signMessage";
563
+ declare enum MessageSigningProtocols {
564
+ ECDSA = "ECDSA",
565
+ BIP322 = "BIP322",
566
+ }
567
+ declare const signMessageParamsSchema: v.ObjectSchema<{
568
+ /**
569
+ * The address used for signing.
570
+ **/
571
+ readonly address: v.StringSchema<undefined>;
572
+ /**
573
+ * The message to sign.
574
+ **/
575
+ readonly message: v.StringSchema<undefined>;
576
+ /**
577
+ * The protocol to use for signing the message.
578
+ */
579
+ readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols, undefined>, undefined>;
580
+ }, undefined>;
581
+ type SignMessageParams = v.InferOutput<typeof signMessageParamsSchema>;
582
+ declare const signMessageResultSchema: v.ObjectSchema<{
583
+ /**
584
+ * The signature of the message.
585
+ */
586
+ readonly signature: v.StringSchema<undefined>;
587
+ /**
588
+ * hash of the message.
589
+ */
590
+ readonly messageHash: v.StringSchema<undefined>;
591
+ /**
592
+ * The address used for signing.
593
+ */
594
+ readonly address: v.StringSchema<undefined>;
595
+ /**
596
+ * The protocol to use for signing the message.
597
+ */
598
+ readonly protocol: v.EnumSchema<typeof MessageSigningProtocols, undefined>;
599
+ }, undefined>;
600
+ type SignMessageResult = v.InferOutput<typeof signMessageResultSchema>;
601
+ declare const signMessageRequestMessageSchema: v.ObjectSchema<{
602
+ readonly method: v.LiteralSchema<"signMessage", undefined>;
603
+ readonly params: v.ObjectSchema<{
604
+ /**
605
+ * The address used for signing.
606
+ **/
607
+ readonly address: v.StringSchema<undefined>;
608
+ /**
609
+ * The message to sign.
610
+ **/
611
+ readonly message: v.StringSchema<undefined>;
612
+ /**
613
+ * The protocol to use for signing the message.
614
+ */
615
+ readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols, undefined>, undefined>;
616
+ }, undefined>;
617
+ readonly id: v.StringSchema<undefined>;
618
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
619
+ }, undefined>;
620
+ type SignMessageRequestMessage = v.InferOutput<typeof signMessageRequestMessageSchema>;
621
+ type SignMessage = MethodParamsAndResult<v.InferOutput<typeof signMessageParamsSchema>, v.InferOutput<typeof signMessageResultSchema>>;
622
+ declare const sendTransferMethodName = "sendTransfer";
623
+ declare const sendTransferParamsSchema: v.ObjectSchema<{
624
+ /**
625
+ * Array of recipients to send to.
626
+ * The amount to send to each recipient is in satoshis.
627
+ */
628
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
629
+ readonly address: v.StringSchema<undefined>;
630
+ readonly amount: v.NumberSchema<undefined>;
631
+ }, undefined>, undefined>;
632
+ }, undefined>;
633
+ type SendTransferParams = v.InferOutput<typeof sendTransferParamsSchema>;
634
+ declare const sendTransferResultSchema: v.ObjectSchema<{
635
+ /**
636
+ * The transaction id as a hex-encoded string.
637
+ */
638
+ readonly txid: v.StringSchema<undefined>;
639
+ }, undefined>;
640
+ type SendTransferResult = v.InferOutput<typeof sendTransferResultSchema>;
641
+ declare const sendTransferRequestMessageSchema: v.ObjectSchema<{
642
+ readonly method: v.LiteralSchema<"sendTransfer", undefined>;
643
+ readonly params: v.ObjectSchema<{
644
+ /**
645
+ * Array of recipients to send to.
646
+ * The amount to send to each recipient is in satoshis.
647
+ */
648
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
649
+ readonly address: v.StringSchema<undefined>;
650
+ readonly amount: v.NumberSchema<undefined>;
651
+ }, undefined>, undefined>;
652
+ }, undefined>;
653
+ readonly id: v.StringSchema<undefined>;
654
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
655
+ }, undefined>;
656
+ type SendTransferRequestMessage = v.InferOutput<typeof sendTransferRequestMessageSchema>;
657
+ type SendTransfer = MethodParamsAndResult<SendTransferParams, SendTransferResult>;
658
+ declare const signPsbtMethodName = "signPsbt";
659
+ declare const signPsbtParamsSchema: v.ObjectSchema<{
660
+ /**
661
+ * The base64 encoded PSBT to sign.
662
+ */
663
+ readonly psbt: v.StringSchema<undefined>;
664
+ /**
665
+ * The inputs to sign.
666
+ * The key is the address and the value is an array of indexes of the inputs to sign.
667
+ */
668
+ readonly signInputs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>, undefined>;
669
+ /**
670
+ * Whether to broadcast the transaction after signing.
671
+ **/
672
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
673
+ }, undefined>;
674
+ type SignPsbtParams = v.InferOutput<typeof signPsbtParamsSchema>;
675
+ declare const signPsbtResultSchema: v.ObjectSchema<{
676
+ /**
677
+ * The base64 encoded PSBT after signing.
678
+ */
679
+ readonly psbt: v.StringSchema<undefined>;
680
+ /**
681
+ * The transaction id as a hex-encoded string.
682
+ * This is only returned if the transaction was broadcast.
683
+ **/
684
+ readonly txid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
685
+ }, undefined>;
686
+ type SignPsbtResult = v.InferOutput<typeof signPsbtResultSchema>;
687
+ declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
688
+ readonly method: v.LiteralSchema<"signPsbt", undefined>;
689
+ readonly params: v.ObjectSchema<{
690
+ /**
691
+ * The base64 encoded PSBT to sign.
692
+ */
693
+ readonly psbt: v.StringSchema<undefined>;
694
+ /**
695
+ * The inputs to sign.
696
+ * The key is the address and the value is an array of indexes of the inputs to sign.
697
+ */
698
+ readonly signInputs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>, undefined>;
699
+ /**
700
+ * Whether to broadcast the transaction after signing.
701
+ **/
702
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
703
+ }, undefined>;
704
+ readonly id: v.StringSchema<undefined>;
705
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
706
+ }, undefined>;
707
+ type SignPsbtRequestMessage = v.InferOutput<typeof signPsbtRequestMessageSchema>;
708
+ type SignPsbt = MethodParamsAndResult<SignPsbtParams, SignPsbtResult>;
709
+ declare const getAccountsMethodName = "getAccounts";
710
+ declare const getAccountsParamsSchema: v.ObjectSchema<{
711
+ /**
712
+ * The purposes for which to generate addresses. See
713
+ * {@linkcode AddressPurpose} for available purposes.
714
+ */
715
+ readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
716
+ /**
717
+ * A message to be displayed to the user in the request prompt.
718
+ */
719
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
720
+ }, undefined>;
721
+ type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
722
+ declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
723
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
724
+ readonly address: v.StringSchema<undefined>;
725
+ readonly publicKey: v.StringSchema<undefined>;
726
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
727
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
728
+ }, undefined>, undefined>;
729
+ type GetAccountsResult = v.InferOutput<typeof getAccountsResultSchema>;
730
+ declare const getAccountsRequestMessageSchema: v.ObjectSchema<{
731
+ readonly method: v.LiteralSchema<"getAccounts", undefined>;
732
+ readonly params: v.ObjectSchema<{
733
+ /**
734
+ * The purposes for which to generate addresses. See
735
+ * {@linkcode AddressPurpose} for available purposes.
736
+ */
737
+ readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
738
+ /**
739
+ * A message to be displayed to the user in the request prompt.
740
+ */
741
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
742
+ }, undefined>;
743
+ readonly id: v.StringSchema<undefined>;
744
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
745
+ }, undefined>;
746
+ type GetAccountsRequestMessage = v.InferOutput<typeof getAccountsRequestMessageSchema>;
747
+ type GetAccounts = MethodParamsAndResult<v.InferOutput<typeof getAccountsParamsSchema>, v.InferOutput<typeof getAccountsResultSchema>>;
748
+ declare const getBalanceMethodName = "getBalance";
749
+ declare const getBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
750
+ type GetBalanceParams = v.InferOutput<typeof getBalanceParamsSchema>;
751
+ declare const getBalanceResultSchema: v.ObjectSchema<{
752
+ /**
753
+ * The confirmed balance of the wallet in sats. Using a string due to chrome
754
+ * messages not supporting bigint
755
+ * (https://issues.chromium.org/issues/40116184).
756
+ */
757
+ readonly confirmed: v.StringSchema<undefined>;
758
+ /**
759
+ * The unconfirmed balance of the wallet in sats. Using a string due to chrome
760
+ * messages not supporting bigint
761
+ * (https://issues.chromium.org/issues/40116184).
762
+ */
763
+ readonly unconfirmed: v.StringSchema<undefined>;
764
+ /**
765
+ * The total balance (both confirmed and unconfrimed UTXOs) of the wallet in
766
+ * sats. Using a string due to chrome messages not supporting bigint
767
+ * (https://issues.chromium.org/issues/40116184).
768
+ */
769
+ readonly total: v.StringSchema<undefined>;
770
+ }, undefined>;
771
+ type GetBalanceResult = v.InferOutput<typeof getBalanceResultSchema>;
772
+ declare const getBalanceRequestMessageSchema: v.ObjectSchema<{
773
+ readonly method: v.LiteralSchema<"getBalance", undefined>;
774
+ readonly id: v.StringSchema<undefined>;
775
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
776
+ readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, undefined>;
777
+ }, undefined>;
778
+ type GetBalanceRequestMessage = v.InferOutput<typeof getBalanceRequestMessageSchema>;
779
+ type GetBalance = MethodParamsAndResult<GetBalanceParams, GetBalanceResult>;
780
+ //#endregion
781
+ //#region src/request/types/ordinalsMethods.d.ts
782
+ declare const getInscriptionsMethodName = "ord_getInscriptions";
783
+ declare const getInscriptionsParamsSchema: v.ObjectSchema<{
784
+ readonly offset: v.NumberSchema<undefined>;
785
+ readonly limit: v.NumberSchema<undefined>;
786
+ }, undefined>;
787
+ type GetInscriptionsParams = v.InferOutput<typeof getInscriptionsParamsSchema>;
788
+ declare const getInscriptionsResultSchema: v.ObjectSchema<{
789
+ readonly total: v.NumberSchema<undefined>;
790
+ readonly limit: v.NumberSchema<undefined>;
791
+ readonly offset: v.NumberSchema<undefined>;
792
+ readonly inscriptions: v.ArraySchema<v.ObjectSchema<{
793
+ readonly inscriptionId: v.StringSchema<undefined>;
794
+ readonly inscriptionNumber: v.StringSchema<undefined>;
795
+ readonly address: v.StringSchema<undefined>;
796
+ readonly collectionName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
797
+ readonly postage: v.StringSchema<undefined>;
798
+ readonly contentLength: v.StringSchema<undefined>;
799
+ readonly contentType: v.StringSchema<undefined>;
800
+ readonly timestamp: v.NumberSchema<undefined>;
801
+ readonly offset: v.NumberSchema<undefined>;
802
+ readonly genesisTransaction: v.StringSchema<undefined>;
803
+ readonly output: v.StringSchema<undefined>;
804
+ }, undefined>, undefined>;
805
+ }, undefined>;
806
+ type GetInscriptionsResult = v.InferOutput<typeof getInscriptionsResultSchema>;
807
+ declare const getInscriptionsRequestMessageSchema: v.ObjectSchema<{
808
+ readonly method: v.LiteralSchema<"ord_getInscriptions", undefined>;
809
+ readonly params: v.ObjectSchema<{
810
+ readonly offset: v.NumberSchema<undefined>;
811
+ readonly limit: v.NumberSchema<undefined>;
812
+ }, undefined>;
813
+ readonly id: v.StringSchema<undefined>;
814
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
815
+ }, undefined>;
816
+ type GetInscriptionsRequestMessage = v.InferOutput<typeof getInscriptionsRequestMessageSchema>;
817
+ type GetInscriptions = MethodParamsAndResult<GetInscriptionsParams, GetInscriptionsResult>;
818
+ declare const sendInscriptionsMethodName = "ord_sendInscriptions";
819
+ declare const sendInscriptionsParamsSchema: v.ObjectSchema<{
820
+ readonly transfers: v.ArraySchema<v.ObjectSchema<{
821
+ readonly address: v.StringSchema<undefined>;
822
+ readonly inscriptionId: v.StringSchema<undefined>;
823
+ }, undefined>, undefined>;
824
+ }, undefined>;
825
+ type SendInscriptionsParams = v.InferOutput<typeof sendInscriptionsParamsSchema>;
826
+ declare const sendInscriptionsResultSchema: v.ObjectSchema<{
827
+ readonly txid: v.StringSchema<undefined>;
828
+ }, undefined>;
829
+ type SendInscriptionsResult = v.InferOutput<typeof sendInscriptionsResultSchema>;
830
+ declare const sendInscriptionsRequestMessageSchema: v.ObjectSchema<{
831
+ readonly method: v.LiteralSchema<"ord_sendInscriptions", undefined>;
832
+ readonly params: v.ObjectSchema<{
833
+ readonly transfers: v.ArraySchema<v.ObjectSchema<{
834
+ readonly address: v.StringSchema<undefined>;
835
+ readonly inscriptionId: v.StringSchema<undefined>;
836
+ }, undefined>, undefined>;
837
+ }, undefined>;
838
+ readonly id: v.StringSchema<undefined>;
839
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
840
+ }, undefined>;
841
+ type SendInscriptionsRequestMessage = v.InferOutput<typeof sendInscriptionsRequestMessageSchema>;
842
+ type SendInscriptions = MethodParamsAndResult<SendInscriptionsParams, SendInscriptionsResult>;
843
+ //#endregion
844
+ //#region src/runes/types.d.ts
845
+ type CreateMintOrderRequest = {
846
+ runeName: string;
847
+ repeats: number;
848
+ refundAddress: string;
849
+ destinationAddress: string;
850
+ feeRate: number;
851
+ appServiceFee?: number;
852
+ appServiceFeeAddress?: string;
853
+ };
854
+ type EstimateMintOrderRequest = Omit<CreateMintOrderRequest, 'refundAddress'>;
855
+ type EstimateOrderResponse = {
856
+ totalSize: number;
857
+ totalCost: number;
858
+ costBreakdown: {
859
+ postage: number;
860
+ networkFee: number;
861
+ serviceFee: number;
862
+ appServiceFee: number;
863
+ };
864
+ };
865
+ type CreateEtchOrderRequest = {
866
+ runeName: string;
867
+ divisibility?: number;
868
+ symbol?: string;
869
+ premine?: string;
870
+ isMintable: boolean;
871
+ terms?: {
872
+ amount?: string;
873
+ cap?: string;
874
+ heightStart?: string;
875
+ heightEnd?: string;
876
+ offsetStart?: string;
877
+ offsetEnd?: string;
878
+ };
879
+ inscriptionDetails?: {
880
+ contentType: string;
881
+ contentBase64: string;
882
+ };
883
+ delegateInscriptionId?: string;
884
+ destinationAddress: string;
885
+ refundAddress: string;
886
+ feeRate: number;
887
+ appServiceFee?: number;
888
+ appServiceFeeAddress?: string;
889
+ };
890
+ type EstimateEtchOrderRequest = Omit<CreateEtchOrderRequest, 'refundAddress'>;
891
+ type GetOrderRequest = {
892
+ id: string;
893
+ };
894
+ type GetOrderResponse = {
895
+ id: string;
896
+ orderType: 'rune_mint' | 'rune_etch';
897
+ state: 'new' | 'pending' | 'executing' | 'complete' | 'failed' | 'refunded' | 'stale';
898
+ fundingAddress: string;
899
+ reason?: string;
900
+ createdAt: string;
901
+ };
902
+ type RBFOrderRequest = {
903
+ orderId: string;
904
+ newFeeRate: number;
905
+ };
906
+ type RBFOrderResponse = {
907
+ rbfCost: number;
908
+ fundingAddress: string;
909
+ };
910
+ //#endregion
911
+ //#region src/request/types/runesMethods/estimateEtch.d.ts
912
+ interface RunesEstimateEtchParams extends EstimateEtchOrderRequest {
913
+ network?: BitcoinNetworkType;
914
+ }
915
+ type RunesEstimateEtchResult = EstimateOrderResponse;
916
+ type RunesEstimateEtch = MethodParamsAndResult<RunesEstimateEtchParams, RunesEstimateEtchResult>;
917
+ //#endregion
918
+ //#region src/request/types/runesMethods/estimateMint.d.ts
919
+ interface runesEstimateMintParams extends EstimateMintOrderRequest {
920
+ network?: BitcoinNetworkType;
921
+ }
922
+ type runesEstimateMintResult = EstimateOrderResponse;
923
+ type RunesEstimateMint = MethodParamsAndResult<runesEstimateMintParams, runesEstimateMintResult>;
924
+ //#endregion
925
+ //#region src/request/types/runesMethods/estimateRbfOrder.d.ts
926
+ interface RunesEstimateRbfOrderParams extends RBFOrderRequest {
927
+ network?: BitcoinNetworkType;
928
+ }
929
+ type RunesEstimateRbfOrder = MethodParamsAndResult<RunesEstimateRbfOrderParams, RBFOrderResponse>;
930
+ //#endregion
931
+ //#region src/request/types/runesMethods/etch.d.ts
932
+ declare const runesEtchMethodName = "runes_etch";
933
+ declare const runesEtchParamsSchema: v.ObjectSchema<{
934
+ readonly runeName: v.StringSchema<undefined>;
935
+ readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
936
+ readonly symbol: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
937
+ readonly premine: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
938
+ readonly isMintable: v.BooleanSchema<undefined>;
939
+ readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
940
+ readonly destinationAddress: v.StringSchema<undefined>;
941
+ readonly refundAddress: v.StringSchema<undefined>;
942
+ readonly feeRate: v.NumberSchema<undefined>;
943
+ readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
944
+ readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
945
+ readonly terms: v.OptionalSchema<v.ObjectSchema<{
946
+ readonly amount: v.StringSchema<undefined>;
947
+ readonly cap: v.StringSchema<undefined>;
948
+ readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
949
+ readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
950
+ readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
951
+ readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
952
+ }, undefined>, undefined>;
953
+ readonly inscriptionDetails: v.OptionalSchema<v.ObjectSchema<{
954
+ readonly contentType: v.StringSchema<undefined>;
955
+ readonly contentBase64: v.StringSchema<undefined>;
956
+ }, undefined>, undefined>;
957
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
958
+ }, undefined>;
959
+ type RunesEtchParams = v.InferOutput<typeof runesEtchParamsSchema>;
960
+ declare const runesEtchResultSchema: v.ObjectSchema<{
961
+ readonly orderId: v.StringSchema<undefined>;
962
+ readonly fundTransactionId: v.StringSchema<undefined>;
963
+ readonly fundingAddress: v.StringSchema<undefined>;
964
+ }, undefined>;
965
+ type RunesEtchResult = v.InferOutput<typeof runesEtchResultSchema>;
966
+ declare const runesEtchRequestMessageSchema: v.ObjectSchema<{
967
+ readonly method: v.LiteralSchema<"runes_etch", undefined>;
968
+ readonly params: v.ObjectSchema<{
969
+ readonly runeName: v.StringSchema<undefined>;
970
+ readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
971
+ readonly symbol: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
972
+ readonly premine: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
973
+ readonly isMintable: v.BooleanSchema<undefined>;
974
+ readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
975
+ readonly destinationAddress: v.StringSchema<undefined>;
976
+ readonly refundAddress: v.StringSchema<undefined>;
977
+ readonly feeRate: v.NumberSchema<undefined>;
978
+ readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
979
+ readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
980
+ readonly terms: v.OptionalSchema<v.ObjectSchema<{
981
+ readonly amount: v.StringSchema<undefined>;
982
+ readonly cap: v.StringSchema<undefined>;
983
+ readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
984
+ readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
985
+ readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
986
+ readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
987
+ }, undefined>, undefined>;
988
+ readonly inscriptionDetails: v.OptionalSchema<v.ObjectSchema<{
989
+ readonly contentType: v.StringSchema<undefined>;
990
+ readonly contentBase64: v.StringSchema<undefined>;
991
+ }, undefined>, undefined>;
992
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
993
+ }, undefined>;
994
+ readonly id: v.StringSchema<undefined>;
995
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
996
+ }, undefined>;
997
+ type RunesEtchRequestMessage = v.InferOutput<typeof runesEtchRequestMessageSchema>;
998
+ type RunesEtch = MethodParamsAndResult<v.InferOutput<typeof runesEtchParamsSchema>, v.InferOutput<typeof runesEtchResultSchema>>;
999
+ //#endregion
1000
+ //#region src/request/types/runesMethods/getBalance.d.ts
1001
+ declare const runesGetBalanceMethodName = "runes_getBalance";
1002
+ declare const runesGetBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
1003
+ type RunesGetBalanceParams = v.InferOutput<typeof runesGetBalanceParamsSchema>;
1004
+ declare const runesGetBalanceResultSchema: v.ObjectSchema<{
1005
+ readonly balances: v.ArraySchema<v.ObjectSchema<{
1006
+ readonly runeName: v.StringSchema<undefined>;
1007
+ readonly amount: v.StringSchema<undefined>;
1008
+ readonly divisibility: v.NumberSchema<undefined>;
1009
+ readonly symbol: v.StringSchema<undefined>;
1010
+ readonly inscriptionId: v.NullishSchema<v.StringSchema<undefined>, undefined>;
1011
+ readonly spendableBalance: v.StringSchema<undefined>;
1012
+ }, undefined>, undefined>;
1013
+ }, undefined>;
1014
+ type RunesGetBalanceResult = v.InferOutput<typeof runesGetBalanceResultSchema>;
1015
+ declare const runesGetBalanceRequestMessageSchema: v.ObjectSchema<{
1016
+ readonly method: v.LiteralSchema<"runes_getBalance", undefined>;
1017
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
1018
+ readonly id: v.StringSchema<undefined>;
1019
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1020
+ }, undefined>;
1021
+ type runesGetBalanceRequestMessage = v.InferOutput<typeof runesGetBalanceRequestMessageSchema>;
1022
+ type RunesGetBalance = MethodParamsAndResult<RunesGetBalanceParams, RunesGetBalanceResult>;
1023
+ //#endregion
1024
+ //#region src/request/types/runesMethods/getOrder.d.ts
1025
+ interface RunesGetOrderParams extends GetOrderRequest {
1026
+ network?: BitcoinNetworkType;
1027
+ }
1028
+ type RunesGetOrder = MethodParamsAndResult<RunesGetOrderParams, GetOrderResponse>;
1029
+ //#endregion
1030
+ //#region src/request/types/runesMethods/mint.d.ts
1031
+ declare const runesMintMethodName = "runes_mint";
1032
+ declare const runesMintParamsSchema: v.ObjectSchema<{
1033
+ readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1034
+ readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1035
+ readonly destinationAddress: v.StringSchema<undefined>;
1036
+ readonly feeRate: v.NumberSchema<undefined>;
1037
+ readonly refundAddress: v.StringSchema<undefined>;
1038
+ readonly repeats: v.NumberSchema<undefined>;
1039
+ readonly runeName: v.StringSchema<undefined>;
1040
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
1041
+ }, undefined>;
1042
+ type RunesMintParams = v.InferOutput<typeof runesMintParamsSchema>;
1043
+ declare const runesMintResultSchema: v.ObjectSchema<{
1044
+ readonly orderId: v.StringSchema<undefined>;
1045
+ readonly fundTransactionId: v.StringSchema<undefined>;
1046
+ readonly fundingAddress: v.StringSchema<undefined>;
1047
+ }, undefined>;
1048
+ type RunesMintResult = v.InferOutput<typeof runesMintResultSchema>;
1049
+ declare const runesMintRequestMessageSchema: v.ObjectSchema<{
1050
+ readonly method: v.LiteralSchema<"runes_mint", undefined>;
1051
+ readonly params: v.ObjectSchema<{
1052
+ readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1053
+ readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1054
+ readonly destinationAddress: v.StringSchema<undefined>;
1055
+ readonly feeRate: v.NumberSchema<undefined>;
1056
+ readonly refundAddress: v.StringSchema<undefined>;
1057
+ readonly repeats: v.NumberSchema<undefined>;
1058
+ readonly runeName: v.StringSchema<undefined>;
1059
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
1060
+ }, undefined>;
1061
+ readonly id: v.StringSchema<undefined>;
1062
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1063
+ }, undefined>;
1064
+ type RunesMintRequestMessage = v.InferOutput<typeof runesMintRequestMessageSchema>;
1065
+ type RunesMint = MethodParamsAndResult<v.InferOutput<typeof runesMintParamsSchema>, v.InferOutput<typeof runesMintResultSchema>>;
1066
+ //#endregion
1067
+ //#region src/request/types/runesMethods/rbfOrder.d.ts
1068
+ interface RunesRbfOrderParams extends RBFOrderRequest {
1069
+ network?: BitcoinNetworkType;
1070
+ }
1071
+ interface RunesRbfOrderResult {
1072
+ orderId: string;
1073
+ fundRBFTransactionId: string;
1074
+ fundingAddress: string;
1075
+ }
1076
+ type RunesRbfOrder = MethodParamsAndResult<RunesRbfOrderParams, RunesRbfOrderResult>;
1077
+ //#endregion
1078
+ //#region src/request/types/runesMethods/transfer.d.ts
1079
+ declare const runesTransferMethodName = "runes_transfer";
1080
+ declare const runesTransferParamsSchema: v.ObjectSchema<{
1081
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
1082
+ readonly runeName: v.StringSchema<undefined>;
1083
+ readonly amount: v.StringSchema<undefined>;
1084
+ readonly address: v.StringSchema<undefined>;
1085
+ }, undefined>, undefined>;
1086
+ }, undefined>;
1087
+ type TransferRunesParams = v.InferOutput<typeof runesTransferParamsSchema>;
1088
+ declare const runesTransferResultSchema: v.ObjectSchema<{
1089
+ readonly txid: v.StringSchema<undefined>;
1090
+ }, undefined>;
1091
+ type RunesTransferResult = v.InferOutput<typeof runesTransferResultSchema>;
1092
+ declare const runesTransferRequestMessageSchema: v.ObjectSchema<{
1093
+ readonly method: v.LiteralSchema<"runes_transfer", undefined>;
1094
+ readonly params: v.ObjectSchema<{
1095
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
1096
+ readonly runeName: v.StringSchema<undefined>;
1097
+ readonly amount: v.StringSchema<undefined>;
1098
+ readonly address: v.StringSchema<undefined>;
1099
+ }, undefined>, undefined>;
1100
+ }, undefined>;
1101
+ readonly id: v.StringSchema<undefined>;
1102
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1103
+ }, undefined>;
1104
+ type RunesTransferRequestMessage = v.InferOutput<typeof runesTransferRequestMessageSchema>;
1105
+ type RunesTransfer = MethodParamsAndResult<TransferRunesParams, RunesTransferResult>;
1106
+ //#endregion
1107
+ //#region src/request/types/sparkMethods/flashnetMethods/getJwt.d.ts
1108
+ declare const sparkFlashnetGetJwtMethodName = "spark_flashnet_getJwt";
1109
+ declare const sparkFlashnetGetJwtParamsSchema: v.NullSchema<undefined>;
1110
+ type SparkFlashnetGetJwtParams = v.InferOutput<typeof sparkFlashnetGetJwtParamsSchema>;
1111
+ declare const sparkFlashnetGetJwtResultSchema: v.ObjectSchema<{
1112
+ /**
1113
+ * The JWT token for authenticated requests to the Flashnet API.
1114
+ */
1115
+ readonly jwt: v.StringSchema<undefined>;
1116
+ }, undefined>;
1117
+ type SparkFlashnetGetJwtResult = v.InferOutput<typeof sparkFlashnetGetJwtResultSchema>;
1118
+ declare const sparkFlashnetGetJwtRequestMessageSchema: v.ObjectSchema<{
1119
+ readonly method: v.LiteralSchema<"spark_flashnet_getJwt", undefined>;
1120
+ readonly params: v.NullSchema<undefined>;
1121
+ readonly id: v.StringSchema<undefined>;
1122
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1123
+ }, undefined>;
1124
+ type SparkFlashnetGetJwtRequestMessage = v.InferOutput<typeof sparkFlashnetGetJwtRequestMessageSchema>;
1125
+ type SparkFlashnetGetJwt = MethodParamsAndResult<SparkFlashnetGetJwtParams, SparkFlashnetGetJwtResult>;
1126
+ //#endregion
1127
+ //#region src/request/types/sparkMethods/flashnetMethods/intents/addLiquidity.d.ts
1128
+ declare const sparkFlashnetAddLiquidityIntentSchema: v.ObjectSchema<{
1129
+ readonly type: v.LiteralSchema<"addLiquidity", undefined>;
1130
+ readonly data: v.ObjectSchema<{
1131
+ readonly userPublicKey: v.StringSchema<undefined>;
1132
+ readonly poolId: v.StringSchema<undefined>;
1133
+ readonly assetAAmount: v.StringSchema<undefined>;
1134
+ readonly assetBAmount: v.StringSchema<undefined>;
1135
+ readonly assetAMinAmountIn: v.StringSchema<undefined>;
1136
+ readonly assetBMinAmountIn: v.StringSchema<undefined>;
1137
+ readonly assetATransferId: v.StringSchema<undefined>;
1138
+ readonly assetBTransferId: v.StringSchema<undefined>;
1139
+ readonly nonce: v.StringSchema<undefined>;
1140
+ }, undefined>;
1141
+ }, undefined>;
1142
+ //#endregion
1143
+ //#region src/request/types/sparkMethods/flashnetMethods/intents/clawback.d.ts
1144
+ declare const sparkFlashnetClawbackIntentSchema: v.ObjectSchema<{
1145
+ readonly type: v.LiteralSchema<"clawback", undefined>;
1146
+ readonly data: v.ObjectSchema<{
1147
+ readonly senderPublicKey: v.StringSchema<undefined>;
1148
+ readonly sparkTransferId: v.StringSchema<undefined>;
1149
+ readonly lpIdentityPublicKey: v.StringSchema<undefined>;
1150
+ readonly nonce: v.StringSchema<undefined>;
1151
+ }, undefined>;
1152
+ }, undefined>;
1153
+ //#endregion
1154
+ //#region src/request/types/sparkMethods/flashnetMethods/intents/confirmInitialDeposit.d.ts
1155
+ declare const sparkFlashnetConfirmInitialDepositIntentSchema: v.ObjectSchema<{
1156
+ readonly type: v.LiteralSchema<"confirmInitialDeposit", undefined>;
1157
+ readonly data: v.ObjectSchema<{
1158
+ readonly poolId: v.StringSchema<undefined>;
1159
+ readonly assetASparkTransferId: v.StringSchema<undefined>;
1160
+ readonly poolOwnerPublicKey: v.StringSchema<undefined>;
1161
+ readonly nonce: v.StringSchema<undefined>;
1162
+ }, undefined>;
1163
+ }, undefined>;
1164
+ //#endregion
1165
+ //#region src/request/types/sparkMethods/flashnetMethods/intents/createConstantProductPool.d.ts
1166
+ declare const sparkFlashnetCreateConstantProductPoolIntentSchema: v.ObjectSchema<{
1167
+ readonly type: v.LiteralSchema<"createConstantProductPool", undefined>;
1168
+ readonly data: v.ObjectSchema<{
1169
+ readonly poolOwnerPublicKey: v.StringSchema<undefined>;
1170
+ readonly assetAAddress: v.StringSchema<undefined>;
1171
+ readonly assetBAddress: v.StringSchema<undefined>;
1172
+ readonly lpFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1173
+ readonly totalHostFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1174
+ readonly nonce: v.StringSchema<undefined>;
1175
+ }, undefined>;
1176
+ }, undefined>;
1177
+ //#endregion
1178
+ //#region src/request/types/sparkMethods/flashnetMethods/intents/createSingleSidedPool.d.ts
1179
+ declare const sparkFlashnetCreateSingleSidedPoolIntentSchema: v.ObjectSchema<{
1180
+ readonly type: v.LiteralSchema<"createSingleSidedPool", undefined>;
1181
+ readonly data: v.ObjectSchema<{
1182
+ readonly assetAAddress: v.StringSchema<undefined>;
1183
+ readonly assetBAddress: v.StringSchema<undefined>;
1184
+ readonly assetAInitialReserve: v.StringSchema<undefined>;
1185
+ readonly virtualReserveA: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1186
+ readonly virtualReserveB: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1187
+ readonly threshold: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1188
+ readonly lpFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1189
+ readonly totalHostFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1190
+ readonly poolOwnerPublicKey: v.StringSchema<undefined>;
1191
+ readonly nonce: v.StringSchema<undefined>;
1192
+ }, undefined>;
1193
+ }, undefined>;
1194
+ //#endregion
1195
+ //#region src/request/types/sparkMethods/flashnetMethods/intents/removeLiquidity.d.ts
1196
+ declare const sparkFlashnetRemoveLiquidityIntentSchema: v.ObjectSchema<{
1197
+ readonly type: v.LiteralSchema<"removeLiquidity", undefined>;
1198
+ readonly data: v.ObjectSchema<{
1199
+ readonly userPublicKey: v.StringSchema<undefined>;
1200
+ readonly poolId: v.StringSchema<undefined>;
1201
+ readonly lpTokensToRemove: v.StringSchema<undefined>;
1202
+ readonly nonce: v.StringSchema<undefined>;
1203
+ }, undefined>;
1204
+ }, undefined>;
1205
+ //#endregion
1206
+ //#region src/request/types/sparkMethods/flashnetMethods/intents/routeSwap.d.ts
1207
+ declare const sparkFlashnetRouteSwapIntentSchema: v.ObjectSchema<{
1208
+ readonly type: v.LiteralSchema<"executeRouteSwap", undefined>;
1209
+ readonly data: v.ObjectSchema<{
1210
+ readonly userPublicKey: v.StringSchema<undefined>;
1211
+ readonly initialSparkTransferId: v.StringSchema<undefined>;
1212
+ readonly hops: v.ArraySchema<v.ObjectSchema<{
1213
+ readonly poolId: v.StringSchema<undefined>;
1214
+ readonly inputAssetAddress: v.StringSchema<undefined>;
1215
+ readonly outputAssetAddress: v.StringSchema<undefined>;
1216
+ readonly hopIntegratorFeeRateBps: v.OptionalSchema<v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>, undefined>;
1217
+ }, undefined>, undefined>;
1218
+ readonly inputAmount: v.StringSchema<undefined>;
1219
+ readonly maxRouteSlippageBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1220
+ readonly minAmountOut: v.StringSchema<undefined>;
1221
+ readonly defaultIntegratorFeeRateBps: v.OptionalSchema<v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>, undefined>;
1222
+ readonly nonce: v.StringSchema<undefined>;
1223
+ }, undefined>;
1224
+ }, undefined>;
1225
+ //#endregion
1226
+ //#region src/request/types/sparkMethods/flashnetMethods/intents/swap.d.ts
1227
+ declare const sparkFlashnetSwapIntentSchema: v.ObjectSchema<{
1228
+ readonly type: v.LiteralSchema<"executeSwap", undefined>;
1229
+ readonly data: v.ObjectSchema<{
1230
+ readonly userPublicKey: v.StringSchema<undefined>;
1231
+ readonly poolId: v.StringSchema<undefined>;
1232
+ readonly transferId: v.StringSchema<undefined>;
1233
+ readonly assetInAddress: v.StringSchema<undefined>;
1234
+ readonly assetOutAddress: v.StringSchema<undefined>;
1235
+ readonly amountIn: v.StringSchema<undefined>;
1236
+ readonly maxSlippageBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1237
+ readonly minAmountOut: v.StringSchema<undefined>;
1238
+ readonly totalIntegratorFeeRateBps: v.OptionalSchema<v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>, undefined>;
1239
+ readonly nonce: v.StringSchema<undefined>;
1240
+ }, undefined>;
1241
+ }, undefined>;
1242
+ //#endregion
1243
+ //#region src/request/types/sparkMethods/flashnetMethods/signIntent.d.ts
1244
+ declare const sparkFlashnetSignIntentMethodName = "spark_flashnet_signIntent";
1245
+ declare const sparkFlashnetSignIntentParamsSchema: v.UnionSchema<[v.ObjectSchema<{
1246
+ readonly type: v.LiteralSchema<"executeSwap", undefined>;
1247
+ readonly data: v.ObjectSchema<{
1248
+ readonly userPublicKey: v.StringSchema<undefined>;
1249
+ readonly poolId: v.StringSchema<undefined>;
1250
+ readonly transferId: v.StringSchema<undefined>;
1251
+ readonly assetInAddress: v.StringSchema<undefined>;
1252
+ readonly assetOutAddress: v.StringSchema<undefined>;
1253
+ readonly amountIn: v.StringSchema<undefined>;
1254
+ readonly maxSlippageBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1255
+ readonly minAmountOut: v.StringSchema<undefined>;
1256
+ readonly totalIntegratorFeeRateBps: v.OptionalSchema<v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>, undefined>;
1257
+ readonly nonce: v.StringSchema<undefined>;
1258
+ }, undefined>;
1259
+ }, undefined>, v.ObjectSchema<{
1260
+ readonly type: v.LiteralSchema<"executeRouteSwap", undefined>;
1261
+ readonly data: v.ObjectSchema<{
1262
+ readonly userPublicKey: v.StringSchema<undefined>;
1263
+ readonly initialSparkTransferId: v.StringSchema<undefined>;
1264
+ readonly hops: v.ArraySchema<v.ObjectSchema<{
1265
+ readonly poolId: v.StringSchema<undefined>;
1266
+ readonly inputAssetAddress: v.StringSchema<undefined>;
1267
+ readonly outputAssetAddress: v.StringSchema<undefined>;
1268
+ readonly hopIntegratorFeeRateBps: v.OptionalSchema<v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>, undefined>;
1269
+ }, undefined>, undefined>;
1270
+ readonly inputAmount: v.StringSchema<undefined>;
1271
+ readonly maxRouteSlippageBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1272
+ readonly minAmountOut: v.StringSchema<undefined>;
1273
+ readonly defaultIntegratorFeeRateBps: v.OptionalSchema<v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>, undefined>;
1274
+ readonly nonce: v.StringSchema<undefined>;
1275
+ }, undefined>;
1276
+ }, undefined>, v.ObjectSchema<{
1277
+ readonly type: v.LiteralSchema<"addLiquidity", undefined>;
1278
+ readonly data: v.ObjectSchema<{
1279
+ readonly userPublicKey: v.StringSchema<undefined>;
1280
+ readonly poolId: v.StringSchema<undefined>;
1281
+ readonly assetAAmount: v.StringSchema<undefined>;
1282
+ readonly assetBAmount: v.StringSchema<undefined>;
1283
+ readonly assetAMinAmountIn: v.StringSchema<undefined>;
1284
+ readonly assetBMinAmountIn: v.StringSchema<undefined>;
1285
+ readonly assetATransferId: v.StringSchema<undefined>;
1286
+ readonly assetBTransferId: v.StringSchema<undefined>;
1287
+ readonly nonce: v.StringSchema<undefined>;
1288
+ }, undefined>;
1289
+ }, undefined>, v.ObjectSchema<{
1290
+ readonly type: v.LiteralSchema<"clawback", undefined>;
1291
+ readonly data: v.ObjectSchema<{
1292
+ readonly senderPublicKey: v.StringSchema<undefined>;
1293
+ readonly sparkTransferId: v.StringSchema<undefined>;
1294
+ readonly lpIdentityPublicKey: v.StringSchema<undefined>;
1295
+ readonly nonce: v.StringSchema<undefined>;
1296
+ }, undefined>;
1297
+ }, undefined>, v.ObjectSchema<{
1298
+ readonly type: v.LiteralSchema<"confirmInitialDeposit", undefined>;
1299
+ readonly data: v.ObjectSchema<{
1300
+ readonly poolId: v.StringSchema<undefined>;
1301
+ readonly assetASparkTransferId: v.StringSchema<undefined>;
1302
+ readonly poolOwnerPublicKey: v.StringSchema<undefined>;
1303
+ readonly nonce: v.StringSchema<undefined>;
1304
+ }, undefined>;
1305
+ }, undefined>, v.ObjectSchema<{
1306
+ readonly type: v.LiteralSchema<"createConstantProductPool", undefined>;
1307
+ readonly data: v.ObjectSchema<{
1308
+ readonly poolOwnerPublicKey: v.StringSchema<undefined>;
1309
+ readonly assetAAddress: v.StringSchema<undefined>;
1310
+ readonly assetBAddress: v.StringSchema<undefined>;
1311
+ readonly lpFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1312
+ readonly totalHostFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1313
+ readonly nonce: v.StringSchema<undefined>;
1314
+ }, undefined>;
1315
+ }, undefined>, v.ObjectSchema<{
1316
+ readonly type: v.LiteralSchema<"createSingleSidedPool", undefined>;
1317
+ readonly data: v.ObjectSchema<{
1318
+ readonly assetAAddress: v.StringSchema<undefined>;
1319
+ readonly assetBAddress: v.StringSchema<undefined>;
1320
+ readonly assetAInitialReserve: v.StringSchema<undefined>;
1321
+ readonly virtualReserveA: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1322
+ readonly virtualReserveB: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1323
+ readonly threshold: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1324
+ readonly lpFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1325
+ readonly totalHostFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1326
+ readonly poolOwnerPublicKey: v.StringSchema<undefined>;
1327
+ readonly nonce: v.StringSchema<undefined>;
1328
+ }, undefined>;
1329
+ }, undefined>, v.ObjectSchema<{
1330
+ readonly type: v.LiteralSchema<"removeLiquidity", undefined>;
1331
+ readonly data: v.ObjectSchema<{
1332
+ readonly userPublicKey: v.StringSchema<undefined>;
1333
+ readonly poolId: v.StringSchema<undefined>;
1334
+ readonly lpTokensToRemove: v.StringSchema<undefined>;
1335
+ readonly nonce: v.StringSchema<undefined>;
1336
+ }, undefined>;
1337
+ }, undefined>], undefined>;
1338
+ type SparkFlashnetSignIntentParams = v.InferOutput<typeof sparkFlashnetSignIntentParamsSchema>;
1339
+ declare const sparkFlashnetSignIntentResultSchema: v.ObjectSchema<{
1340
+ /**
1341
+ * The signed intent as a hex string.
1342
+ */
1343
+ readonly signature: v.StringSchema<undefined>;
1344
+ }, undefined>;
1345
+ type SparkFlashnetSignIntentResult = v.InferOutput<typeof sparkFlashnetSignIntentResultSchema>;
1346
+ declare const sparkFlashnetSignIntentRequestMessageSchema: v.ObjectSchema<{
1347
+ readonly method: v.LiteralSchema<"spark_flashnet_signIntent", undefined>;
1348
+ readonly params: v.UnionSchema<[v.ObjectSchema<{
1349
+ readonly type: v.LiteralSchema<"executeSwap", undefined>;
1350
+ readonly data: v.ObjectSchema<{
1351
+ readonly userPublicKey: v.StringSchema<undefined>;
1352
+ readonly poolId: v.StringSchema<undefined>;
1353
+ readonly transferId: v.StringSchema<undefined>;
1354
+ readonly assetInAddress: v.StringSchema<undefined>;
1355
+ readonly assetOutAddress: v.StringSchema<undefined>;
1356
+ readonly amountIn: v.StringSchema<undefined>;
1357
+ readonly maxSlippageBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1358
+ readonly minAmountOut: v.StringSchema<undefined>;
1359
+ readonly totalIntegratorFeeRateBps: v.OptionalSchema<v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>, undefined>;
1360
+ readonly nonce: v.StringSchema<undefined>;
1361
+ }, undefined>;
1362
+ }, undefined>, v.ObjectSchema<{
1363
+ readonly type: v.LiteralSchema<"executeRouteSwap", undefined>;
1364
+ readonly data: v.ObjectSchema<{
1365
+ readonly userPublicKey: v.StringSchema<undefined>;
1366
+ readonly initialSparkTransferId: v.StringSchema<undefined>;
1367
+ readonly hops: v.ArraySchema<v.ObjectSchema<{
1368
+ readonly poolId: v.StringSchema<undefined>;
1369
+ readonly inputAssetAddress: v.StringSchema<undefined>;
1370
+ readonly outputAssetAddress: v.StringSchema<undefined>;
1371
+ readonly hopIntegratorFeeRateBps: v.OptionalSchema<v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>, undefined>;
1372
+ }, undefined>, undefined>;
1373
+ readonly inputAmount: v.StringSchema<undefined>;
1374
+ readonly maxRouteSlippageBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1375
+ readonly minAmountOut: v.StringSchema<undefined>;
1376
+ readonly defaultIntegratorFeeRateBps: v.OptionalSchema<v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>, undefined>;
1377
+ readonly nonce: v.StringSchema<undefined>;
1378
+ }, undefined>;
1379
+ }, undefined>, v.ObjectSchema<{
1380
+ readonly type: v.LiteralSchema<"addLiquidity", undefined>;
1381
+ readonly data: v.ObjectSchema<{
1382
+ readonly userPublicKey: v.StringSchema<undefined>;
1383
+ readonly poolId: v.StringSchema<undefined>;
1384
+ readonly assetAAmount: v.StringSchema<undefined>;
1385
+ readonly assetBAmount: v.StringSchema<undefined>;
1386
+ readonly assetAMinAmountIn: v.StringSchema<undefined>;
1387
+ readonly assetBMinAmountIn: v.StringSchema<undefined>;
1388
+ readonly assetATransferId: v.StringSchema<undefined>;
1389
+ readonly assetBTransferId: v.StringSchema<undefined>;
1390
+ readonly nonce: v.StringSchema<undefined>;
1391
+ }, undefined>;
1392
+ }, undefined>, v.ObjectSchema<{
1393
+ readonly type: v.LiteralSchema<"clawback", undefined>;
1394
+ readonly data: v.ObjectSchema<{
1395
+ readonly senderPublicKey: v.StringSchema<undefined>;
1396
+ readonly sparkTransferId: v.StringSchema<undefined>;
1397
+ readonly lpIdentityPublicKey: v.StringSchema<undefined>;
1398
+ readonly nonce: v.StringSchema<undefined>;
1399
+ }, undefined>;
1400
+ }, undefined>, v.ObjectSchema<{
1401
+ readonly type: v.LiteralSchema<"confirmInitialDeposit", undefined>;
1402
+ readonly data: v.ObjectSchema<{
1403
+ readonly poolId: v.StringSchema<undefined>;
1404
+ readonly assetASparkTransferId: v.StringSchema<undefined>;
1405
+ readonly poolOwnerPublicKey: v.StringSchema<undefined>;
1406
+ readonly nonce: v.StringSchema<undefined>;
1407
+ }, undefined>;
1408
+ }, undefined>, v.ObjectSchema<{
1409
+ readonly type: v.LiteralSchema<"createConstantProductPool", undefined>;
1410
+ readonly data: v.ObjectSchema<{
1411
+ readonly poolOwnerPublicKey: v.StringSchema<undefined>;
1412
+ readonly assetAAddress: v.StringSchema<undefined>;
1413
+ readonly assetBAddress: v.StringSchema<undefined>;
1414
+ readonly lpFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1415
+ readonly totalHostFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1416
+ readonly nonce: v.StringSchema<undefined>;
1417
+ }, undefined>;
1418
+ }, undefined>, v.ObjectSchema<{
1419
+ readonly type: v.LiteralSchema<"createSingleSidedPool", undefined>;
1420
+ readonly data: v.ObjectSchema<{
1421
+ readonly assetAAddress: v.StringSchema<undefined>;
1422
+ readonly assetBAddress: v.StringSchema<undefined>;
1423
+ readonly assetAInitialReserve: v.StringSchema<undefined>;
1424
+ readonly virtualReserveA: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1425
+ readonly virtualReserveB: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1426
+ readonly threshold: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1427
+ readonly lpFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1428
+ readonly totalHostFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1429
+ readonly poolOwnerPublicKey: v.StringSchema<undefined>;
1430
+ readonly nonce: v.StringSchema<undefined>;
1431
+ }, undefined>;
1432
+ }, undefined>, v.ObjectSchema<{
1433
+ readonly type: v.LiteralSchema<"removeLiquidity", undefined>;
1434
+ readonly data: v.ObjectSchema<{
1435
+ readonly userPublicKey: v.StringSchema<undefined>;
1436
+ readonly poolId: v.StringSchema<undefined>;
1437
+ readonly lpTokensToRemove: v.StringSchema<undefined>;
1438
+ readonly nonce: v.StringSchema<undefined>;
1439
+ }, undefined>;
1440
+ }, undefined>], undefined>;
1441
+ readonly id: v.StringSchema<undefined>;
1442
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1443
+ }, undefined>;
1444
+ type SparkFlashnetSignIntentRequestMessage = v.InferOutput<typeof sparkFlashnetSignIntentRequestMessageSchema>;
1445
+ type SparkFlashnetSignIntent = MethodParamsAndResult<SparkFlashnetSignIntentParams, SparkFlashnetSignIntentResult>;
1446
+ //#endregion
1447
+ //#region src/request/types/sparkMethods/flashnetMethods/signStructuredMessage.d.ts
1448
+ declare const sparkFlashnetSignStructuredMessageMethodName = "spark_flashnet_signStructuredMessage";
1449
+ declare const sparkFlashnetSignStructuredMessageParamsSchema: v.ObjectSchema<{
1450
+ readonly message: v.StringSchema<undefined>;
1451
+ }, undefined>;
1452
+ type SparkFlashnetSignStructuredMessageParams = v.InferOutput<typeof sparkFlashnetSignStructuredMessageParamsSchema>;
1453
+ declare const sparkFlashnetSignStructuredMessageResultSchema: v.ObjectSchema<{
1454
+ readonly message: v.StringSchema<undefined>;
1455
+ readonly signature: v.StringSchema<undefined>;
1456
+ }, undefined>;
1457
+ type SparkFlashnetSignStructuredMessageResult = v.InferOutput<typeof sparkFlashnetSignStructuredMessageResultSchema>;
1458
+ declare const sparkFlashnetSignStructuredMessageRequestMessageSchema: v.ObjectSchema<{
1459
+ readonly method: v.LiteralSchema<"spark_flashnet_signStructuredMessage", undefined>;
1460
+ readonly params: v.ObjectSchema<{
1461
+ readonly message: v.StringSchema<undefined>;
1462
+ }, undefined>;
1463
+ readonly id: v.StringSchema<undefined>;
1464
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1465
+ }, undefined>;
1466
+ type SparkFlashnetSignStructuredMessageRequestMessage = v.InferOutput<typeof sparkFlashnetSignStructuredMessageRequestMessageSchema>;
1467
+ type SparkFlashnetSignStructuredMessage = MethodParamsAndResult<SparkFlashnetSignStructuredMessageParams, SparkFlashnetSignStructuredMessageResult>;
1468
+ //#endregion
1469
+ //#region src/request/types/sparkMethods/getAddresses.d.ts
1470
+ declare const sparkGetAddressesMethodName = "spark_getAddresses";
1471
+ declare const sparkGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
1472
+ /**
1473
+ * A message to be displayed to the user in the request prompt.
1474
+ */
1475
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1476
+ }, undefined>, undefined>;
1477
+ type SparkGetAddressesParams = v.InferOutput<typeof sparkGetAddressesParamsSchema>;
1478
+ declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
1479
+ /**
1480
+ * The addresses generated for the given purposes.
1481
+ */
1482
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1483
+ readonly address: v.StringSchema<undefined>;
1484
+ readonly publicKey: v.StringSchema<undefined>;
1485
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1486
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1487
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
1488
+ }, undefined>, undefined>;
1489
+ readonly network: v.ObjectSchema<{
1490
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
1491
+ readonly electrsApiUrl: v.StringSchema<undefined>;
1492
+ readonly id: v.StringSchema<undefined>;
1493
+ readonly name: v.StringSchema<undefined>;
1494
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
1495
+ readonly chain: v.LiteralSchema<"spark", undefined>;
1496
+ }, undefined>;
1497
+ }, undefined>;
1498
+ type SparkGetAddressesResult = v.InferOutput<typeof sparkGetAddressesResultSchema>;
1499
+ declare const sparkGetAddressesRequestMessageSchema: v.ObjectSchema<{
1500
+ readonly method: v.LiteralSchema<"spark_getAddresses", undefined>;
1501
+ readonly params: v.NullishSchema<v.ObjectSchema<{
1502
+ /**
1503
+ * A message to be displayed to the user in the request prompt.
1504
+ */
1505
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1506
+ }, undefined>, undefined>;
1507
+ readonly id: v.StringSchema<undefined>;
1508
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1509
+ }, undefined>;
1510
+ type SparkGetAddressesRequestMessage = v.InferOutput<typeof sparkGetAddressesRequestMessageSchema>;
1511
+ type SparkGetAddresses = MethodParamsAndResult<v.InferOutput<typeof sparkGetAddressesParamsSchema>, v.InferOutput<typeof sparkGetAddressesResultSchema>>;
1512
+ //#endregion
1513
+ //#region src/request/types/sparkMethods/getBalance.d.ts
1514
+ declare const sparkGetBalanceMethodName = "spark_getBalance";
1515
+ declare const sparkGetBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
1516
+ type SparkGetBalanceParams = v.InferOutput<typeof sparkGetBalanceParamsSchema>;
1517
+ declare const sparkGetBalanceResultSchema: v.ObjectSchema<{
1518
+ /**
1519
+ * The Spark Bitcoin address balance in sats in string form.
1520
+ */
1521
+ readonly balance: v.StringSchema<undefined>;
1522
+ readonly tokenBalances: v.ArraySchema<v.ObjectSchema<{
1523
+ readonly balance: v.StringSchema<undefined>;
1524
+ readonly tokenMetadata: v.ObjectSchema<{
1525
+ readonly tokenIdentifier: v.StringSchema<undefined>;
1526
+ readonly tokenName: v.StringSchema<undefined>;
1527
+ readonly tokenTicker: v.StringSchema<undefined>;
1528
+ readonly decimals: v.NumberSchema<undefined>;
1529
+ readonly maxSupply: v.StringSchema<undefined>;
1530
+ }, undefined>;
1531
+ }, undefined>, undefined>;
1532
+ }, undefined>;
1533
+ type SparkGetBalanceResult = v.InferOutput<typeof sparkGetBalanceResultSchema>;
1534
+ declare const sparkGetBalanceRequestMessageSchema: v.ObjectSchema<{
1535
+ readonly method: v.LiteralSchema<"spark_getBalance", undefined>;
1536
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
1537
+ readonly id: v.StringSchema<undefined>;
1538
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1539
+ }, undefined>;
1540
+ type SparkGetBalanceRequestMessage = v.InferOutput<typeof sparkGetBalanceRequestMessageSchema>;
1541
+ type SparkGetBalance = MethodParamsAndResult<SparkGetBalanceParams, SparkGetBalanceResult>;
1542
+ //#endregion
1543
+ //#region src/request/types/sparkMethods/signMessage.d.ts
1544
+ declare const sparkSignMessageMethodName = "spark_signMessage";
1545
+ declare const sparkSignMessageParamsSchema: v.ObjectSchema<{
1546
+ /**
1547
+ * The message to sign. The message should only consist of valid UTF-8 characters.
1548
+ */
1549
+ readonly message: v.StringSchema<undefined>;
1550
+ }, undefined>;
1551
+ type SparkSignMessageParams = v.InferOutput<typeof sparkSignMessageParamsSchema>;
1552
+ declare const sparkSignMessageResultSchema: v.ObjectSchema<{
1553
+ /**
1554
+ * The signature, encoded in base64, of the message hash.
1555
+ *
1556
+ * Note: When signing, the message is decoded into a byte array,
1557
+ * and the resulting byte array is hashed with SHA256 before signing
1558
+ * with the private key.
1559
+ */
1560
+ readonly signature: v.StringSchema<undefined>;
1561
+ }, undefined>;
1562
+ type SparkSignMessageResult = v.InferOutput<typeof sparkSignMessageResultSchema>;
1563
+ declare const sparkSignMessageRequestMessageSchema: v.ObjectSchema<{
1564
+ readonly method: v.LiteralSchema<"spark_signMessage", undefined>;
1565
+ readonly params: v.ObjectSchema<{
1566
+ /**
1567
+ * The message to sign. The message should only consist of valid UTF-8 characters.
1568
+ */
1569
+ readonly message: v.StringSchema<undefined>;
1570
+ }, undefined>;
1571
+ readonly id: v.StringSchema<undefined>;
1572
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1573
+ }, undefined>;
1574
+ type SparkSignMessageRequestMessage = v.InferOutput<typeof sparkSignMessageRequestMessageSchema>;
1575
+ type SparkSignMessage = MethodParamsAndResult<SparkSignMessageParams, SparkSignMessageResult>;
1576
+ //#endregion
1577
+ //#region src/request/types/sparkMethods/transfer.d.ts
1578
+ declare const sparkTransferMethodName = "spark_transfer";
1579
+ declare const sparkTransferParamsSchema: v.ObjectSchema<{
1580
+ /**
1581
+ * Amount of SATS to transfer as a string or number.
1582
+ */
1583
+ readonly amountSats: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1584
+ /**
1585
+ * The recipient's spark address.
1586
+ */
1587
+ readonly receiverSparkAddress: v.StringSchema<undefined>;
1588
+ }, undefined>;
1589
+ type SparkTransferParams = v.InferOutput<typeof sparkTransferParamsSchema>;
1590
+ declare const sparkTransferResultSchema: v.ObjectSchema<{
1591
+ /**
1592
+ * The ID of the transaction.
1593
+ */
1594
+ readonly id: v.StringSchema<undefined>;
1595
+ }, undefined>;
1596
+ type SparkTransferResult = v.InferOutput<typeof sparkTransferResultSchema>;
1597
+ declare const sparkTransferRequestMessageSchema: v.ObjectSchema<{
1598
+ readonly method: v.LiteralSchema<"spark_transfer", undefined>;
1599
+ readonly params: v.ObjectSchema<{
1600
+ /**
1601
+ * Amount of SATS to transfer as a string or number.
1602
+ */
1603
+ readonly amountSats: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1604
+ /**
1605
+ * The recipient's spark address.
1606
+ */
1607
+ readonly receiverSparkAddress: v.StringSchema<undefined>;
1608
+ }, undefined>;
1609
+ readonly id: v.StringSchema<undefined>;
1610
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1611
+ }, undefined>;
1612
+ type SparkTransferRequestMessage = v.InferOutput<typeof sparkTransferRequestMessageSchema>;
1613
+ type SparkTransfer = MethodParamsAndResult<SparkTransferParams, SparkTransferResult>;
1614
+ //#endregion
1615
+ //#region src/request/types/sparkMethods/transferToken.d.ts
1616
+ declare const sparkTransferTokenMethodName = "spark_transferToken";
1617
+ declare const sparkTransferTokenParamsSchema: v.ObjectSchema<{
1618
+ /**
1619
+ * Amount of units of the token to transfer as a string or number.
1620
+ */
1621
+ readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1622
+ /**
1623
+ * The Bech32m token identifier.
1624
+ */
1625
+ readonly tokenIdentifier: v.StringSchema<undefined>;
1626
+ /**
1627
+ * The recipient's spark address.
1628
+ */
1629
+ readonly receiverSparkAddress: v.StringSchema<undefined>;
1630
+ }, undefined>;
1631
+ type SparkTransferTokenParams = v.InferOutput<typeof sparkTransferTokenParamsSchema>;
1632
+ declare const sparkTransferTokenResultSchema: v.ObjectSchema<{
1633
+ /**
1634
+ * The ID of the transaction.
1635
+ */
1636
+ readonly id: v.StringSchema<undefined>;
1637
+ }, undefined>;
1638
+ type SparkTransferTokenResult = v.InferOutput<typeof sparkTransferTokenResultSchema>;
1639
+ declare const sparkTransferTokenRequestMessageSchema: v.ObjectSchema<{
1640
+ readonly method: v.LiteralSchema<"spark_transferToken", undefined>;
1641
+ readonly params: v.ObjectSchema<{
1642
+ /**
1643
+ * Amount of units of the token to transfer as a string or number.
1644
+ */
1645
+ readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1646
+ /**
1647
+ * The Bech32m token identifier.
1648
+ */
1649
+ readonly tokenIdentifier: v.StringSchema<undefined>;
1650
+ /**
1651
+ * The recipient's spark address.
1652
+ */
1653
+ readonly receiverSparkAddress: v.StringSchema<undefined>;
1654
+ }, undefined>;
1655
+ readonly id: v.StringSchema<undefined>;
1656
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1657
+ }, undefined>;
1658
+ type SparkTransferTokenRequestMessage = v.InferOutput<typeof sparkTransferTokenRequestMessageSchema>;
1659
+ type SparkTransferToken = MethodParamsAndResult<SparkTransferTokenParams, SparkTransferTokenResult>;
1660
+ //#endregion
1661
+ //#region src/request/types/stxMethods/callContract.d.ts
1662
+ declare const stxCallContractMethodName = "stx_callContract";
1663
+ declare const stxCallContractParamsSchema: v.ObjectSchema<{
1664
+ /**
1665
+ * The contract principal.
1666
+ *
1667
+ * E.g. `"SPKE...GD5C.my-contract"`
1668
+ */
1669
+ readonly contract: v.StringSchema<undefined>;
1670
+ /**
1671
+ * The name of the function to call.
1672
+ *
1673
+ * Note: spec changes ongoing,
1674
+ * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
1675
+ */
1676
+ readonly functionName: v.StringSchema<undefined>;
1677
+ /**
1678
+ * @deprecated in favor of `functionArgs` for @stacks/connect compatibility
1679
+ */
1680
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1681
+ /**
1682
+ * The function's arguments. The arguments are expected to be hex-encoded
1683
+ * strings of Clarity values.
1684
+ *
1685
+ * To convert Clarity values to their hex representation, the `cvToHex`
1686
+ * helper from the `@stacks/transactions` package may be helpful.
1687
+ *
1688
+ * ```js
1689
+ * import { cvToHex } from '@stacks/transactions';
1690
+ *
1691
+ * const functionArgs = [someClarityValue1, someClarityValue2];
1692
+ * const hexArgs = functionArgs.map(cvToHex);
1693
+ * ```
1694
+ */
1695
+ readonly functionArgs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1696
+ /**
1697
+ * The post conditions to apply to the contract call.
1698
+ */
1699
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1700
+ /**
1701
+ * The mode to apply to the post conditions.
1702
+ */
1703
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, undefined>;
1704
+ }, undefined>;
1705
+ type StxCallContractParams = v.InferOutput<typeof stxCallContractParamsSchema>;
1706
+ declare const stxCallContractResultSchema: v.ObjectSchema<{
1707
+ /**
1708
+ * The ID of the transaction.
1709
+ */
1710
+ readonly txid: v.StringSchema<undefined>;
1711
+ /**
1712
+ * A Stacks transaction as a hex-encoded string.
1713
+ */
1714
+ readonly transaction: v.StringSchema<undefined>;
1715
+ }, undefined>;
1716
+ type StxCallContractResult = v.InferOutput<typeof stxCallContractResultSchema>;
1717
+ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
1718
+ readonly method: v.LiteralSchema<"stx_callContract", undefined>;
1719
+ readonly params: v.ObjectSchema<{
1720
+ /**
1721
+ * The contract principal.
1722
+ *
1723
+ * E.g. `"SPKE...GD5C.my-contract"`
1724
+ */
1725
+ readonly contract: v.StringSchema<undefined>;
1726
+ /**
1727
+ * The name of the function to call.
1728
+ *
1729
+ * Note: spec changes ongoing,
1730
+ * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
1731
+ */
1732
+ readonly functionName: v.StringSchema<undefined>;
1733
+ /**
1734
+ * @deprecated in favor of `functionArgs` for @stacks/connect compatibility
1735
+ */
1736
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1737
+ /**
1738
+ * The function's arguments. The arguments are expected to be hex-encoded
1739
+ * strings of Clarity values.
1740
+ *
1741
+ * To convert Clarity values to their hex representation, the `cvToHex`
1742
+ * helper from the `@stacks/transactions` package may be helpful.
1743
+ *
1744
+ * ```js
1745
+ * import { cvToHex } from '@stacks/transactions';
1746
+ *
1747
+ * const functionArgs = [someClarityValue1, someClarityValue2];
1748
+ * const hexArgs = functionArgs.map(cvToHex);
1749
+ * ```
1750
+ */
1751
+ readonly functionArgs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1752
+ /**
1753
+ * The post conditions to apply to the contract call.
1754
+ */
1755
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1756
+ /**
1757
+ * The mode to apply to the post conditions.
1758
+ */
1759
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, undefined>;
1760
+ }, undefined>;
1761
+ readonly id: v.StringSchema<undefined>;
1762
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1763
+ }, undefined>;
1764
+ type StxCallContractRequestMessage = v.InferOutput<typeof stxCallContractRequestMessageSchema>;
1765
+ type StxCallContract = MethodParamsAndResult<StxCallContractParams, StxCallContractResult>;
1766
+ //#endregion
1767
+ //#region src/request/types/stxMethods/deployContract.d.ts
1768
+ declare const stxDeployContractMethodName = "stx_deployContract";
1769
+ declare const stxDeployContractParamsSchema: v.ObjectSchema<{
1770
+ /**
1771
+ * Name of the contract.
1772
+ */
1773
+ readonly name: v.StringSchema<undefined>;
1774
+ /**
1775
+ * The source code of the Clarity contract.
1776
+ */
1777
+ readonly clarityCode: v.StringSchema<undefined>;
1778
+ /**
1779
+ * The version of the Clarity contract.
1780
+ */
1781
+ readonly clarityVersion: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1782
+ /**
1783
+ * The post conditions to apply to the contract call.
1784
+ */
1785
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1786
+ /**
1787
+ * The mode to apply to the post conditions.
1788
+ */
1789
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, undefined>;
1790
+ }, undefined>;
1791
+ type StxDeployContractParams = v.InferOutput<typeof stxDeployContractParamsSchema>;
1792
+ declare const stxDeployContractResultSchema: v.ObjectSchema<{
1793
+ /**
1794
+ * The ID of the transaction.
1795
+ */
1796
+ readonly txid: v.StringSchema<undefined>;
1797
+ /**
1798
+ * A Stacks transaction as a hex-encoded string.
1799
+ */
1800
+ readonly transaction: v.StringSchema<undefined>;
1801
+ }, undefined>;
1802
+ type StxDeployContractResult = v.InferOutput<typeof stxDeployContractResultSchema>;
1803
+ declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
1804
+ readonly method: v.LiteralSchema<"stx_deployContract", undefined>;
1805
+ readonly params: v.ObjectSchema<{
1806
+ /**
1807
+ * Name of the contract.
1808
+ */
1809
+ readonly name: v.StringSchema<undefined>;
1810
+ /**
1811
+ * The source code of the Clarity contract.
1812
+ */
1813
+ readonly clarityCode: v.StringSchema<undefined>;
1814
+ /**
1815
+ * The version of the Clarity contract.
1816
+ */
1817
+ readonly clarityVersion: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1818
+ /**
1819
+ * The post conditions to apply to the contract call.
1820
+ */
1821
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1822
+ /**
1823
+ * The mode to apply to the post conditions.
1824
+ */
1825
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, undefined>;
1826
+ }, undefined>;
1827
+ readonly id: v.StringSchema<undefined>;
1828
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1829
+ }, undefined>;
1830
+ type StxDeployContractRequestMessage = v.InferOutput<typeof stxDeployContractRequestMessageSchema>;
1831
+ type StxDeployContract = MethodParamsAndResult<StxDeployContractParams, StxDeployContractResult>;
1832
+ //#endregion
1833
+ //#region src/request/types/stxMethods/getAccounts.d.ts
1834
+ declare const stxGetAccountsMethodName = "stx_getAccounts";
1835
+ declare const stxGetAccountsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
1836
+ type StxGetAccountsParams = v.InferOutput<typeof stxGetAccountsParamsSchema>;
1837
+ declare const stxGetAccountsResultSchema: v.ObjectSchema<{
1838
+ /**
1839
+ * The addresses generated for the given purposes.
1840
+ */
1841
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1842
+ readonly address: v.StringSchema<undefined>;
1843
+ readonly publicKey: v.StringSchema<undefined>;
1844
+ readonly gaiaHubUrl: v.StringSchema<undefined>;
1845
+ readonly gaiaAppKey: v.StringSchema<undefined>;
1846
+ }, undefined>, undefined>;
1847
+ readonly network: v.ObjectSchema<{
1848
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
1849
+ readonly stacksApiUrl: v.StringSchema<undefined>;
1850
+ readonly xverseApiUrl: v.StringSchema<undefined>;
1851
+ readonly id: v.StringSchema<undefined>;
1852
+ readonly name: v.StringSchema<undefined>;
1853
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
1854
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
1855
+ }, undefined>;
1856
+ }, undefined>;
1857
+ type StxGetAccountsResult = v.InferOutput<typeof stxGetAccountsResultSchema>;
1858
+ declare const stxGetAccountsRequestMessageSchema: v.ObjectSchema<{
1859
+ readonly method: v.LiteralSchema<"stx_getAccounts", undefined>;
1860
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
1861
+ readonly id: v.StringSchema<undefined>;
1862
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1863
+ }, undefined>;
1864
+ type StxGetAccountsRequestMessage = v.InferOutput<typeof stxGetAccountsRequestMessageSchema>;
1865
+ type StxGetAccounts = MethodParamsAndResult<StxGetAccountsParams, StxGetAccountsResult>;
1866
+ //#endregion
1867
+ //#region src/request/types/stxMethods/getAddresses.d.ts
1868
+ declare const stxGetAddressesMethodName = "stx_getAddresses";
1869
+ declare const stxGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
1870
+ /**
1871
+ * A message to be displayed to the user in the request prompt.
1872
+ */
1873
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1874
+ }, undefined>, undefined>;
1875
+ type StxGetAddressesParams = v.InferOutput<typeof stxGetAddressesParamsSchema>;
1876
+ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
1877
+ /**
1878
+ * The addresses generated for the given purposes.
1879
+ */
1880
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1881
+ readonly address: v.StringSchema<undefined>;
1882
+ readonly publicKey: v.StringSchema<undefined>;
1883
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1884
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1885
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
1886
+ }, undefined>, undefined>;
1887
+ readonly network: v.ObjectSchema<{
1888
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
1889
+ readonly stacksApiUrl: v.StringSchema<undefined>;
1890
+ readonly xverseApiUrl: v.StringSchema<undefined>;
1891
+ readonly id: v.StringSchema<undefined>;
1892
+ readonly name: v.StringSchema<undefined>;
1893
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
1894
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
1895
+ }, undefined>;
1896
+ }, undefined>;
1897
+ type StxGetAddressesResult = v.InferOutput<typeof stxGetAddressesResultSchema>;
1898
+ declare const stxGetAddressesRequestMessageSchema: v.ObjectSchema<{
1899
+ readonly method: v.LiteralSchema<"stx_getAddresses", undefined>;
1900
+ readonly params: v.NullishSchema<v.ObjectSchema<{
1901
+ /**
1902
+ * A message to be displayed to the user in the request prompt.
1903
+ */
1904
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1905
+ }, undefined>, undefined>;
1906
+ readonly id: v.StringSchema<undefined>;
1907
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1908
+ }, undefined>;
1909
+ type StxGetAddressesRequestMessage = v.InferOutput<typeof stxGetAddressesRequestMessageSchema>;
1910
+ type StxGetAddresses = MethodParamsAndResult<v.InferOutput<typeof stxGetAddressesParamsSchema>, v.InferOutput<typeof stxGetAddressesResultSchema>>;
1911
+ //#endregion
1912
+ //#region src/request/types/stxMethods/signMessage.d.ts
1913
+ declare const stxSignMessageMethodName = "stx_signMessage";
1914
+ declare const stxSignMessageParamsSchema: v.ObjectSchema<{
1915
+ /**
1916
+ * The message to sign.
1917
+ */
1918
+ readonly message: v.StringSchema<undefined>;
1919
+ }, undefined>;
1920
+ type StxSignMessageParams = v.InferOutput<typeof stxSignMessageParamsSchema>;
1921
+ declare const stxSignMessageResultSchema: v.ObjectSchema<{
1922
+ /**
1923
+ * The signature of the message.
1924
+ */
1925
+ readonly signature: v.StringSchema<undefined>;
1926
+ /**
1927
+ * The public key used to sign the message.
1928
+ */
1929
+ readonly publicKey: v.StringSchema<undefined>;
1930
+ }, undefined>;
1931
+ type StxSignMessageResult = v.InferOutput<typeof stxSignMessageResultSchema>;
1932
+ declare const stxSignMessageRequestMessageSchema: v.ObjectSchema<{
1933
+ readonly method: v.LiteralSchema<"stx_signMessage", undefined>;
1934
+ readonly params: v.ObjectSchema<{
1935
+ /**
1936
+ * The message to sign.
1937
+ */
1938
+ readonly message: v.StringSchema<undefined>;
1939
+ }, undefined>;
1940
+ readonly id: v.StringSchema<undefined>;
1941
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1942
+ }, undefined>;
1943
+ type StxSignMessageRequestMessage = v.InferOutput<typeof stxSignMessageRequestMessageSchema>;
1944
+ type StxSignMessage = MethodParamsAndResult<StxSignMessageParams, StxSignMessageResult>;
1945
+ //#endregion
1946
+ //#region src/request/types/stxMethods/signStructuredMessage.d.ts
1947
+ declare const stxSignStructuredMessageMethodName = "stx_signStructuredMessage";
1948
+ declare const stxSignStructuredMessageParamsSchema: v.ObjectSchema<{
1949
+ /**
1950
+ * The domain to be signed.
1951
+ */
1952
+ readonly domain: v.StringSchema<undefined>;
1953
+ /**
1954
+ * Message payload to be signed.
1955
+ */
1956
+ readonly message: v.StringSchema<undefined>;
1957
+ /**
1958
+ * The public key to sign the message with.
1959
+ */
1960
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1961
+ }, undefined>;
1962
+ type StxSignStructuredMessageParams = v.InferOutput<typeof stxSignStructuredMessageParamsSchema>;
1963
+ declare const stxSignStructuredMessageResultSchema: v.ObjectSchema<{
1964
+ /**
1965
+ * Signature of the message.
1966
+ */
1967
+ readonly signature: v.StringSchema<undefined>;
1968
+ /**
1969
+ * Public key as hex-encoded string.
1970
+ */
1971
+ readonly publicKey: v.StringSchema<undefined>;
1972
+ }, undefined>;
1973
+ type StxSignStructuredMessageResult = v.InferOutput<typeof stxSignStructuredMessageResultSchema>;
1974
+ declare const stxSignStructuredMessageRequestMessageSchema: v.ObjectSchema<{
1975
+ readonly method: v.LiteralSchema<"stx_signStructuredMessage", undefined>;
1976
+ readonly params: v.ObjectSchema<{
1977
+ /**
1978
+ * The domain to be signed.
1979
+ */
1980
+ readonly domain: v.StringSchema<undefined>;
1981
+ /**
1982
+ * Message payload to be signed.
1983
+ */
1984
+ readonly message: v.StringSchema<undefined>;
1985
+ /**
1986
+ * The public key to sign the message with.
1987
+ */
1988
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1989
+ }, undefined>;
1990
+ readonly id: v.StringSchema<undefined>;
1991
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1992
+ }, undefined>;
1993
+ type StxSignStructuredMessageRequestMessage = v.InferOutput<typeof stxSignStructuredMessageRequestMessageSchema>;
1994
+ type StxSignStructuredMessage = MethodParamsAndResult<StxSignStructuredMessageParams, StxSignStructuredMessageResult>;
1995
+ //#endregion
1996
+ //#region src/request/types/stxMethods/signTransaction.d.ts
1997
+ declare const stxSignTransactionMethodName = "stx_signTransaction";
1998
+ declare const stxSignTransactionParamsSchema: v.ObjectSchema<{
1999
+ /**
2000
+ * The transaction to sign as a hex-encoded string.
2001
+ */
2002
+ readonly transaction: v.StringSchema<undefined>;
2003
+ /**
2004
+ * The public key to sign the transaction with. The wallet may use any key
2005
+ * when not provided.
2006
+ */
2007
+ readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2008
+ /**
2009
+ * Whether to broadcast the transaction after signing. Defaults to `true`.
2010
+ */
2011
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2012
+ }, undefined>;
2013
+ type StxSignTransactionParams = v.InferOutput<typeof stxSignTransactionParamsSchema>;
2014
+ declare const stxSignTransactionResultSchema: v.ObjectSchema<{
2015
+ /**
2016
+ * The signed transaction as a hex-encoded string.
2017
+ */
2018
+ readonly transaction: v.StringSchema<undefined>;
2019
+ }, undefined>;
2020
+ type StxSignTransactionResult = v.InferOutput<typeof stxSignTransactionResultSchema>;
2021
+ declare const stxSignTransactionRequestMessageSchema: v.ObjectSchema<{
2022
+ readonly method: v.LiteralSchema<"stx_signTransaction", undefined>;
2023
+ readonly params: v.ObjectSchema<{
2024
+ /**
2025
+ * The transaction to sign as a hex-encoded string.
2026
+ */
2027
+ readonly transaction: v.StringSchema<undefined>;
2028
+ /**
2029
+ * The public key to sign the transaction with. The wallet may use any key
2030
+ * when not provided.
2031
+ */
2032
+ readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2033
+ /**
2034
+ * Whether to broadcast the transaction after signing. Defaults to `true`.
2035
+ */
2036
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2037
+ }, undefined>;
2038
+ readonly id: v.StringSchema<undefined>;
2039
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2040
+ }, undefined>;
2041
+ type StxSignTransactionRequestMessage = v.InferOutput<typeof stxSignTransactionRequestMessageSchema>;
2042
+ type StxSignTransaction = MethodParamsAndResult<StxSignTransactionParams, StxSignTransactionResult>;
2043
+ //#endregion
2044
+ //#region src/request/types/stxMethods/signTransactions.d.ts
2045
+ declare const stxSignTransactionsMethodName = "stx_signTransactions";
2046
+ declare const stxSignTransactionsParamsSchema: v.ObjectSchema<{
2047
+ /**
2048
+ * The transactions to sign as hex-encoded strings.
2049
+ */
2050
+ readonly transactions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "Invalid hex-encoded Stacks transaction.">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
2051
+ /**
2052
+ * Whether the signed transactions should be broadcast after signing. Defaults
2053
+ * to `true`.
2054
+ */
2055
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2056
+ }, undefined>;
2057
+ type StxSignTransactionsParams = v.InferOutput<typeof stxSignTransactionsParamsSchema>;
2058
+ declare const stxSignTransactionsResultSchema: v.ObjectSchema<{
2059
+ /**
2060
+ * The signed transactions as hex-encoded strings, in the same order as in the
2061
+ * sign request.
2062
+ */
2063
+ readonly transactions: v.ArraySchema<v.StringSchema<undefined>, undefined>;
2064
+ }, undefined>;
2065
+ type StxSignTransactionsResult = v.InferOutput<typeof stxSignTransactionsResultSchema>;
2066
+ declare const stxSignTransactionsRequestMessageSchema: v.ObjectSchema<{
2067
+ readonly method: v.LiteralSchema<"stx_signTransactions", undefined>;
2068
+ readonly params: v.ObjectSchema<{
2069
+ /**
2070
+ * The transactions to sign as hex-encoded strings.
2071
+ */
2072
+ readonly transactions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "Invalid hex-encoded Stacks transaction.">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
2073
+ /**
2074
+ * Whether the signed transactions should be broadcast after signing. Defaults
2075
+ * to `true`.
2076
+ */
2077
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2078
+ }, undefined>;
2079
+ readonly id: v.StringSchema<undefined>;
2080
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2081
+ }, undefined>;
2082
+ type StxSignTransactionsRequestMessage = v.InferOutput<typeof stxSignTransactionsRequestMessageSchema>;
2083
+ type StxSignTransactions = MethodParamsAndResult<StxSignTransactionsParams, StxSignTransactionsResult>;
2084
+ //#endregion
2085
+ //#region src/request/types/stxMethods/transferStx.d.ts
2086
+ declare const stxTransferStxMethodName = "stx_transferStx";
2087
+ declare const stxTransferStxParamsSchema: v.ObjectSchema<{
2088
+ /**
2089
+ * Amount of STX tokens to transfer in microstacks as a string. Anything
2090
+ * parseable by `BigInt` is acceptable.
2091
+ *
2092
+ * Example,
2093
+ *
2094
+ * ```js
2095
+ * const amount1 = 1234;
2096
+ * const amount2 = 1234n;
2097
+ * const amount3 = '1234';
2098
+ * ```
2099
+ */
2100
+ readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
2101
+ /**
2102
+ * The recipient's principal.
2103
+ */
2104
+ readonly recipient: v.StringSchema<undefined>;
2105
+ /**
2106
+ * A string representing the memo.
2107
+ */
2108
+ readonly memo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2109
+ /**
2110
+ * Version of parameter format.
2111
+ */
2112
+ readonly version: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2113
+ /**
2114
+ * The mode of the post conditions.
2115
+ */
2116
+ readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2117
+ /**
2118
+ * A hex-encoded string representing the post conditions.
2119
+ *
2120
+ * A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
2121
+ *
2122
+ * ```js
2123
+ * import { serializePostCondition } from '@stacks/transactions';
2124
+ *
2125
+ * const postCondition = somePostCondition;
2126
+ * const hexPostCondition = serializePostCondition(postCondition).toString('hex');
2127
+ * ```
2128
+ */
2129
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
2130
+ /**
2131
+ * The public key to sign the transaction with. The wallet may use any key
2132
+ * when not provided.
2133
+ */
2134
+ readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2135
+ }, undefined>;
2136
+ type StxTransferStxParams = v.InferOutput<typeof stxTransferStxParamsSchema>;
2137
+ declare const stxTransferStxResultSchema: v.ObjectSchema<{
2138
+ /**
2139
+ * The ID of the transaction.
2140
+ */
2141
+ readonly txid: v.StringSchema<undefined>;
2142
+ /**
2143
+ * A Stacks transaction as a hex-encoded string.
2144
+ */
2145
+ readonly transaction: v.StringSchema<undefined>;
2146
+ }, undefined>;
2147
+ type StxTransferStxResult = v.InferOutput<typeof stxTransferStxResultSchema>;
2148
+ declare const stxTransferStxRequestMessageSchema: v.ObjectSchema<{
2149
+ readonly method: v.LiteralSchema<"stx_transferStx", undefined>;
2150
+ readonly params: v.ObjectSchema<{
2151
+ /**
2152
+ * Amount of STX tokens to transfer in microstacks as a string. Anything
2153
+ * parseable by `BigInt` is acceptable.
2154
+ *
2155
+ * Example,
2156
+ *
2157
+ * ```js
2158
+ * const amount1 = 1234;
2159
+ * const amount2 = 1234n;
2160
+ * const amount3 = '1234';
2161
+ * ```
2162
+ */
2163
+ readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
2164
+ /**
2165
+ * The recipient's principal.
2166
+ */
2167
+ readonly recipient: v.StringSchema<undefined>;
2168
+ /**
2169
+ * A string representing the memo.
2170
+ */
2171
+ readonly memo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2172
+ /**
2173
+ * Version of parameter format.
2174
+ */
2175
+ readonly version: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2176
+ /**
2177
+ * The mode of the post conditions.
2178
+ */
2179
+ readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2180
+ /**
2181
+ * A hex-encoded string representing the post conditions.
2182
+ *
2183
+ * A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
2184
+ *
2185
+ * ```js
2186
+ * import { serializePostCondition } from '@stacks/transactions';
2187
+ *
2188
+ * const postCondition = somePostCondition;
2189
+ * const hexPostCondition = serializePostCondition(postCondition).toString('hex');
2190
+ * ```
2191
+ */
2192
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
2193
+ /**
2194
+ * The public key to sign the transaction with. The wallet may use any key
2195
+ * when not provided.
2196
+ */
2197
+ readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2198
+ }, undefined>;
2199
+ readonly id: v.StringSchema<undefined>;
2200
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2201
+ }, undefined>;
2202
+ type StxTransferStxRequestMessage = v.InferOutput<typeof stxTransferStxRequestMessageSchema>;
2203
+ type StxTransferStx = MethodParamsAndResult<StxTransferStxParams, StxTransferStxResult>;
2204
+ //#endregion
2205
+ //#region src/request/types/walletMethods.d.ts
2206
+ declare const accountActionsSchema: v.ObjectSchema<{
2207
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2208
+ }, undefined>;
2209
+ declare const walletActionsSchema: v.ObjectSchema<{
2210
+ readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2211
+ }, undefined>;
2212
+ declare const accountPermissionSchema: v.ObjectSchema<{
2213
+ readonly type: v.LiteralSchema<"account", undefined>;
2214
+ readonly resourceId: v.StringSchema<undefined>;
2215
+ readonly clientId: v.StringSchema<undefined>;
2216
+ readonly actions: v.ObjectSchema<{
2217
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2218
+ }, undefined>;
2219
+ }, undefined>;
2220
+ declare const walletPermissionSchema: v.ObjectSchema<{
2221
+ readonly type: v.LiteralSchema<"wallet", undefined>;
2222
+ readonly resourceId: v.StringSchema<undefined>;
2223
+ readonly clientId: v.StringSchema<undefined>;
2224
+ readonly actions: v.ObjectSchema<{
2225
+ readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2226
+ }, undefined>;
2227
+ }, undefined>;
2228
+ /**
2229
+ * Permissions with the clientId field omitted and optional actions. Used for
2230
+ * permission requests, since the wallet performs authentication based on the
2231
+ * client's tab origin and should not rely on the client authenticating
2232
+ * themselves.
2233
+ */
2234
+ declare const PermissionRequestParams: v.VariantSchema<"type", [v.ObjectSchema<{
2235
+ readonly type: v.LiteralSchema<"account", undefined>;
2236
+ readonly resourceId: v.StringSchema<undefined>;
2237
+ readonly actions: v.ObjectSchema<{
2238
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2239
+ }, undefined>;
2240
+ }, undefined>, v.ObjectSchema<{
2241
+ readonly type: v.LiteralSchema<"wallet", undefined>;
2242
+ readonly resourceId: v.StringSchema<undefined>;
2243
+ readonly actions: v.ObjectSchema<{
2244
+ readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2245
+ }, undefined>;
2246
+ }, undefined>], undefined>;
2247
+ declare const permission: v.VariantSchema<"type", [v.ObjectSchema<{
2248
+ readonly type: v.LiteralSchema<"account", undefined>;
2249
+ readonly resourceId: v.StringSchema<undefined>;
2250
+ readonly clientId: v.StringSchema<undefined>;
2251
+ readonly actions: v.ObjectSchema<{
2252
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2253
+ }, undefined>;
2254
+ }, undefined>, v.ObjectSchema<{
2255
+ readonly type: v.LiteralSchema<"wallet", undefined>;
2256
+ readonly resourceId: v.StringSchema<undefined>;
2257
+ readonly clientId: v.StringSchema<undefined>;
2258
+ readonly actions: v.ObjectSchema<{
2259
+ readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2260
+ }, undefined>;
2261
+ }, undefined>], undefined>;
2262
+ type PermissionWithoutClientId = v.InferOutput<typeof PermissionRequestParams>;
2263
+ declare const requestPermissionsMethodName = "wallet_requestPermissions";
2264
+ declare const requestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
2265
+ readonly type: v.LiteralSchema<"account", undefined>;
2266
+ readonly resourceId: v.StringSchema<undefined>;
2267
+ readonly actions: v.ObjectSchema<{
2268
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2269
+ }, undefined>;
2270
+ }, undefined>, v.ObjectSchema<{
2271
+ readonly type: v.LiteralSchema<"wallet", undefined>;
2272
+ readonly resourceId: v.StringSchema<undefined>;
2273
+ readonly actions: v.ObjectSchema<{
2274
+ readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2275
+ }, undefined>;
2276
+ }, undefined>], undefined>, undefined>, undefined>;
2277
+ type RequestPermissionsParams = v.InferOutput<typeof requestPermissionsParamsSchema>;
2278
+ declare const requestPermissionsResultSchema: v.LiteralSchema<true, undefined>;
2279
+ type RequestPermissionsResult = v.InferOutput<typeof requestPermissionsResultSchema>;
2280
+ declare const requestPermissionsRequestMessageSchema: v.ObjectSchema<{
2281
+ readonly method: v.LiteralSchema<"wallet_requestPermissions", undefined>;
2282
+ readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
2283
+ readonly type: v.LiteralSchema<"account", undefined>;
2284
+ readonly resourceId: v.StringSchema<undefined>;
2285
+ readonly actions: v.ObjectSchema<{
2286
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2287
+ }, undefined>;
2288
+ }, undefined>, v.ObjectSchema<{
2289
+ readonly type: v.LiteralSchema<"wallet", undefined>;
2290
+ readonly resourceId: v.StringSchema<undefined>;
2291
+ readonly actions: v.ObjectSchema<{
2292
+ readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2293
+ }, undefined>;
2294
+ }, undefined>], undefined>, undefined>, undefined>;
2295
+ readonly id: v.StringSchema<undefined>;
2296
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2297
+ }, undefined>;
2298
+ type RequestPermissionsRequestMessage = v.InferOutput<typeof requestPermissionsRequestMessageSchema>;
2299
+ type RequestPermissions = MethodParamsAndResult<RequestPermissionsParams, RequestPermissionsResult>;
2300
+ declare const renouncePermissionsMethodName = "wallet_renouncePermissions";
2301
+ declare const renouncePermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2302
+ type RenouncePermissionsParams = v.InferOutput<typeof renouncePermissionsParamsSchema>;
2303
+ declare const renouncePermissionsResultSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2304
+ type RenouncePermissionsResult = v.InferOutput<typeof renouncePermissionsResultSchema>;
2305
+ declare const renouncePermissionsRequestMessageSchema: v.ObjectSchema<{
2306
+ readonly method: v.LiteralSchema<"wallet_renouncePermissions", undefined>;
2307
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2308
+ readonly id: v.StringSchema<undefined>;
2309
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2310
+ }, undefined>;
2311
+ type RenouncePermissionsRequestMessage = v.InferOutput<typeof renouncePermissionsRequestMessageSchema>;
2312
+ type RenouncePermissions = MethodParamsAndResult<RenouncePermissionsParams, RenouncePermissionsResult>;
2313
+ declare const disconnectMethodName = "wallet_disconnect";
2314
+ declare const disconnectParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2315
+ type DisconnectParams = v.InferOutput<typeof disconnectParamsSchema>;
2316
+ declare const disconnectResultSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2317
+ type DisconnectResult = v.InferOutput<typeof disconnectResultSchema>;
2318
+ declare const disconnectRequestMessageSchema: v.ObjectSchema<{
2319
+ readonly method: v.LiteralSchema<"wallet_disconnect", undefined>;
2320
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2321
+ readonly id: v.StringSchema<undefined>;
2322
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2323
+ }, undefined>;
2324
+ type DisconnectRequestMessage = v.InferOutput<typeof disconnectRequestMessageSchema>;
2325
+ type Disconnect = MethodParamsAndResult<DisconnectParams, DisconnectResult>;
2326
+ declare const getWalletTypeMethodName = "wallet_getWalletType";
2327
+ declare const getWalletTypeParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2328
+ type GetWalletTypeParams = v.InferOutput<typeof getWalletTypeParamsSchema>;
2329
+ declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
2330
+ type GetWalletTypeResult = v.InferOutput<typeof getWalletTypeResultSchema>;
2331
+ declare const getWalletTypeRequestMessageSchema: v.ObjectSchema<{
2332
+ readonly method: v.LiteralSchema<"wallet_getWalletType", undefined>;
2333
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2334
+ readonly id: v.StringSchema<undefined>;
2335
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2336
+ }, undefined>;
2337
+ type GetWalletTypeRequestMessage = v.InferOutput<typeof getWalletTypeRequestMessageSchema>;
2338
+ type GetWalletType = MethodParamsAndResult<GetWalletTypeParams, GetWalletTypeResult>;
2339
+ declare const getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
2340
+ declare const getCurrentPermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2341
+ type GetCurrentPermissionsParams = v.InferOutput<typeof getCurrentPermissionsParamsSchema>;
2342
+ declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
2343
+ readonly type: v.LiteralSchema<"account", undefined>;
2344
+ readonly resourceId: v.StringSchema<undefined>;
2345
+ readonly clientId: v.StringSchema<undefined>;
2346
+ readonly actions: v.ObjectSchema<{
2347
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2348
+ }, undefined>;
2349
+ }, undefined>, v.ObjectSchema<{
2350
+ readonly type: v.LiteralSchema<"wallet", undefined>;
2351
+ readonly resourceId: v.StringSchema<undefined>;
2352
+ readonly clientId: v.StringSchema<undefined>;
2353
+ readonly actions: v.ObjectSchema<{
2354
+ readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2355
+ }, undefined>;
2356
+ }, undefined>], undefined>, undefined>;
2357
+ type GetCurrentPermissionsResult = v.InferOutput<typeof getCurrentPermissionsResultSchema>;
2358
+ declare const getCurrentPermissionsRequestMessageSchema: v.ObjectSchema<{
2359
+ readonly method: v.LiteralSchema<"wallet_getCurrentPermissions", undefined>;
2360
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2361
+ readonly id: v.StringSchema<undefined>;
2362
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2363
+ }, undefined>;
2364
+ type GetCurrentPermissionsRequestMessage = v.InferOutput<typeof getCurrentPermissionsRequestMessageSchema>;
2365
+ type GetCurrentPermissions = MethodParamsAndResult<GetCurrentPermissionsParams, GetCurrentPermissionsResult>;
2366
+ declare const getNetworksMethodName = "wallet_getNetworks";
2367
+ declare const getNetworksParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2368
+ type GetNetworksParams = v.InferOutput<typeof getNetworksParamsSchema>;
2369
+ declare const getNetworksResultSchema: v.ObjectSchema<{
2370
+ readonly active: v.ObjectSchema<{
2371
+ readonly bitcoin: v.ObjectSchema<{
2372
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
2373
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2374
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2375
+ readonly id: v.StringSchema<undefined>;
2376
+ readonly name: v.StringSchema<undefined>;
2377
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2378
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2379
+ }, undefined>;
2380
+ readonly stacks: v.ObjectSchema<{
2381
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
2382
+ readonly stacksApiUrl: v.StringSchema<undefined>;
2383
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2384
+ readonly id: v.StringSchema<undefined>;
2385
+ readonly name: v.StringSchema<undefined>;
2386
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2387
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2388
+ }, undefined>;
2389
+ readonly spark: v.ObjectSchema<{
2390
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
2391
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2392
+ readonly id: v.StringSchema<undefined>;
2393
+ readonly name: v.StringSchema<undefined>;
2394
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2395
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2396
+ }, undefined>;
2397
+ readonly starknet: v.ObjectSchema<{
2398
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
2399
+ readonly rpcApiUrl: v.StringSchema<undefined>;
2400
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2401
+ readonly id: v.StringSchema<undefined>;
2402
+ readonly name: v.StringSchema<undefined>;
2403
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2404
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2405
+ }, undefined>;
2406
+ }, undefined>;
2407
+ readonly builtin: v.ObjectSchema<{
2408
+ readonly bitcoin: v.ArraySchema<v.ObjectSchema<{
2409
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
2410
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2411
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2412
+ readonly id: v.StringSchema<undefined>;
2413
+ readonly name: v.StringSchema<undefined>;
2414
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2415
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2416
+ }, undefined>, undefined>;
2417
+ readonly stacks: v.ArraySchema<v.ObjectSchema<{
2418
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
2419
+ readonly stacksApiUrl: v.StringSchema<undefined>;
2420
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2421
+ readonly id: v.StringSchema<undefined>;
2422
+ readonly name: v.StringSchema<undefined>;
2423
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2424
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2425
+ }, undefined>, undefined>;
2426
+ readonly spark: v.ArraySchema<v.ObjectSchema<{
2427
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
2428
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2429
+ readonly id: v.StringSchema<undefined>;
2430
+ readonly name: v.StringSchema<undefined>;
2431
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2432
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2433
+ }, undefined>, undefined>;
2434
+ readonly starknet: v.ArraySchema<v.ObjectSchema<{
2435
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
2436
+ readonly rpcApiUrl: v.StringSchema<undefined>;
2437
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2438
+ readonly id: v.StringSchema<undefined>;
2439
+ readonly name: v.StringSchema<undefined>;
2440
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2441
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2442
+ }, undefined>, undefined>;
2443
+ }, undefined>;
2444
+ readonly custom: v.ObjectSchema<{
2445
+ readonly bitcoin: v.ArraySchema<v.ObjectSchema<{
2446
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
2447
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2448
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2449
+ readonly id: v.StringSchema<undefined>;
2450
+ readonly name: v.StringSchema<undefined>;
2451
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2452
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2453
+ }, undefined>, undefined>;
2454
+ readonly stacks: v.ArraySchema<v.ObjectSchema<{
2455
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
2456
+ readonly stacksApiUrl: v.StringSchema<undefined>;
2457
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2458
+ readonly id: v.StringSchema<undefined>;
2459
+ readonly name: v.StringSchema<undefined>;
2460
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2461
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2462
+ }, undefined>, undefined>;
2463
+ readonly spark: v.ArraySchema<v.ObjectSchema<{
2464
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
2465
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2466
+ readonly id: v.StringSchema<undefined>;
2467
+ readonly name: v.StringSchema<undefined>;
2468
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2469
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2470
+ }, undefined>, undefined>;
2471
+ readonly starknet: v.ArraySchema<v.ObjectSchema<{
2472
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
2473
+ readonly rpcApiUrl: v.StringSchema<undefined>;
2474
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2475
+ readonly id: v.StringSchema<undefined>;
2476
+ readonly name: v.StringSchema<undefined>;
2477
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2478
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2479
+ }, undefined>, undefined>;
2480
+ }, undefined>;
2481
+ }, undefined>;
2482
+ type GetNetworksResult = v.InferOutput<typeof getNetworksResultSchema>;
2483
+ declare const getNetworksRequestMessageSchema: v.ObjectSchema<{
2484
+ readonly method: v.LiteralSchema<"wallet_getNetworks", undefined>;
2485
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2486
+ readonly id: v.StringSchema<undefined>;
2487
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2488
+ }, undefined>;
2489
+ type GetNetworksRequestMessage = v.InferOutput<typeof getNetworksRequestMessageSchema>;
2490
+ type GetNetworks = MethodParamsAndResult<GetNetworksParams, GetNetworksResult>;
2491
+ declare const changeNetworkMethodName = "wallet_changeNetwork";
2492
+ declare const changeNetworkParamsSchema: v.ObjectSchema<{
2493
+ readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
2494
+ }, undefined>;
2495
+ type ChangeNetworkParams = v.InferOutput<typeof changeNetworkParamsSchema>;
2496
+ declare const changeNetworkResultSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2497
+ type ChangeNetworkResult = v.InferOutput<typeof changeNetworkResultSchema>;
2498
+ declare const changeNetworkRequestMessageSchema: v.ObjectSchema<{
2499
+ readonly method: v.LiteralSchema<"wallet_changeNetwork", undefined>;
2500
+ readonly params: v.ObjectSchema<{
2501
+ readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
2502
+ }, undefined>;
2503
+ readonly id: v.StringSchema<undefined>;
2504
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2505
+ }, undefined>;
2506
+ type ChangeNetworkRequestMessage = v.InferOutput<typeof changeNetworkRequestMessageSchema>;
2507
+ type ChangeNetwork = MethodParamsAndResult<ChangeNetworkParams, ChangeNetworkResult>;
2508
+ declare const changeNetworkByIdMethodName = "wallet_changeNetworkById";
2509
+ declare const changeNetworkByIdParamsSchema: v.ObjectSchema<{
2510
+ readonly id: v.StringSchema<undefined>;
2511
+ }, undefined>;
2512
+ type ChangeNetworkByIdParams = v.InferOutput<typeof changeNetworkByIdParamsSchema>;
2513
+ declare const changeNetworkByIdResultSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2514
+ type ChangeNetworkByIdResult = v.InferOutput<typeof changeNetworkByIdResultSchema>;
2515
+ declare const changeNetworkByIdRequestMessageSchema: v.ObjectSchema<{
2516
+ readonly method: v.LiteralSchema<"wallet_changeNetworkById", undefined>;
2517
+ readonly params: v.ObjectSchema<{
2518
+ readonly id: v.StringSchema<undefined>;
2519
+ }, undefined>;
2520
+ readonly id: v.StringSchema<undefined>;
2521
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2522
+ }, undefined>;
2523
+ type ChangeNetworkByIdRequestMessage = v.InferOutput<typeof changeNetworkByIdRequestMessageSchema>;
2524
+ type ChangeNetworkById = MethodParamsAndResult<ChangeNetworkByIdParams, ChangeNetworkByIdResult>;
2525
+ declare const getAccountMethodName = "wallet_getAccount";
2526
+ declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2527
+ type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
2528
+ declare const getAccountResultSchema: v.ObjectSchema<{
2529
+ readonly id: v.StringSchema<undefined>;
2530
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
2531
+ readonly address: v.StringSchema<undefined>;
2532
+ readonly publicKey: v.StringSchema<undefined>;
2533
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
2534
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
2535
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
2536
+ }, undefined>, undefined>;
2537
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
2538
+ readonly networks: v.ObjectSchema<{
2539
+ readonly active: v.ObjectSchema<{
2540
+ readonly bitcoin: v.ObjectSchema<{
2541
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
2542
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2543
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2544
+ readonly id: v.StringSchema<undefined>;
2545
+ readonly name: v.StringSchema<undefined>;
2546
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2547
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2548
+ }, undefined>;
2549
+ readonly stacks: v.ObjectSchema<{
2550
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
2551
+ readonly stacksApiUrl: v.StringSchema<undefined>;
2552
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2553
+ readonly id: v.StringSchema<undefined>;
2554
+ readonly name: v.StringSchema<undefined>;
2555
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2556
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2557
+ }, undefined>;
2558
+ readonly spark: v.ObjectSchema<{
2559
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
2560
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2561
+ readonly id: v.StringSchema<undefined>;
2562
+ readonly name: v.StringSchema<undefined>;
2563
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2564
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2565
+ }, undefined>;
2566
+ readonly starknet: v.ObjectSchema<{
2567
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
2568
+ readonly rpcApiUrl: v.StringSchema<undefined>;
2569
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2570
+ readonly id: v.StringSchema<undefined>;
2571
+ readonly name: v.StringSchema<undefined>;
2572
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2573
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2574
+ }, undefined>;
2575
+ }, undefined>;
2576
+ readonly builtin: v.ObjectSchema<{
2577
+ readonly bitcoin: v.ArraySchema<v.ObjectSchema<{
2578
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
2579
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2580
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2581
+ readonly id: v.StringSchema<undefined>;
2582
+ readonly name: v.StringSchema<undefined>;
2583
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2584
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2585
+ }, undefined>, undefined>;
2586
+ readonly stacks: v.ArraySchema<v.ObjectSchema<{
2587
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
2588
+ readonly stacksApiUrl: v.StringSchema<undefined>;
2589
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2590
+ readonly id: v.StringSchema<undefined>;
2591
+ readonly name: v.StringSchema<undefined>;
2592
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2593
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2594
+ }, undefined>, undefined>;
2595
+ readonly spark: v.ArraySchema<v.ObjectSchema<{
2596
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
2597
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2598
+ readonly id: v.StringSchema<undefined>;
2599
+ readonly name: v.StringSchema<undefined>;
2600
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2601
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2602
+ }, undefined>, undefined>;
2603
+ readonly starknet: v.ArraySchema<v.ObjectSchema<{
2604
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
2605
+ readonly rpcApiUrl: v.StringSchema<undefined>;
2606
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2607
+ readonly id: v.StringSchema<undefined>;
2608
+ readonly name: v.StringSchema<undefined>;
2609
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2610
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2611
+ }, undefined>, undefined>;
2612
+ }, undefined>;
2613
+ readonly custom: v.ObjectSchema<{
2614
+ readonly bitcoin: v.ArraySchema<v.ObjectSchema<{
2615
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
2616
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2617
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2618
+ readonly id: v.StringSchema<undefined>;
2619
+ readonly name: v.StringSchema<undefined>;
2620
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2621
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2622
+ }, undefined>, undefined>;
2623
+ readonly stacks: v.ArraySchema<v.ObjectSchema<{
2624
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
2625
+ readonly stacksApiUrl: v.StringSchema<undefined>;
2626
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2627
+ readonly id: v.StringSchema<undefined>;
2628
+ readonly name: v.StringSchema<undefined>;
2629
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2630
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2631
+ }, undefined>, undefined>;
2632
+ readonly spark: v.ArraySchema<v.ObjectSchema<{
2633
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
2634
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2635
+ readonly id: v.StringSchema<undefined>;
2636
+ readonly name: v.StringSchema<undefined>;
2637
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2638
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2639
+ }, undefined>, undefined>;
2640
+ readonly starknet: v.ArraySchema<v.ObjectSchema<{
2641
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
2642
+ readonly rpcApiUrl: v.StringSchema<undefined>;
2643
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2644
+ readonly id: v.StringSchema<undefined>;
2645
+ readonly name: v.StringSchema<undefined>;
2646
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2647
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2648
+ }, undefined>, undefined>;
2649
+ }, undefined>;
2650
+ }, undefined>;
2651
+ }, undefined>;
2652
+ type GetAccountResult = v.InferOutput<typeof getAccountResultSchema>;
2653
+ declare const getAccountRequestMessageSchema: v.ObjectSchema<{
2654
+ readonly method: v.LiteralSchema<"wallet_getAccount", undefined>;
2655
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2656
+ readonly id: v.StringSchema<undefined>;
2657
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2658
+ }, undefined>;
2659
+ type GetAccountRequestMessage = v.InferOutput<typeof getAccountRequestMessageSchema>;
2660
+ type GetAccount = MethodParamsAndResult<GetAccountParams, GetAccountResult>;
2661
+ declare const connectMethodName = "wallet_connect";
2662
+ declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
2663
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
2664
+ readonly type: v.LiteralSchema<"account", undefined>;
2665
+ readonly resourceId: v.StringSchema<undefined>;
2666
+ readonly actions: v.ObjectSchema<{
2667
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2668
+ }, undefined>;
2669
+ }, undefined>, v.ObjectSchema<{
2670
+ readonly type: v.LiteralSchema<"wallet", undefined>;
2671
+ readonly resourceId: v.StringSchema<undefined>;
2672
+ readonly actions: v.ObjectSchema<{
2673
+ readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2674
+ }, undefined>;
2675
+ }, undefined>], undefined>, undefined>, undefined>;
2676
+ readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, undefined>;
2677
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, undefined>;
2678
+ readonly networkId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2679
+ }, undefined>, undefined>;
2680
+ type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
2681
+ declare const connectResultSchema: v.ObjectSchema<{
2682
+ readonly id: v.StringSchema<undefined>;
2683
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
2684
+ readonly address: v.StringSchema<undefined>;
2685
+ readonly publicKey: v.StringSchema<undefined>;
2686
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
2687
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
2688
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
2689
+ }, undefined>, undefined>;
2690
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
2691
+ readonly networks: v.ObjectSchema<{
2692
+ readonly active: v.ObjectSchema<{
2693
+ readonly bitcoin: v.ObjectSchema<{
2694
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
2695
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2696
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2697
+ readonly id: v.StringSchema<undefined>;
2698
+ readonly name: v.StringSchema<undefined>;
2699
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2700
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2701
+ }, undefined>;
2702
+ readonly stacks: v.ObjectSchema<{
2703
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
2704
+ readonly stacksApiUrl: v.StringSchema<undefined>;
2705
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2706
+ readonly id: v.StringSchema<undefined>;
2707
+ readonly name: v.StringSchema<undefined>;
2708
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2709
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2710
+ }, undefined>;
2711
+ readonly spark: v.ObjectSchema<{
2712
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
2713
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2714
+ readonly id: v.StringSchema<undefined>;
2715
+ readonly name: v.StringSchema<undefined>;
2716
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2717
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2718
+ }, undefined>;
2719
+ readonly starknet: v.ObjectSchema<{
2720
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
2721
+ readonly rpcApiUrl: v.StringSchema<undefined>;
2722
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2723
+ readonly id: v.StringSchema<undefined>;
2724
+ readonly name: v.StringSchema<undefined>;
2725
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2726
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2727
+ }, undefined>;
2728
+ }, undefined>;
2729
+ readonly builtin: v.ObjectSchema<{
2730
+ readonly bitcoin: v.ArraySchema<v.ObjectSchema<{
2731
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
2732
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2733
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2734
+ readonly id: v.StringSchema<undefined>;
2735
+ readonly name: v.StringSchema<undefined>;
2736
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2737
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2738
+ }, undefined>, undefined>;
2739
+ readonly stacks: v.ArraySchema<v.ObjectSchema<{
2740
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
2741
+ readonly stacksApiUrl: v.StringSchema<undefined>;
2742
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2743
+ readonly id: v.StringSchema<undefined>;
2744
+ readonly name: v.StringSchema<undefined>;
2745
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2746
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2747
+ }, undefined>, undefined>;
2748
+ readonly spark: v.ArraySchema<v.ObjectSchema<{
2749
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
2750
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2751
+ readonly id: v.StringSchema<undefined>;
2752
+ readonly name: v.StringSchema<undefined>;
2753
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2754
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2755
+ }, undefined>, undefined>;
2756
+ readonly starknet: v.ArraySchema<v.ObjectSchema<{
2757
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
2758
+ readonly rpcApiUrl: v.StringSchema<undefined>;
2759
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2760
+ readonly id: v.StringSchema<undefined>;
2761
+ readonly name: v.StringSchema<undefined>;
2762
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2763
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2764
+ }, undefined>, undefined>;
2765
+ }, undefined>;
2766
+ readonly custom: v.ObjectSchema<{
2767
+ readonly bitcoin: v.ArraySchema<v.ObjectSchema<{
2768
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
2769
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2770
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2771
+ readonly id: v.StringSchema<undefined>;
2772
+ readonly name: v.StringSchema<undefined>;
2773
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2774
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2775
+ }, undefined>, undefined>;
2776
+ readonly stacks: v.ArraySchema<v.ObjectSchema<{
2777
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
2778
+ readonly stacksApiUrl: v.StringSchema<undefined>;
2779
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2780
+ readonly id: v.StringSchema<undefined>;
2781
+ readonly name: v.StringSchema<undefined>;
2782
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2783
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2784
+ }, undefined>, undefined>;
2785
+ readonly spark: v.ArraySchema<v.ObjectSchema<{
2786
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
2787
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2788
+ readonly id: v.StringSchema<undefined>;
2789
+ readonly name: v.StringSchema<undefined>;
2790
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2791
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2792
+ }, undefined>, undefined>;
2793
+ readonly starknet: v.ArraySchema<v.ObjectSchema<{
2794
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
2795
+ readonly rpcApiUrl: v.StringSchema<undefined>;
2796
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2797
+ readonly id: v.StringSchema<undefined>;
2798
+ readonly name: v.StringSchema<undefined>;
2799
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2800
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2801
+ }, undefined>, undefined>;
2802
+ }, undefined>;
2803
+ }, undefined>;
2804
+ }, undefined>;
2805
+ type ConnectResult = v.InferOutput<typeof connectResultSchema>;
2806
+ declare const connectRequestMessageSchema: v.ObjectSchema<{
2807
+ readonly method: v.LiteralSchema<"wallet_connect", undefined>;
2808
+ readonly params: v.NullishSchema<v.ObjectSchema<{
2809
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
2810
+ readonly type: v.LiteralSchema<"account", undefined>;
2811
+ readonly resourceId: v.StringSchema<undefined>;
2812
+ readonly actions: v.ObjectSchema<{
2813
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2814
+ }, undefined>;
2815
+ }, undefined>, v.ObjectSchema<{
2816
+ readonly type: v.LiteralSchema<"wallet", undefined>;
2817
+ readonly resourceId: v.StringSchema<undefined>;
2818
+ readonly actions: v.ObjectSchema<{
2819
+ readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2820
+ }, undefined>;
2821
+ }, undefined>], undefined>, undefined>, undefined>;
2822
+ readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, undefined>;
2823
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, undefined>;
2824
+ readonly networkId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2825
+ }, undefined>, undefined>;
2826
+ readonly id: v.StringSchema<undefined>;
2827
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2828
+ }, undefined>;
2829
+ type ConnectRequestMessage = v.InferOutput<typeof connectRequestMessageSchema>;
2830
+ type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
2831
+ declare const addNetworkMethodName = "wallet_addNetwork";
2832
+ declare const bitcoinNetworkDefinitionSchema: Omit<v.ObjectSchema<{
2833
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
2834
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2835
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2836
+ readonly id: v.StringSchema<undefined>;
2837
+ readonly name: v.StringSchema<undefined>;
2838
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2839
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2840
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
2841
+ readonly entries: Omit<{
2842
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
2843
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2844
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2845
+ readonly id: v.StringSchema<undefined>;
2846
+ readonly name: v.StringSchema<undefined>;
2847
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2848
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2849
+ }, "id">;
2850
+ readonly '~standard': v.StandardProps<{
2851
+ chain: "bitcoin";
2852
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
2853
+ blockExplorerUrl?: string | undefined;
2854
+ name: string;
2855
+ xverseApiUrl: string;
2856
+ electrsApiUrl: string;
2857
+ }, {
2858
+ chain: "bitcoin";
2859
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
2860
+ blockExplorerUrl?: string | undefined;
2861
+ name: string;
2862
+ xverseApiUrl: string;
2863
+ electrsApiUrl: string;
2864
+ }>;
2865
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
2866
+ chain: "bitcoin";
2867
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
2868
+ blockExplorerUrl?: string | undefined;
2869
+ name: string;
2870
+ xverseApiUrl: string;
2871
+ electrsApiUrl: string;
2872
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
2873
+ readonly '~types'?: {
2874
+ readonly input: {
2875
+ chain: "bitcoin";
2876
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
2877
+ blockExplorerUrl?: string | undefined;
2878
+ name: string;
2879
+ xverseApiUrl: string;
2880
+ electrsApiUrl: string;
2881
+ };
2882
+ readonly output: {
2883
+ chain: "bitcoin";
2884
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
2885
+ blockExplorerUrl?: string | undefined;
2886
+ name: string;
2887
+ xverseApiUrl: string;
2888
+ electrsApiUrl: string;
2889
+ };
2890
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
2891
+ } | undefined;
2892
+ };
2893
+ declare const sparkNetworkDefinitionSchema: Omit<v.ObjectSchema<{
2894
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
2895
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2896
+ readonly id: v.StringSchema<undefined>;
2897
+ readonly name: v.StringSchema<undefined>;
2898
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2899
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2900
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
2901
+ readonly entries: Omit<{
2902
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
2903
+ readonly electrsApiUrl: v.StringSchema<undefined>;
2904
+ readonly id: v.StringSchema<undefined>;
2905
+ readonly name: v.StringSchema<undefined>;
2906
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2907
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2908
+ }, "id">;
2909
+ readonly '~standard': v.StandardProps<{
2910
+ chain: "spark";
2911
+ mode: "mainnet" | "regtest";
2912
+ blockExplorerUrl?: string | undefined;
2913
+ name: string;
2914
+ electrsApiUrl: string;
2915
+ }, {
2916
+ chain: "spark";
2917
+ mode: "mainnet" | "regtest";
2918
+ blockExplorerUrl?: string | undefined;
2919
+ name: string;
2920
+ electrsApiUrl: string;
2921
+ }>;
2922
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
2923
+ chain: "spark";
2924
+ mode: "mainnet" | "regtest";
2925
+ blockExplorerUrl?: string | undefined;
2926
+ name: string;
2927
+ electrsApiUrl: string;
2928
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
2929
+ readonly '~types'?: {
2930
+ readonly input: {
2931
+ chain: "spark";
2932
+ mode: "mainnet" | "regtest";
2933
+ blockExplorerUrl?: string | undefined;
2934
+ name: string;
2935
+ electrsApiUrl: string;
2936
+ };
2937
+ readonly output: {
2938
+ chain: "spark";
2939
+ mode: "mainnet" | "regtest";
2940
+ blockExplorerUrl?: string | undefined;
2941
+ name: string;
2942
+ electrsApiUrl: string;
2943
+ };
2944
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
2945
+ } | undefined;
2946
+ };
2947
+ declare const stacksNetworkDefinitionSchema: Omit<v.ObjectSchema<{
2948
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
2949
+ readonly stacksApiUrl: v.StringSchema<undefined>;
2950
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2951
+ readonly id: v.StringSchema<undefined>;
2952
+ readonly name: v.StringSchema<undefined>;
2953
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2954
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2955
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
2956
+ readonly entries: Omit<{
2957
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
2958
+ readonly stacksApiUrl: v.StringSchema<undefined>;
2959
+ readonly xverseApiUrl: v.StringSchema<undefined>;
2960
+ readonly id: v.StringSchema<undefined>;
2961
+ readonly name: v.StringSchema<undefined>;
2962
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
2963
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2964
+ }, "id">;
2965
+ readonly '~standard': v.StandardProps<{
2966
+ chain: "stacks";
2967
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
2968
+ blockExplorerUrl?: string | undefined;
2969
+ name: string;
2970
+ xverseApiUrl: string;
2971
+ stacksApiUrl: string;
2972
+ }, {
2973
+ chain: "stacks";
2974
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
2975
+ blockExplorerUrl?: string | undefined;
2976
+ name: string;
2977
+ xverseApiUrl: string;
2978
+ stacksApiUrl: string;
2979
+ }>;
2980
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
2981
+ chain: "stacks";
2982
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
2983
+ blockExplorerUrl?: string | undefined;
2984
+ name: string;
2985
+ xverseApiUrl: string;
2986
+ stacksApiUrl: string;
2987
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
2988
+ readonly '~types'?: {
2989
+ readonly input: {
2990
+ chain: "stacks";
2991
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
2992
+ blockExplorerUrl?: string | undefined;
2993
+ name: string;
2994
+ xverseApiUrl: string;
2995
+ stacksApiUrl: string;
2996
+ };
2997
+ readonly output: {
2998
+ chain: "stacks";
2999
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3000
+ blockExplorerUrl?: string | undefined;
3001
+ name: string;
3002
+ xverseApiUrl: string;
3003
+ stacksApiUrl: string;
3004
+ };
3005
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
3006
+ } | undefined;
3007
+ };
3008
+ declare const starknetNetworkDefinitionSchema: Omit<v.ObjectSchema<{
3009
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
3010
+ readonly rpcApiUrl: v.StringSchema<undefined>;
3011
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3012
+ readonly id: v.StringSchema<undefined>;
3013
+ readonly name: v.StringSchema<undefined>;
3014
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3015
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
3016
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
3017
+ readonly entries: Omit<{
3018
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
3019
+ readonly rpcApiUrl: v.StringSchema<undefined>;
3020
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3021
+ readonly id: v.StringSchema<undefined>;
3022
+ readonly name: v.StringSchema<undefined>;
3023
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3024
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
3025
+ }, "id">;
3026
+ readonly '~standard': v.StandardProps<{
3027
+ chain: "starknet";
3028
+ mode: "mainnet" | "sepolia";
3029
+ blockExplorerUrl?: string | undefined;
3030
+ name: string;
3031
+ xverseApiUrl: string;
3032
+ rpcApiUrl: string;
3033
+ }, {
3034
+ chain: "starknet";
3035
+ mode: "mainnet" | "sepolia";
3036
+ blockExplorerUrl?: string | undefined;
3037
+ name: string;
3038
+ xverseApiUrl: string;
3039
+ rpcApiUrl: string;
3040
+ }>;
3041
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
3042
+ chain: "starknet";
3043
+ mode: "mainnet" | "sepolia";
3044
+ blockExplorerUrl?: string | undefined;
3045
+ name: string;
3046
+ xverseApiUrl: string;
3047
+ rpcApiUrl: string;
3048
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
3049
+ readonly '~types'?: {
3050
+ readonly input: {
3051
+ chain: "starknet";
3052
+ mode: "mainnet" | "sepolia";
3053
+ blockExplorerUrl?: string | undefined;
3054
+ name: string;
3055
+ xverseApiUrl: string;
3056
+ rpcApiUrl: string;
3057
+ };
3058
+ readonly output: {
3059
+ chain: "starknet";
3060
+ mode: "mainnet" | "sepolia";
3061
+ blockExplorerUrl?: string | undefined;
3062
+ name: string;
3063
+ xverseApiUrl: string;
3064
+ rpcApiUrl: string;
3065
+ };
3066
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
3067
+ } | undefined;
3068
+ };
3069
+ type BitcoinNetworkDefinition = v.InferOutput<typeof bitcoinNetworkDefinitionSchema>;
3070
+ type SparkNetworkDefinition = v.InferOutput<typeof sparkNetworkDefinitionSchema>;
3071
+ type StacksNetworkDefinition = v.InferOutput<typeof stacksNetworkDefinitionSchema>;
3072
+ type StarknetNetworkDefinition = v.InferOutput<typeof starknetNetworkDefinitionSchema>;
3073
+ declare const newNetworkDefinitionSchema: v.VariantSchema<"chain", [Omit<v.ObjectSchema<{
3074
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
3075
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3076
+ readonly electrsApiUrl: v.StringSchema<undefined>;
3077
+ readonly id: v.StringSchema<undefined>;
3078
+ readonly name: v.StringSchema<undefined>;
3079
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3080
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
3081
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
3082
+ readonly entries: Omit<{
3083
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
3084
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3085
+ readonly electrsApiUrl: v.StringSchema<undefined>;
3086
+ readonly id: v.StringSchema<undefined>;
3087
+ readonly name: v.StringSchema<undefined>;
3088
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3089
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
3090
+ }, "id">;
3091
+ readonly '~standard': v.StandardProps<{
3092
+ chain: "bitcoin";
3093
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3094
+ blockExplorerUrl?: string | undefined;
3095
+ name: string;
3096
+ xverseApiUrl: string;
3097
+ electrsApiUrl: string;
3098
+ }, {
3099
+ chain: "bitcoin";
3100
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3101
+ blockExplorerUrl?: string | undefined;
3102
+ name: string;
3103
+ xverseApiUrl: string;
3104
+ electrsApiUrl: string;
3105
+ }>;
3106
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
3107
+ chain: "bitcoin";
3108
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3109
+ blockExplorerUrl?: string | undefined;
3110
+ name: string;
3111
+ xverseApiUrl: string;
3112
+ electrsApiUrl: string;
3113
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
3114
+ readonly '~types'?: {
3115
+ readonly input: {
3116
+ chain: "bitcoin";
3117
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3118
+ blockExplorerUrl?: string | undefined;
3119
+ name: string;
3120
+ xverseApiUrl: string;
3121
+ electrsApiUrl: string;
3122
+ };
3123
+ readonly output: {
3124
+ chain: "bitcoin";
3125
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3126
+ blockExplorerUrl?: string | undefined;
3127
+ name: string;
3128
+ xverseApiUrl: string;
3129
+ electrsApiUrl: string;
3130
+ };
3131
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
3132
+ } | undefined;
3133
+ }, Omit<v.ObjectSchema<{
3134
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
3135
+ readonly electrsApiUrl: v.StringSchema<undefined>;
3136
+ readonly id: v.StringSchema<undefined>;
3137
+ readonly name: v.StringSchema<undefined>;
3138
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3139
+ readonly chain: v.LiteralSchema<"spark", undefined>;
3140
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
3141
+ readonly entries: Omit<{
3142
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
3143
+ readonly electrsApiUrl: v.StringSchema<undefined>;
3144
+ readonly id: v.StringSchema<undefined>;
3145
+ readonly name: v.StringSchema<undefined>;
3146
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3147
+ readonly chain: v.LiteralSchema<"spark", undefined>;
3148
+ }, "id">;
3149
+ readonly '~standard': v.StandardProps<{
3150
+ chain: "spark";
3151
+ mode: "mainnet" | "regtest";
3152
+ blockExplorerUrl?: string | undefined;
3153
+ name: string;
3154
+ electrsApiUrl: string;
3155
+ }, {
3156
+ chain: "spark";
3157
+ mode: "mainnet" | "regtest";
3158
+ blockExplorerUrl?: string | undefined;
3159
+ name: string;
3160
+ electrsApiUrl: string;
3161
+ }>;
3162
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
3163
+ chain: "spark";
3164
+ mode: "mainnet" | "regtest";
3165
+ blockExplorerUrl?: string | undefined;
3166
+ name: string;
3167
+ electrsApiUrl: string;
3168
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
3169
+ readonly '~types'?: {
3170
+ readonly input: {
3171
+ chain: "spark";
3172
+ mode: "mainnet" | "regtest";
3173
+ blockExplorerUrl?: string | undefined;
3174
+ name: string;
3175
+ electrsApiUrl: string;
3176
+ };
3177
+ readonly output: {
3178
+ chain: "spark";
3179
+ mode: "mainnet" | "regtest";
3180
+ blockExplorerUrl?: string | undefined;
3181
+ name: string;
3182
+ electrsApiUrl: string;
3183
+ };
3184
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
3185
+ } | undefined;
3186
+ }, Omit<v.ObjectSchema<{
3187
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
3188
+ readonly stacksApiUrl: v.StringSchema<undefined>;
3189
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3190
+ readonly id: v.StringSchema<undefined>;
3191
+ readonly name: v.StringSchema<undefined>;
3192
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3193
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
3194
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
3195
+ readonly entries: Omit<{
3196
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
3197
+ readonly stacksApiUrl: v.StringSchema<undefined>;
3198
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3199
+ readonly id: v.StringSchema<undefined>;
3200
+ readonly name: v.StringSchema<undefined>;
3201
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3202
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
3203
+ }, "id">;
3204
+ readonly '~standard': v.StandardProps<{
3205
+ chain: "stacks";
3206
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3207
+ blockExplorerUrl?: string | undefined;
3208
+ name: string;
3209
+ xverseApiUrl: string;
3210
+ stacksApiUrl: string;
3211
+ }, {
3212
+ chain: "stacks";
3213
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3214
+ blockExplorerUrl?: string | undefined;
3215
+ name: string;
3216
+ xverseApiUrl: string;
3217
+ stacksApiUrl: string;
3218
+ }>;
3219
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
3220
+ chain: "stacks";
3221
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3222
+ blockExplorerUrl?: string | undefined;
3223
+ name: string;
3224
+ xverseApiUrl: string;
3225
+ stacksApiUrl: string;
3226
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
3227
+ readonly '~types'?: {
3228
+ readonly input: {
3229
+ chain: "stacks";
3230
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3231
+ blockExplorerUrl?: string | undefined;
3232
+ name: string;
3233
+ xverseApiUrl: string;
3234
+ stacksApiUrl: string;
3235
+ };
3236
+ readonly output: {
3237
+ chain: "stacks";
3238
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3239
+ blockExplorerUrl?: string | undefined;
3240
+ name: string;
3241
+ xverseApiUrl: string;
3242
+ stacksApiUrl: string;
3243
+ };
3244
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
3245
+ } | undefined;
3246
+ }, Omit<v.ObjectSchema<{
3247
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
3248
+ readonly rpcApiUrl: v.StringSchema<undefined>;
3249
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3250
+ readonly id: v.StringSchema<undefined>;
3251
+ readonly name: v.StringSchema<undefined>;
3252
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3253
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
3254
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
3255
+ readonly entries: Omit<{
3256
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
3257
+ readonly rpcApiUrl: v.StringSchema<undefined>;
3258
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3259
+ readonly id: v.StringSchema<undefined>;
3260
+ readonly name: v.StringSchema<undefined>;
3261
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3262
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
3263
+ }, "id">;
3264
+ readonly '~standard': v.StandardProps<{
3265
+ chain: "starknet";
3266
+ mode: "mainnet" | "sepolia";
3267
+ blockExplorerUrl?: string | undefined;
3268
+ name: string;
3269
+ xverseApiUrl: string;
3270
+ rpcApiUrl: string;
3271
+ }, {
3272
+ chain: "starknet";
3273
+ mode: "mainnet" | "sepolia";
3274
+ blockExplorerUrl?: string | undefined;
3275
+ name: string;
3276
+ xverseApiUrl: string;
3277
+ rpcApiUrl: string;
3278
+ }>;
3279
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
3280
+ chain: "starknet";
3281
+ mode: "mainnet" | "sepolia";
3282
+ blockExplorerUrl?: string | undefined;
3283
+ name: string;
3284
+ xverseApiUrl: string;
3285
+ rpcApiUrl: string;
3286
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
3287
+ readonly '~types'?: {
3288
+ readonly input: {
3289
+ chain: "starknet";
3290
+ mode: "mainnet" | "sepolia";
3291
+ blockExplorerUrl?: string | undefined;
3292
+ name: string;
3293
+ xverseApiUrl: string;
3294
+ rpcApiUrl: string;
3295
+ };
3296
+ readonly output: {
3297
+ chain: "starknet";
3298
+ mode: "mainnet" | "sepolia";
3299
+ blockExplorerUrl?: string | undefined;
3300
+ name: string;
3301
+ xverseApiUrl: string;
3302
+ rpcApiUrl: string;
3303
+ };
3304
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
3305
+ } | undefined;
3306
+ }], undefined>;
3307
+ type NewNetworkDefinition = v.InferOutput<typeof newNetworkDefinitionSchema>;
3308
+ declare const addNetworkParamsSchema: v.ObjectSchema<{
3309
+ readonly network: v.VariantSchema<"chain", [Omit<v.ObjectSchema<{
3310
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
3311
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3312
+ readonly electrsApiUrl: v.StringSchema<undefined>;
3313
+ readonly id: v.StringSchema<undefined>;
3314
+ readonly name: v.StringSchema<undefined>;
3315
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3316
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
3317
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
3318
+ readonly entries: Omit<{
3319
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
3320
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3321
+ readonly electrsApiUrl: v.StringSchema<undefined>;
3322
+ readonly id: v.StringSchema<undefined>;
3323
+ readonly name: v.StringSchema<undefined>;
3324
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3325
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
3326
+ }, "id">;
3327
+ readonly '~standard': v.StandardProps<{
3328
+ chain: "bitcoin";
3329
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3330
+ blockExplorerUrl?: string | undefined;
3331
+ name: string;
3332
+ xverseApiUrl: string;
3333
+ electrsApiUrl: string;
3334
+ }, {
3335
+ chain: "bitcoin";
3336
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3337
+ blockExplorerUrl?: string | undefined;
3338
+ name: string;
3339
+ xverseApiUrl: string;
3340
+ electrsApiUrl: string;
3341
+ }>;
3342
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
3343
+ chain: "bitcoin";
3344
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3345
+ blockExplorerUrl?: string | undefined;
3346
+ name: string;
3347
+ xverseApiUrl: string;
3348
+ electrsApiUrl: string;
3349
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
3350
+ readonly '~types'?: {
3351
+ readonly input: {
3352
+ chain: "bitcoin";
3353
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3354
+ blockExplorerUrl?: string | undefined;
3355
+ name: string;
3356
+ xverseApiUrl: string;
3357
+ electrsApiUrl: string;
3358
+ };
3359
+ readonly output: {
3360
+ chain: "bitcoin";
3361
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3362
+ blockExplorerUrl?: string | undefined;
3363
+ name: string;
3364
+ xverseApiUrl: string;
3365
+ electrsApiUrl: string;
3366
+ };
3367
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
3368
+ } | undefined;
3369
+ }, Omit<v.ObjectSchema<{
3370
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
3371
+ readonly electrsApiUrl: v.StringSchema<undefined>;
3372
+ readonly id: v.StringSchema<undefined>;
3373
+ readonly name: v.StringSchema<undefined>;
3374
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3375
+ readonly chain: v.LiteralSchema<"spark", undefined>;
3376
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
3377
+ readonly entries: Omit<{
3378
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
3379
+ readonly electrsApiUrl: v.StringSchema<undefined>;
3380
+ readonly id: v.StringSchema<undefined>;
3381
+ readonly name: v.StringSchema<undefined>;
3382
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3383
+ readonly chain: v.LiteralSchema<"spark", undefined>;
3384
+ }, "id">;
3385
+ readonly '~standard': v.StandardProps<{
3386
+ chain: "spark";
3387
+ mode: "mainnet" | "regtest";
3388
+ blockExplorerUrl?: string | undefined;
3389
+ name: string;
3390
+ electrsApiUrl: string;
3391
+ }, {
3392
+ chain: "spark";
3393
+ mode: "mainnet" | "regtest";
3394
+ blockExplorerUrl?: string | undefined;
3395
+ name: string;
3396
+ electrsApiUrl: string;
3397
+ }>;
3398
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
3399
+ chain: "spark";
3400
+ mode: "mainnet" | "regtest";
3401
+ blockExplorerUrl?: string | undefined;
3402
+ name: string;
3403
+ electrsApiUrl: string;
3404
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
3405
+ readonly '~types'?: {
3406
+ readonly input: {
3407
+ chain: "spark";
3408
+ mode: "mainnet" | "regtest";
3409
+ blockExplorerUrl?: string | undefined;
3410
+ name: string;
3411
+ electrsApiUrl: string;
3412
+ };
3413
+ readonly output: {
3414
+ chain: "spark";
3415
+ mode: "mainnet" | "regtest";
3416
+ blockExplorerUrl?: string | undefined;
3417
+ name: string;
3418
+ electrsApiUrl: string;
3419
+ };
3420
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
3421
+ } | undefined;
3422
+ }, Omit<v.ObjectSchema<{
3423
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
3424
+ readonly stacksApiUrl: v.StringSchema<undefined>;
3425
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3426
+ readonly id: v.StringSchema<undefined>;
3427
+ readonly name: v.StringSchema<undefined>;
3428
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3429
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
3430
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
3431
+ readonly entries: Omit<{
3432
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
3433
+ readonly stacksApiUrl: v.StringSchema<undefined>;
3434
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3435
+ readonly id: v.StringSchema<undefined>;
3436
+ readonly name: v.StringSchema<undefined>;
3437
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3438
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
3439
+ }, "id">;
3440
+ readonly '~standard': v.StandardProps<{
3441
+ chain: "stacks";
3442
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3443
+ blockExplorerUrl?: string | undefined;
3444
+ name: string;
3445
+ xverseApiUrl: string;
3446
+ stacksApiUrl: string;
3447
+ }, {
3448
+ chain: "stacks";
3449
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3450
+ blockExplorerUrl?: string | undefined;
3451
+ name: string;
3452
+ xverseApiUrl: string;
3453
+ stacksApiUrl: string;
3454
+ }>;
3455
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
3456
+ chain: "stacks";
3457
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3458
+ blockExplorerUrl?: string | undefined;
3459
+ name: string;
3460
+ xverseApiUrl: string;
3461
+ stacksApiUrl: string;
3462
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
3463
+ readonly '~types'?: {
3464
+ readonly input: {
3465
+ chain: "stacks";
3466
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3467
+ blockExplorerUrl?: string | undefined;
3468
+ name: string;
3469
+ xverseApiUrl: string;
3470
+ stacksApiUrl: string;
3471
+ };
3472
+ readonly output: {
3473
+ chain: "stacks";
3474
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3475
+ blockExplorerUrl?: string | undefined;
3476
+ name: string;
3477
+ xverseApiUrl: string;
3478
+ stacksApiUrl: string;
3479
+ };
3480
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
3481
+ } | undefined;
3482
+ }, Omit<v.ObjectSchema<{
3483
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
3484
+ readonly rpcApiUrl: v.StringSchema<undefined>;
3485
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3486
+ readonly id: v.StringSchema<undefined>;
3487
+ readonly name: v.StringSchema<undefined>;
3488
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3489
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
3490
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
3491
+ readonly entries: Omit<{
3492
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
3493
+ readonly rpcApiUrl: v.StringSchema<undefined>;
3494
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3495
+ readonly id: v.StringSchema<undefined>;
3496
+ readonly name: v.StringSchema<undefined>;
3497
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3498
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
3499
+ }, "id">;
3500
+ readonly '~standard': v.StandardProps<{
3501
+ chain: "starknet";
3502
+ mode: "mainnet" | "sepolia";
3503
+ blockExplorerUrl?: string | undefined;
3504
+ name: string;
3505
+ xverseApiUrl: string;
3506
+ rpcApiUrl: string;
3507
+ }, {
3508
+ chain: "starknet";
3509
+ mode: "mainnet" | "sepolia";
3510
+ blockExplorerUrl?: string | undefined;
3511
+ name: string;
3512
+ xverseApiUrl: string;
3513
+ rpcApiUrl: string;
3514
+ }>;
3515
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
3516
+ chain: "starknet";
3517
+ mode: "mainnet" | "sepolia";
3518
+ blockExplorerUrl?: string | undefined;
3519
+ name: string;
3520
+ xverseApiUrl: string;
3521
+ rpcApiUrl: string;
3522
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
3523
+ readonly '~types'?: {
3524
+ readonly input: {
3525
+ chain: "starknet";
3526
+ mode: "mainnet" | "sepolia";
3527
+ blockExplorerUrl?: string | undefined;
3528
+ name: string;
3529
+ xverseApiUrl: string;
3530
+ rpcApiUrl: string;
3531
+ };
3532
+ readonly output: {
3533
+ chain: "starknet";
3534
+ mode: "mainnet" | "sepolia";
3535
+ blockExplorerUrl?: string | undefined;
3536
+ name: string;
3537
+ xverseApiUrl: string;
3538
+ rpcApiUrl: string;
3539
+ };
3540
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
3541
+ } | undefined;
3542
+ }], undefined>;
3543
+ readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3544
+ }, undefined>;
3545
+ type AddNetworkParams = v.InferOutput<typeof addNetworkParamsSchema>;
3546
+ declare const addNetworkRequestMessageSchema: v.ObjectSchema<{
3547
+ readonly method: v.LiteralSchema<"wallet_addNetwork", undefined>;
3548
+ readonly params: v.ObjectSchema<{
3549
+ readonly network: v.VariantSchema<"chain", [Omit<v.ObjectSchema<{
3550
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
3551
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3552
+ readonly electrsApiUrl: v.StringSchema<undefined>;
3553
+ readonly id: v.StringSchema<undefined>;
3554
+ readonly name: v.StringSchema<undefined>;
3555
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3556
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
3557
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
3558
+ readonly entries: Omit<{
3559
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "testnet4", "signet", "regtest"], undefined>;
3560
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3561
+ readonly electrsApiUrl: v.StringSchema<undefined>;
3562
+ readonly id: v.StringSchema<undefined>;
3563
+ readonly name: v.StringSchema<undefined>;
3564
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3565
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
3566
+ }, "id">;
3567
+ readonly '~standard': v.StandardProps<{
3568
+ chain: "bitcoin";
3569
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3570
+ blockExplorerUrl?: string | undefined;
3571
+ name: string;
3572
+ xverseApiUrl: string;
3573
+ electrsApiUrl: string;
3574
+ }, {
3575
+ chain: "bitcoin";
3576
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3577
+ blockExplorerUrl?: string | undefined;
3578
+ name: string;
3579
+ xverseApiUrl: string;
3580
+ electrsApiUrl: string;
3581
+ }>;
3582
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
3583
+ chain: "bitcoin";
3584
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3585
+ blockExplorerUrl?: string | undefined;
3586
+ name: string;
3587
+ xverseApiUrl: string;
3588
+ electrsApiUrl: string;
3589
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
3590
+ readonly '~types'?: {
3591
+ readonly input: {
3592
+ chain: "bitcoin";
3593
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3594
+ blockExplorerUrl?: string | undefined;
3595
+ name: string;
3596
+ xverseApiUrl: string;
3597
+ electrsApiUrl: string;
3598
+ };
3599
+ readonly output: {
3600
+ chain: "bitcoin";
3601
+ mode: "mainnet" | "testnet" | "testnet4" | "signet" | "regtest";
3602
+ blockExplorerUrl?: string | undefined;
3603
+ name: string;
3604
+ xverseApiUrl: string;
3605
+ electrsApiUrl: string;
3606
+ };
3607
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
3608
+ } | undefined;
3609
+ }, Omit<v.ObjectSchema<{
3610
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
3611
+ readonly electrsApiUrl: v.StringSchema<undefined>;
3612
+ readonly id: v.StringSchema<undefined>;
3613
+ readonly name: v.StringSchema<undefined>;
3614
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3615
+ readonly chain: v.LiteralSchema<"spark", undefined>;
3616
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
3617
+ readonly entries: Omit<{
3618
+ readonly mode: v.PicklistSchema<["mainnet", "regtest"], undefined>;
3619
+ readonly electrsApiUrl: v.StringSchema<undefined>;
3620
+ readonly id: v.StringSchema<undefined>;
3621
+ readonly name: v.StringSchema<undefined>;
3622
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3623
+ readonly chain: v.LiteralSchema<"spark", undefined>;
3624
+ }, "id">;
3625
+ readonly '~standard': v.StandardProps<{
3626
+ chain: "spark";
3627
+ mode: "mainnet" | "regtest";
3628
+ blockExplorerUrl?: string | undefined;
3629
+ name: string;
3630
+ electrsApiUrl: string;
3631
+ }, {
3632
+ chain: "spark";
3633
+ mode: "mainnet" | "regtest";
3634
+ blockExplorerUrl?: string | undefined;
3635
+ name: string;
3636
+ electrsApiUrl: string;
3637
+ }>;
3638
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
3639
+ chain: "spark";
3640
+ mode: "mainnet" | "regtest";
3641
+ blockExplorerUrl?: string | undefined;
3642
+ name: string;
3643
+ electrsApiUrl: string;
3644
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
3645
+ readonly '~types'?: {
3646
+ readonly input: {
3647
+ chain: "spark";
3648
+ mode: "mainnet" | "regtest";
3649
+ blockExplorerUrl?: string | undefined;
3650
+ name: string;
3651
+ electrsApiUrl: string;
3652
+ };
3653
+ readonly output: {
3654
+ chain: "spark";
3655
+ mode: "mainnet" | "regtest";
3656
+ blockExplorerUrl?: string | undefined;
3657
+ name: string;
3658
+ electrsApiUrl: string;
3659
+ };
3660
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
3661
+ } | undefined;
3662
+ }, Omit<v.ObjectSchema<{
3663
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
3664
+ readonly stacksApiUrl: v.StringSchema<undefined>;
3665
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3666
+ readonly id: v.StringSchema<undefined>;
3667
+ readonly name: v.StringSchema<undefined>;
3668
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3669
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
3670
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
3671
+ readonly entries: Omit<{
3672
+ readonly mode: v.PicklistSchema<["mainnet", "testnet", "devnet", "mocknet"], undefined>;
3673
+ readonly stacksApiUrl: v.StringSchema<undefined>;
3674
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3675
+ readonly id: v.StringSchema<undefined>;
3676
+ readonly name: v.StringSchema<undefined>;
3677
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3678
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
3679
+ }, "id">;
3680
+ readonly '~standard': v.StandardProps<{
3681
+ chain: "stacks";
3682
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3683
+ blockExplorerUrl?: string | undefined;
3684
+ name: string;
3685
+ xverseApiUrl: string;
3686
+ stacksApiUrl: string;
3687
+ }, {
3688
+ chain: "stacks";
3689
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3690
+ blockExplorerUrl?: string | undefined;
3691
+ name: string;
3692
+ xverseApiUrl: string;
3693
+ stacksApiUrl: string;
3694
+ }>;
3695
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
3696
+ chain: "stacks";
3697
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3698
+ blockExplorerUrl?: string | undefined;
3699
+ name: string;
3700
+ xverseApiUrl: string;
3701
+ stacksApiUrl: string;
3702
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
3703
+ readonly '~types'?: {
3704
+ readonly input: {
3705
+ chain: "stacks";
3706
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3707
+ blockExplorerUrl?: string | undefined;
3708
+ name: string;
3709
+ xverseApiUrl: string;
3710
+ stacksApiUrl: string;
3711
+ };
3712
+ readonly output: {
3713
+ chain: "stacks";
3714
+ mode: "mainnet" | "testnet" | "devnet" | "mocknet";
3715
+ blockExplorerUrl?: string | undefined;
3716
+ name: string;
3717
+ xverseApiUrl: string;
3718
+ stacksApiUrl: string;
3719
+ };
3720
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
3721
+ } | undefined;
3722
+ }, Omit<v.ObjectSchema<{
3723
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
3724
+ readonly rpcApiUrl: v.StringSchema<undefined>;
3725
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3726
+ readonly id: v.StringSchema<undefined>;
3727
+ readonly name: v.StringSchema<undefined>;
3728
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3729
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
3730
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
3731
+ readonly entries: Omit<{
3732
+ readonly mode: v.PicklistSchema<["mainnet", "sepolia"], undefined>;
3733
+ readonly rpcApiUrl: v.StringSchema<undefined>;
3734
+ readonly xverseApiUrl: v.StringSchema<undefined>;
3735
+ readonly id: v.StringSchema<undefined>;
3736
+ readonly name: v.StringSchema<undefined>;
3737
+ readonly blockExplorerUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
3738
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
3739
+ }, "id">;
3740
+ readonly '~standard': v.StandardProps<{
3741
+ chain: "starknet";
3742
+ mode: "mainnet" | "sepolia";
3743
+ blockExplorerUrl?: string | undefined;
3744
+ name: string;
3745
+ xverseApiUrl: string;
3746
+ rpcApiUrl: string;
3747
+ }, {
3748
+ chain: "starknet";
3749
+ mode: "mainnet" | "sepolia";
3750
+ blockExplorerUrl?: string | undefined;
3751
+ name: string;
3752
+ xverseApiUrl: string;
3753
+ rpcApiUrl: string;
3754
+ }>;
3755
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
3756
+ chain: "starknet";
3757
+ mode: "mainnet" | "sepolia";
3758
+ blockExplorerUrl?: string | undefined;
3759
+ name: string;
3760
+ xverseApiUrl: string;
3761
+ rpcApiUrl: string;
3762
+ }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>>;
3763
+ readonly '~types'?: {
3764
+ readonly input: {
3765
+ chain: "starknet";
3766
+ mode: "mainnet" | "sepolia";
3767
+ blockExplorerUrl?: string | undefined;
3768
+ name: string;
3769
+ xverseApiUrl: string;
3770
+ rpcApiUrl: string;
3771
+ };
3772
+ readonly output: {
3773
+ chain: "starknet";
3774
+ mode: "mainnet" | "sepolia";
3775
+ blockExplorerUrl?: string | undefined;
3776
+ name: string;
3777
+ xverseApiUrl: string;
3778
+ rpcApiUrl: string;
3779
+ };
3780
+ readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.UrlIssue<string>;
3781
+ } | undefined;
3782
+ }], undefined>;
3783
+ readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3784
+ }, undefined>;
3785
+ readonly id: v.StringSchema<undefined>;
3786
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3787
+ }, undefined>;
3788
+ type AddNetworkRequestMessage = v.InferOutput<typeof addNetworkRequestMessageSchema>;
3789
+ declare const addNetworkResultSchema: v.ObjectSchema<{
3790
+ readonly id: v.StringSchema<undefined>;
3791
+ }, undefined>;
3792
+ type AddNetworkResult = v.InferOutput<typeof addNetworkResultSchema>;
3793
+ type AddNetwork = MethodParamsAndResult<AddNetworkParams, AddNetworkResult>;
3794
+ //#endregion
3795
+ //#region src/request/types/common.d.ts
3796
+ declare const walletTypes: readonly ["software", "ledger", "keystone"];
3797
+ declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
3798
+ type WalletType = v.InferOutput<typeof walletTypeSchema>;
3799
+ //#endregion
3800
+ //#region src/request/types/index.d.ts
3801
+ type StxRequests = {
3802
+ stx_callContract: StxCallContract;
3803
+ stx_deployContract: StxDeployContract;
3804
+ stx_getAccounts: StxGetAccounts;
3805
+ stx_getAddresses: StxGetAddresses;
3806
+ stx_signMessage: StxSignMessage;
3807
+ stx_signStructuredMessage: StxSignStructuredMessage;
3808
+ stx_signTransaction: StxSignTransaction;
3809
+ stx_transferStx: StxTransferStx;
3810
+ stx_signTransactions: StxSignTransactions;
3811
+ };
3812
+ type StxRequestMethod = keyof StxRequests;
3813
+ type SparkRequests = {
3814
+ [sparkGetAddressesMethodName]: SparkGetAddresses;
3815
+ [sparkGetBalanceMethodName]: SparkGetBalance;
3816
+ [sparkTransferMethodName]: SparkTransfer;
3817
+ [sparkTransferTokenMethodName]: SparkTransferToken;
3818
+ [sparkSignMessageMethodName]: SparkSignMessage;
3819
+ [sparkFlashnetGetJwtMethodName]: SparkFlashnetGetJwt;
3820
+ [sparkFlashnetSignIntentMethodName]: SparkFlashnetSignIntent;
3821
+ [sparkFlashnetSignStructuredMessageMethodName]: SparkFlashnetSignStructuredMessage;
3822
+ };
3823
+ type SparkRequestMethod = keyof SparkRequests;
3824
+ type BtcRequests = {
3825
+ getInfo: GetInfo;
3826
+ getAddresses: GetAddresses;
3827
+ getAccounts: GetAccounts;
3828
+ getBalance: GetBalance;
3829
+ signMessage: SignMessage;
3830
+ sendTransfer: SendTransfer;
3831
+ signPsbt: SignPsbt;
3832
+ };
3833
+ type BtcRequestMethod = keyof BtcRequests;
3834
+ type RunesRequests = {
3835
+ runes_estimateEtch: RunesEstimateEtch;
3836
+ runes_estimateMint: RunesEstimateMint;
3837
+ runes_estimateRbfOrder: RunesEstimateRbfOrder;
3838
+ runes_etch: RunesEtch;
3839
+ runes_getBalance: RunesGetBalance;
3840
+ runes_getOrder: RunesGetOrder;
3841
+ runes_mint: RunesMint;
3842
+ runes_rbfOrder: RunesRbfOrder;
3843
+ runes_transfer: RunesTransfer;
3844
+ };
3845
+ type RunesRequestMethod = keyof RunesRequests;
3846
+ type OrdinalsRequests = {
3847
+ ord_getInscriptions: GetInscriptions;
3848
+ ord_sendInscriptions: SendInscriptions;
3849
+ };
3850
+ type OrdinalsRequestMethod = keyof OrdinalsRequests;
3851
+ type WalletRequests = {
3852
+ wallet_addNetwork: AddNetwork;
3853
+ wallet_changeNetwork: ChangeNetwork;
3854
+ wallet_changeNetworkById: ChangeNetworkById;
3855
+ wallet_connect: Connect;
3856
+ wallet_disconnect: Disconnect;
3857
+ wallet_getAccount: GetAccount;
3858
+ wallet_getCurrentPermissions: GetCurrentPermissions;
3859
+ wallet_getNetworks: GetNetworks;
3860
+ wallet_getWalletType: GetWalletType;
3861
+ wallet_renouncePermissions: RenouncePermissions;
3862
+ wallet_requestPermissions: RequestPermissions;
3863
+ };
3864
+ type Requests = BtcRequests & StxRequests & SparkRequests & RunesRequests & WalletRequests & OrdinalsRequests;
3865
+ type Return<Method$1> = Method$1 extends keyof Requests ? Requests[Method$1]['result'] : never;
3866
+ type Params<Method$1> = Method$1 extends keyof Requests ? Requests[Method$1]['params'] : never;
3867
+ //#endregion
3868
+ //#region src/request/index.d.ts
3869
+ declare const request: <Method extends keyof Requests>(method: Method, params: Params<Method>,
3870
+ /**
3871
+ * The providerId is the object path to the provider in the window object.
3872
+ * E.g., a provider available at `window.Foo.BarProvider` would have a
3873
+ * providerId of `Foo.BarProvider`.
3874
+ */
3875
+ providerId?: string) => Promise<RpcResult<Method>>;
3876
+ /**
3877
+ * Adds an event listener.
3878
+ *
3879
+ * Currently expects 2 arguments, although is also capable of handling legacy
3880
+ * calls with 3 arguments consisting of:
3881
+ *
3882
+ * - event name (string)
3883
+ * - callback (function)
3884
+ * - provider ID (optional string)
3885
+ */
3886
+ declare const addListener: (...rawArgs: unknown[]) => ReturnType<AddListener>;
3887
+ //#endregion
3888
+ //#region src/adapters/satsConnectAdapter.d.ts
3889
+ declare abstract class SatsConnectAdapter {
3890
+ abstract readonly id: string;
3891
+ private mintRunes;
3892
+ private etchRunes;
3893
+ private estimateMint;
3894
+ private estimateEtch;
3895
+ private getOrder;
3896
+ private estimateRbfOrder;
3897
+ private rbfOrder;
3898
+ request<Method extends keyof Requests>(method: Method, params: Params<Method>): Promise<RpcResult<Method>>;
3899
+ abstract addListener: AddListener;
3900
+ protected abstract requestInternal<Method extends keyof Requests>(method: Method, params: Params<Method>): Promise<RpcResult<Method>>;
3901
+ }
3902
+ //#endregion
3903
+ //#region src/adapters/BaseAdapter.d.ts
3904
+ declare class BaseAdapter extends SatsConnectAdapter {
3905
+ id: string;
3906
+ constructor(providerId: string);
3907
+ requestInternal: <Method extends keyof Requests>(method: Method, params: Params<Method>) => Promise<RpcResult<Method>>;
3908
+ addListener: AddListener;
3909
+ }
3910
+ //#endregion
3911
+ //#region src/adapters/index.d.ts
3912
+ declare const DefaultAdaptersInfo: Record<string, Provider>;
3913
+ declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
3914
+ //#endregion
3915
+ export { AccountChangeCallback, AccountChangeEvent, AddListener, AddNetwork, AddNetworkParams, AddNetworkRequestMessage, AddNetworkResult, Address, AddressPurpose, AddressType, BaseAdapter, BitcoinNetwork, BitcoinNetworkDefinition, BitcoinNetworkType, BitcoinProvider, BtcRequestMethod, BtcRequests, Capability, ChangeNetwork, ChangeNetworkById, ChangeNetworkByIdParams, ChangeNetworkByIdRequestMessage, ChangeNetworkByIdResult, ChangeNetworkParams, ChangeNetworkRequestMessage, ChangeNetworkResult, Connect, ConnectParams, ConnectRequestMessage, ConnectResult, CreateInscriptionOptions, CreateInscriptionPayload, CreateInscriptionResponse, CreateRepeatInscriptionsOptions, CreateRepeatInscriptionsPayload, CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, Disconnect, DisconnectCallback, DisconnectEvent, DisconnectParams, DisconnectRequestMessage, DisconnectResult, GetAccount, GetAccountParams, GetAccountRequestMessage, GetAccountResult, GetAccounts, GetAccountsParams, GetAccountsRequestMessage, GetAccountsResult, GetAddressOptions, GetAddressPayload, GetAddressResponse, GetAddresses, GetAddressesParams, GetAddressesRequestMessage, GetAddressesResult, GetBalance, GetBalanceParams, GetBalanceRequestMessage, GetBalanceResult, GetCapabilitiesOptions, GetCapabilitiesPayload, GetCapabilitiesResponse, GetCurrentPermissions, GetCurrentPermissionsParams, GetCurrentPermissionsRequestMessage, GetCurrentPermissionsResult, GetInfo, GetInfoParams, GetInfoRequestMessage, GetInfoResult, GetInscriptions, GetInscriptionsParams, GetInscriptionsRequestMessage, GetInscriptionsResult, GetNetworks, GetNetworksParams, GetNetworksRequestMessage, GetNetworksResult, GetWalletType, GetWalletTypeParams, GetWalletTypeRequestMessage, GetWalletTypeResult, InputToSign, ListenerInfo, MessageSigningProtocols, MethodParamsAndResult, NetworkChangeCallback, NetworkChangeEvent, NewNetworkDefinition, OrdinalsRequestMethod, OrdinalsRequests, Params, PermissionRequestParams, PermissionWithoutClientId, Provider, ProviderPlatform, PsbtPayload, Recipient, RenouncePermissions, RenouncePermissionsParams, RenouncePermissionsRequestMessage, RenouncePermissionsResult, RequestOptions, RequestPayload, RequestPermissions, RequestPermissionsParams, RequestPermissionsRequestMessage, RequestPermissionsResult, Requests, Return, RpcBase, RpcError, RpcErrorCode, RpcErrorResponse, RpcErrorResponseMessage, RpcId, RpcIdSchema, RpcRequest, RpcRequestMessage, RpcResponse, RpcResponseMessage, RpcResult, RpcSuccessResponse, RpcSuccessResponseMessage, RunesEstimateEtch, RunesEstimateEtchParams, RunesEstimateEtchResult, RunesEstimateMint, RunesEstimateRbfOrder, RunesEtch, RunesEtchParams, RunesEtchRequestMessage, RunesEtchResult, RunesGetBalance, RunesGetBalanceParams, RunesGetBalanceResult, RunesGetOrder, RunesMint, RunesMintParams, RunesMintRequestMessage, RunesMintResult, RunesRbfOrder, RunesRequestMethod, RunesRequests, RunesTransfer, RunesTransferRequestMessage, RunesTransferResult, SatsConnectAdapter, SendBtcTransactionOptions, SendBtcTransactionPayload, SendBtcTransactionResponse, SendInscriptions, SendInscriptionsParams, SendInscriptionsRequestMessage, SendInscriptionsResult, SendTransfer, SendTransferParams, SendTransferRequestMessage, SendTransferResult, SerializedRecipient, SerializedSendBtcTransactionPayload, SignMessage, SignMessageOptions, SignMessageParams, SignMessagePayload, SignMessageRequestMessage, SignMessageResponse, SignMessageResult, SignMultiplePsbtPayload, SignMultipleTransactionOptions, SignMultipleTransactionsPayload, SignMultipleTransactionsResponse, SignPsbt, SignPsbtParams, SignPsbtRequestMessage, SignPsbtResult, SignTransactionOptions, SignTransactionPayload, SignTransactionResponse, SparkFlashnetGetJwt, SparkFlashnetGetJwtParams, SparkFlashnetGetJwtRequestMessage, SparkFlashnetGetJwtResult, SparkFlashnetSignIntent, SparkFlashnetSignIntentParams, SparkFlashnetSignIntentRequestMessage, SparkFlashnetSignIntentResult, SparkFlashnetSignStructuredMessage, SparkFlashnetSignStructuredMessageParams, SparkFlashnetSignStructuredMessageRequestMessage, SparkFlashnetSignStructuredMessageResult, SparkGetAddresses, SparkGetAddressesParams, SparkGetAddressesRequestMessage, SparkGetAddressesResult, SparkGetBalance, SparkGetBalanceParams, SparkGetBalanceRequestMessage, SparkGetBalanceResult, SparkNetworkDefinition, SparkNetworkType, SparkRequestMethod, SparkRequests, SparkSignMessage, SparkSignMessageParams, SparkSignMessageRequestMessage, SparkSignMessageResult, SparkTransfer, SparkTransferParams, SparkTransferRequestMessage, SparkTransferResult, SparkTransferToken, SparkTransferTokenParams, SparkTransferTokenRequestMessage, SparkTransferTokenResult, StacksNetworkDefinition, StacksNetworkType, StarknetNetworkDefinition, StarknetNetworkType, StxCallContract, StxCallContractParams, StxCallContractRequestMessage, StxCallContractResult, StxDeployContract, StxDeployContractParams, StxDeployContractRequestMessage, StxDeployContractResult, StxGetAccounts, StxGetAccountsParams, StxGetAccountsRequestMessage, StxGetAccountsResult, StxGetAddresses, StxGetAddressesParams, StxGetAddressesRequestMessage, StxGetAddressesResult, StxRequestMethod, StxRequests, StxSignMessage, StxSignMessageParams, StxSignMessageRequestMessage, StxSignMessageResult, StxSignStructuredMessage, StxSignStructuredMessageParams, StxSignStructuredMessageRequestMessage, StxSignStructuredMessageResult, StxSignTransaction, StxSignTransactionParams, StxSignTransactionRequestMessage, StxSignTransactionResult, StxSignTransactions, StxSignTransactionsParams, StxSignTransactionsRequestMessage, StxSignTransactionsResult, StxTransferStx, StxTransferStxParams, StxTransferStxRequestMessage, StxTransferStxResult, SupportedWallet, TransferRunesParams, WalletEvent, WalletRequests, WalletType, accountActionsSchema, accountChangeEventName, accountChangeSchema, accountPermissionSchema, addListener, addNetworkMethodName, addNetworkParamsSchema, addNetworkRequestMessageSchema, addNetworkResultSchema, addressSchema, bitcoinNetworkDefinitionSchema, 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, getNetworksMethodName, getNetworksParamsSchema, getNetworksRequestMessageSchema, getNetworksResultSchema, getProviderById, getProviderOrThrow, getProviders, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, newNetworkDefinitionSchema, permission, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, runesEstimateMintParams, runesEstimateMintResult, runesEtchMethodName, runesEtchParamsSchema, runesEtchRequestMessageSchema, runesEtchResultSchema, runesGetBalanceMethodName, runesGetBalanceParamsSchema, 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, sparkFlashnetAddLiquidityIntentSchema, sparkFlashnetClawbackIntentSchema, sparkFlashnetConfirmInitialDepositIntentSchema, sparkFlashnetCreateConstantProductPoolIntentSchema, sparkFlashnetCreateSingleSidedPoolIntentSchema, sparkFlashnetGetJwtMethodName, sparkFlashnetGetJwtParamsSchema, sparkFlashnetGetJwtRequestMessageSchema, sparkFlashnetGetJwtResultSchema, sparkFlashnetRemoveLiquidityIntentSchema, sparkFlashnetRouteSwapIntentSchema, sparkFlashnetSignIntentMethodName, sparkFlashnetSignIntentParamsSchema, sparkFlashnetSignIntentRequestMessageSchema, sparkFlashnetSignIntentResultSchema, sparkFlashnetSignStructuredMessageMethodName, sparkFlashnetSignStructuredMessageParamsSchema, sparkFlashnetSignStructuredMessageRequestMessageSchema, sparkFlashnetSignStructuredMessageResultSchema, sparkFlashnetSwapIntentSchema, sparkGetAddressesMethodName, sparkGetAddressesParamsSchema, sparkGetAddressesRequestMessageSchema, sparkGetAddressesResultSchema, sparkGetBalanceMethodName, sparkGetBalanceParamsSchema, sparkGetBalanceRequestMessageSchema, sparkGetBalanceResultSchema, sparkNetworkDefinitionSchema, sparkSignMessageMethodName, sparkSignMessageParamsSchema, sparkSignMessageRequestMessageSchema, sparkSignMessageResultSchema, sparkTransferMethodName, sparkTransferParamsSchema, sparkTransferRequestMessageSchema, sparkTransferResultSchema, sparkTransferTokenMethodName, sparkTransferTokenParamsSchema, sparkTransferTokenRequestMessageSchema, sparkTransferTokenResultSchema, stacksNetworkDefinitionSchema, starknetNetworkDefinitionSchema, 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 };