@sats-connect/core 0.16.0-2dd02aa → 0.16.0-4c59967

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,4173 @@
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 RpcRequests> extends RpcBase {
128
+ result: RpcSuccessResponseResult<Method$1>;
129
+ }
130
+ type RpcResponse<Method$1 extends keyof RpcRequests> = RpcSuccessResponse<Method$1> | RpcErrorResponse;
131
+ type RpcResult<Method$1 extends keyof RpcRequests> = {
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 bitcoin: v.ObjectSchema<{
301
+ readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
302
+ }, undefined>;
303
+ readonly stacks: v.ObjectSchema<{
304
+ readonly name: v.StringSchema<undefined>;
305
+ }, undefined>;
306
+ readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
307
+ readonly address: v.StringSchema<undefined>;
308
+ readonly publicKey: v.StringSchema<undefined>;
309
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
310
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
311
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
312
+ }, undefined>, undefined>, undefined>;
313
+ }, undefined>;
314
+ type NetworkChangeEvent = v.InferOutput<typeof networkChangeSchema>;
315
+ declare const networkChangeEventNameV2 = "networkChangeV2";
316
+ declare const networkChangeV2Schema: v.ObjectSchema<{
317
+ readonly type: v.LiteralSchema<"networkChange", undefined>;
318
+ readonly networks: v.ObjectSchema<{
319
+ readonly bitcoin: v.ObjectSchema<{
320
+ readonly mode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EnumSchema<{
321
+ readonly mainnet: "mainnet";
322
+ readonly testnet: "testnet";
323
+ readonly testnet4: "testnet4";
324
+ readonly signet: "signet";
325
+ readonly regtest: "regtest";
326
+ }, undefined>]>;
327
+ readonly xverseApiUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
328
+ readonly electrsApiUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
329
+ readonly id: v.StringSchema<undefined>;
330
+ readonly name: v.StringSchema<undefined>;
331
+ readonly blockExplorerUrl: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.LiteralSchema<"", undefined>, v.TransformAction<"", undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>], undefined>, undefined>;
332
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
333
+ }, undefined>;
334
+ readonly spark: v.ObjectSchema<{
335
+ readonly mode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EnumSchema<{
336
+ readonly mainnet: "mainnet";
337
+ readonly regtest: "regtest";
338
+ }, undefined>]>;
339
+ readonly electrsApiUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
340
+ readonly id: v.StringSchema<undefined>;
341
+ readonly name: v.StringSchema<undefined>;
342
+ readonly blockExplorerUrl: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.LiteralSchema<"", undefined>, v.TransformAction<"", undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>], undefined>, undefined>;
343
+ readonly chain: v.LiteralSchema<"spark", undefined>;
344
+ }, undefined>;
345
+ readonly stacks: v.ObjectSchema<{
346
+ readonly mode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EnumSchema<{
347
+ readonly mainnet: "mainnet";
348
+ readonly testnet: "testnet";
349
+ readonly devnet: "devnet";
350
+ readonly mocknet: "mocknet";
351
+ }, undefined>]>;
352
+ readonly stacksApiUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
353
+ readonly xverseApiUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
354
+ readonly id: v.StringSchema<undefined>;
355
+ readonly name: v.StringSchema<undefined>;
356
+ readonly blockExplorerUrl: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.LiteralSchema<"", undefined>, v.TransformAction<"", undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>], undefined>, undefined>;
357
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
358
+ }, undefined>;
359
+ readonly starknet: v.ObjectSchema<{
360
+ readonly mode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EnumSchema<{
361
+ readonly mainnet: "mainnet";
362
+ readonly sepolia: "sepolia";
363
+ }, undefined>]>;
364
+ readonly rpcApiUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
365
+ readonly xverseApiUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
366
+ readonly id: v.StringSchema<undefined>;
367
+ readonly name: v.StringSchema<undefined>;
368
+ readonly blockExplorerUrl: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.LiteralSchema<"", undefined>, v.TransformAction<"", undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>], undefined>, undefined>;
369
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
370
+ }, undefined>;
371
+ }, undefined>;
372
+ readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
373
+ readonly address: v.StringSchema<undefined>;
374
+ readonly publicKey: v.StringSchema<undefined>;
375
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
376
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
377
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
378
+ }, undefined>, undefined>, undefined>;
379
+ }, undefined>;
380
+ type NetworkChangeEventV2 = v.InferOutput<typeof networkChangeSchema>;
381
+ declare const disconnectEventName = "disconnect";
382
+ declare const disconnectSchema: v.ObjectSchema<{
383
+ readonly type: v.LiteralSchema<"disconnect", undefined>;
384
+ }, undefined>;
385
+ type DisconnectEvent = v.InferOutput<typeof disconnectSchema>;
386
+ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
387
+ readonly type: v.LiteralSchema<"accountChange", undefined>;
388
+ readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
389
+ readonly address: v.StringSchema<undefined>;
390
+ readonly publicKey: v.StringSchema<undefined>;
391
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
392
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
393
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
394
+ }, undefined>, undefined>, undefined>;
395
+ }, undefined>, v.ObjectSchema<{
396
+ readonly type: v.LiteralSchema<"networkChange", undefined>;
397
+ readonly bitcoin: v.ObjectSchema<{
398
+ readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
399
+ }, undefined>;
400
+ readonly stacks: v.ObjectSchema<{
401
+ readonly name: v.StringSchema<undefined>;
402
+ }, undefined>;
403
+ readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
404
+ readonly address: v.StringSchema<undefined>;
405
+ readonly publicKey: v.StringSchema<undefined>;
406
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
407
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
408
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
409
+ }, undefined>, undefined>, undefined>;
410
+ }, undefined>, v.ObjectSchema<{
411
+ readonly type: v.LiteralSchema<"disconnect", undefined>;
412
+ }, undefined>], undefined>;
413
+ type WalletEvent = v.InferOutput<typeof walletEventSchema>;
414
+ type AccountChangeCallback = (e: AccountChangeEvent) => void;
415
+ type DisconnectCallback = (e: DisconnectEvent) => void;
416
+ type NetworkChangeCallback = (e: NetworkChangeEvent) => void;
417
+ type ListenerInfo = {
418
+ eventName: typeof accountChangeEventName;
419
+ cb: AccountChangeCallback;
420
+ } | {
421
+ eventName: typeof disconnectEventName;
422
+ cb: DisconnectCallback;
423
+ } | {
424
+ eventName: typeof networkChangeEventName;
425
+ cb: NetworkChangeCallback;
426
+ };
427
+ type AddListener = (arg: ListenerInfo) => () => void;
428
+ interface BaseBitcoinProvider {
429
+ request: <Method$1 extends keyof RpcRequests>(method: Method$1, options: RpcRequestParams<Method$1>, providerId?: string) => Promise<RpcResponse<Method$1>>;
430
+ connect: (request: string) => Promise<GetAddressResponse>;
431
+ signMessage: (request: string) => Promise<SignMessageResponse>;
432
+ signTransaction: (request: string) => Promise<SignTransactionResponse>;
433
+ sendBtcTransaction: (request: string) => Promise<SendBtcTransactionResponse>;
434
+ createInscription: (request: string) => Promise<CreateInscriptionResponse>;
435
+ createRepeatInscriptions: (request: string) => Promise<CreateRepeatInscriptionsResponse>;
436
+ signMultipleTransactions: (request: string) => Promise<SignMultipleTransactionsResponse>;
437
+ addListener: AddListener;
438
+ }
439
+ type Capability = keyof BaseBitcoinProvider;
440
+ interface BitcoinProvider extends BaseBitcoinProvider {
441
+ getCapabilities?: (request: string) => Promise<GetCapabilitiesResponse>;
442
+ }
443
+ interface Provider {
444
+ id: string;
445
+ name: string;
446
+ icon: string;
447
+ webUrl?: string;
448
+ chromeWebStoreUrl?: string;
449
+ mozillaAddOnsUrl?: string;
450
+ googlePlayStoreUrl?: string;
451
+ iOSAppStoreUrl?: string;
452
+ methods?: (StacksMethod | BitcoinMethod | RunesMethod | OrdinalsMethod)[];
453
+ }
454
+ interface SupportedWallet extends Provider {
455
+ isInstalled: boolean;
456
+ }
457
+ declare global {
458
+ interface XverseProviders {
459
+ BitcoinProvider?: BitcoinProvider;
460
+ }
461
+ interface Window {
462
+ BitcoinProvider?: BitcoinProvider;
463
+ XverseProviders?: XverseProviders;
464
+ btc_providers?: Provider[];
465
+ }
466
+ }
467
+ //#endregion
468
+ //#region src/provider/index.d.ts
469
+ declare function getProviderOrThrow(getProvider?: () => Promise<BitcoinProvider | undefined>): Promise<BitcoinProvider>;
470
+ declare function getProviders(): Provider[];
471
+ declare function getProviderById(providerId: string): any;
472
+ declare function isProviderInstalled(providerId: string): boolean;
473
+ declare function setDefaultProvider(providerId: string): void;
474
+ declare function getDefaultProvider(): string | null;
475
+ declare function removeDefaultProvider(): void;
476
+ declare function getSupportedWallets(): SupportedWallet[];
477
+ //#endregion
478
+ //#region src/request/rpc/methodSchemas/bitcoin/getInfo/response.d.ts
479
+ declare enum ProviderPlatform {
480
+ Web = "web",
481
+ Mobile = "mobile",
482
+ }
483
+ declare const bitcoinGetInfoSuccessResponseSchema: v.ObjectSchema<{
484
+ readonly id: v.StringSchema<undefined>;
485
+ readonly result: v.ObjectSchema<{
486
+ /**
487
+ * Version of the wallet.
488
+ */
489
+ readonly version: v.StringSchema<undefined>;
490
+ /**
491
+ * The platform the wallet is running on (web or mobile).
492
+ */
493
+ readonly platform: v.OptionalSchema<v.EnumSchema<typeof ProviderPlatform, undefined>, undefined>;
494
+ /**
495
+ * [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
496
+ */
497
+ readonly methods: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
498
+ /**
499
+ * List of WBIP standards supported by the wallet. Not currently used.
500
+ */
501
+ readonly supports: v.ArraySchema<v.StringSchema<undefined>, undefined>;
502
+ }, undefined>;
503
+ readonly '~sats-connect-method': v.LiteralSchema<"getInfo", undefined>;
504
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
505
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
506
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
507
+ readonly message: v.StringSchema<undefined>;
508
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
509
+ }, undefined>], undefined>, undefined>;
510
+ }, undefined>, undefined>;
511
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
512
+ }, undefined>;
513
+ type BitcoinGetInfoSuccessResponse = v.InferOutput<typeof bitcoinGetInfoSuccessResponseSchema>;
514
+ //#endregion
515
+ //#region src/request/rpc/methodSchemas/bitcoin/getInfoV2/response.d.ts
516
+ declare enum ProviderPlatform$1 {
517
+ Web = "web",
518
+ Mobile = "mobile",
519
+ }
520
+ declare const bitcoinGetInfoV2SuccessResponseSchema: v.ObjectSchema<{
521
+ readonly id: v.StringSchema<undefined>;
522
+ readonly result: v.ObjectSchema<{
523
+ /**
524
+ * Version of the wallet.
525
+ */
526
+ readonly version: v.StringSchema<undefined>;
527
+ /**
528
+ * The platform the wallet is running on (web or mobile).
529
+ */
530
+ readonly platform: v.OptionalSchema<v.EnumSchema<typeof ProviderPlatform$1, undefined>, undefined>;
531
+ /**
532
+ * [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
533
+ */
534
+ readonly methods: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
535
+ /**
536
+ * List of WBIP standards supported by the wallet. Not currently used.
537
+ */
538
+ readonly supports: v.ArraySchema<v.StringSchema<undefined>, undefined>;
539
+ }, undefined>;
540
+ readonly '~sats-connect-method': v.LiteralSchema<"bitcoin_getInfoV2", undefined>;
541
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
542
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
543
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
544
+ readonly message: v.StringSchema<undefined>;
545
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
546
+ }, undefined>], undefined>, undefined>;
547
+ }, undefined>, undefined>;
548
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
549
+ }, undefined>;
550
+ type BitcoinGetInfoV2SuccessResponse = v.InferOutput<typeof bitcoinGetInfoV2SuccessResponseSchema>;
551
+ //#endregion
552
+ //#region src/request/rpc/methodSchemas/bitcoin/signMessage/response.d.ts
553
+ declare enum MessageSigningProtocols$7 {
554
+ ECDSA = "ECDSA",
555
+ BIP322 = "BIP322",
556
+ }
557
+ declare const bitcoinSignMessageSuccessResponseSchema: v.ObjectSchema<{
558
+ readonly id: v.StringSchema<undefined>;
559
+ readonly result: v.ObjectSchema<{
560
+ /**
561
+ * The signature of the message.
562
+ */
563
+ readonly signature: v.StringSchema<undefined>;
564
+ /**
565
+ * hash of the message.
566
+ */
567
+ readonly messageHash: v.StringSchema<undefined>;
568
+ /**
569
+ * The address used for signing.
570
+ */
571
+ readonly address: v.StringSchema<undefined>;
572
+ /**
573
+ * The protocol used for signing the message.
574
+ */
575
+ readonly protocol: v.EnumSchema<typeof MessageSigningProtocols$7, undefined>;
576
+ }, undefined>;
577
+ readonly '~sats-connect-method': v.LiteralSchema<"signMessage", undefined>;
578
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
579
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
580
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
581
+ readonly message: v.StringSchema<undefined>;
582
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
583
+ }, undefined>], undefined>, undefined>;
584
+ }, undefined>, undefined>;
585
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
586
+ }, undefined>;
587
+ type BitcoinSignMessageSuccessResponse = v.InferOutput<typeof bitcoinSignMessageSuccessResponseSchema>;
588
+ //#endregion
589
+ //#region src/request/rpc/methodSchemas/bitcoin/signMessageV2/response.d.ts
590
+ declare enum MessageSigningProtocols$6 {
591
+ ECDSA = "ECDSA",
592
+ BIP322 = "BIP322",
593
+ }
594
+ declare const bitcoinSignMessageV2SuccessResponseSchema: v.ObjectSchema<{
595
+ readonly id: v.StringSchema<undefined>;
596
+ readonly result: v.ObjectSchema<{
597
+ /**
598
+ * The signature of the message.
599
+ */
600
+ readonly signature: v.StringSchema<undefined>;
601
+ /**
602
+ * hash of the message.
603
+ */
604
+ readonly messageHash: v.StringSchema<undefined>;
605
+ /**
606
+ * The address used for signing.
607
+ */
608
+ readonly address: v.StringSchema<undefined>;
609
+ /**
610
+ * The protocol used for signing the message.
611
+ */
612
+ readonly protocol: v.EnumSchema<typeof MessageSigningProtocols$6, undefined>;
613
+ }, undefined>;
614
+ readonly '~sats-connect-method': v.LiteralSchema<"bitcoin_signMessageV2", undefined>;
615
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
616
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
617
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
618
+ readonly message: v.StringSchema<undefined>;
619
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
620
+ }, undefined>], undefined>, undefined>;
621
+ }, undefined>, undefined>;
622
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
623
+ }, undefined>;
624
+ type BitcoinSignMessageV2SuccessResponse = v.InferOutput<typeof bitcoinSignMessageV2SuccessResponseSchema>;
625
+ //#endregion
626
+ //#region src/request/rpc/methodSchemas/bitcoin/signMultipleMessages/response.d.ts
627
+ declare enum MessageSigningProtocols$5 {
628
+ ECDSA = "ECDSA",
629
+ BIP322 = "BIP322",
630
+ }
631
+ declare const bitcoinSignMultipleMessagesSuccessResponseSchema: v.ObjectSchema<{
632
+ readonly id: v.StringSchema<undefined>;
633
+ readonly result: v.ArraySchema<v.ObjectSchema<{
634
+ /**
635
+ * The signature of the message.
636
+ */
637
+ readonly signature: v.StringSchema<undefined>;
638
+ /**
639
+ * The original message which was signed.
640
+ */
641
+ readonly message: v.StringSchema<undefined>;
642
+ /**
643
+ * Hash of the message.
644
+ */
645
+ readonly messageHash: v.StringSchema<undefined>;
646
+ /**
647
+ * The address used for signing.
648
+ */
649
+ readonly address: v.StringSchema<undefined>;
650
+ /**
651
+ * The protocol used for signing the message.
652
+ */
653
+ readonly protocol: v.EnumSchema<typeof MessageSigningProtocols$5, undefined>;
654
+ }, undefined>, undefined>;
655
+ readonly '~sats-connect-method': v.LiteralSchema<"signMultipleMessages", undefined>;
656
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
657
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
658
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
659
+ readonly message: v.StringSchema<undefined>;
660
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
661
+ }, undefined>], undefined>, undefined>;
662
+ }, undefined>, undefined>;
663
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
664
+ }, undefined>;
665
+ type BitcoinSignMultipleMessagesSuccessResponse = v.InferOutput<typeof bitcoinSignMultipleMessagesSuccessResponseSchema>;
666
+ //#endregion
667
+ //#region src/request/rpc/methodSchemas/bitcoin/signMultipleMessagesV2/response.d.ts
668
+ declare enum MessageSigningProtocols$4 {
669
+ ECDSA = "ECDSA",
670
+ BIP322 = "BIP322",
671
+ }
672
+ declare const bitcoinSignMultipleMessagesV2SuccessResponseSchema: v.ObjectSchema<{
673
+ readonly id: v.StringSchema<undefined>;
674
+ readonly result: v.ArraySchema<v.ObjectSchema<{
675
+ /**
676
+ * The signature of the message.
677
+ */
678
+ readonly signature: v.StringSchema<undefined>;
679
+ /**
680
+ * The original message which was signed.
681
+ */
682
+ readonly message: v.StringSchema<undefined>;
683
+ /**
684
+ * Hash of the message.
685
+ */
686
+ readonly messageHash: v.StringSchema<undefined>;
687
+ /**
688
+ * The address used for signing.
689
+ */
690
+ readonly address: v.StringSchema<undefined>;
691
+ /**
692
+ * The protocol used for signing the message.
693
+ */
694
+ readonly protocol: v.EnumSchema<typeof MessageSigningProtocols$4, undefined>;
695
+ }, undefined>, undefined>;
696
+ readonly '~sats-connect-method': v.LiteralSchema<"bitcoin_signMultipleMessagesV2", undefined>;
697
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
698
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
699
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
700
+ readonly message: v.StringSchema<undefined>;
701
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
702
+ }, undefined>], undefined>, undefined>;
703
+ }, undefined>, undefined>;
704
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
705
+ }, undefined>;
706
+ type BitcoinSignMultipleMessagesV2SuccessResponse = v.InferOutput<typeof bitcoinSignMultipleMessagesV2SuccessResponseSchema>;
707
+ //#endregion
708
+ //#region src/request/methods.d.ts
709
+ declare const bitcoinMethods: {
710
+ readonly getAccounts: "getAccounts";
711
+ readonly bitcoin_getAccountsV2: "bitcoin_getAccountsV2";
712
+ readonly getAddresses: "getAddresses";
713
+ readonly bitcoin_getAddressesV2: "bitcoin_getAddressesV2";
714
+ readonly getBalance: "getBalance";
715
+ readonly bitcoin_getBalanceV2: "bitcoin_getBalanceV2";
716
+ readonly getInfo: "getInfo";
717
+ readonly bitcoin_getInfoV2: "bitcoin_getInfoV2";
718
+ readonly sendTransfer: "sendTransfer";
719
+ readonly bitcoin_sendTransferV2: "bitcoin_sendTransferV2";
720
+ readonly signMessage: "signMessage";
721
+ readonly bitcoin_signMessageV2: "bitcoin_signMessageV2";
722
+ readonly signMultipleMessages: "signMultipleMessages";
723
+ readonly bitcoin_signMultipleMessagesV2: "bitcoin_signMultipleMessagesV2";
724
+ readonly signPsbt: "signPsbt";
725
+ readonly bitcoin_signPsbtV2: "bitcoin_signPsbtV2";
726
+ };
727
+ type BitcoinMethod = (typeof bitcoinMethods)[keyof typeof bitcoinMethods];
728
+ declare const stacksMethods: {
729
+ readonly stx_callContract: "stx_callContract";
730
+ readonly stx_deployContract: "stx_deployContract";
731
+ readonly stx_getAccounts: "stx_getAccounts";
732
+ readonly stx_getAddresses: "stx_getAddresses";
733
+ readonly stacks_getAddressesV2: "stacks_getAddressesV2";
734
+ readonly stx_signMessage: "stx_signMessage";
735
+ readonly stx_signStructuredMessage: "stx_signStructuredMessage";
736
+ readonly stx_signTransaction: "stx_signTransaction";
737
+ readonly stx_signTransactions: "stx_signTransactions";
738
+ readonly stx_transferStx: "stx_transferStx";
739
+ };
740
+ type StacksMethod = (typeof stacksMethods)[keyof typeof stacksMethods];
741
+ declare const sparkMethods: {
742
+ readonly spark_getAddresses: "spark_getAddresses";
743
+ readonly spark_getAddressesV2: "spark_getAddressesV2";
744
+ readonly spark_getBalance: "spark_getBalance";
745
+ readonly spark_transfer: "spark_transfer";
746
+ readonly spark_transferToken: "spark_transferToken";
747
+ readonly spark_signMessage: "spark_signMessage";
748
+ readonly spark_flashnet_getJwt: "spark_flashnet_getJwt";
749
+ readonly spark_flashnet_signIntent: "spark_flashnet_signIntent";
750
+ readonly spark_flashnet_signStructuredMessage: "spark_flashnet_signStructuredMessage";
751
+ readonly spark_flashnet_executeSwap: "spark_flashnet_executeSwap";
752
+ readonly spark_flashnet_executeRouteSwap: "spark_flashnet_executeRouteSwap";
753
+ readonly spark_flashnet_clawbackFunds: "spark_flashnet_clawbackFunds";
754
+ readonly spark_getClawbackEligibleTransfers: "spark_getClawbackEligibleTransfers";
755
+ };
756
+ type SparkMethod = (typeof sparkMethods)[keyof typeof sparkMethods];
757
+ declare const runesMethods: {
758
+ readonly runes_estimateEtch: "runes_estimateEtch";
759
+ readonly runes_estimateMint: "runes_estimateMint";
760
+ readonly runes_estimateRbfOrder: "runes_estimateRbfOrder";
761
+ readonly runes_etch: "runes_etch";
762
+ readonly runes_getBalance: "runes_getBalance";
763
+ readonly runes_getOrder: "runes_getOrder";
764
+ readonly runes_mint: "runes_mint";
765
+ readonly runes_rbfOrder: "runes_rbfOrder";
766
+ readonly runes_transfer: "runes_transfer";
767
+ };
768
+ type RunesMethod = (typeof runesMethods)[keyof typeof runesMethods];
769
+ declare const ordinalsMethods: {
770
+ readonly ord_getInscriptions: "ord_getInscriptions";
771
+ readonly ord_sendInscriptions: "ord_sendInscriptions";
772
+ };
773
+ type OrdinalsMethod = (typeof ordinalsMethods)[keyof typeof ordinalsMethods];
774
+ declare const walletMethods: {
775
+ readonly wallet_addNetwork: "wallet_addNetwork";
776
+ readonly wallet_addNetworkV2: "wallet_addNetworkV2";
777
+ readonly wallet_changeNetworkById: "wallet_changeNetworkById";
778
+ readonly wallet_changeNetwork: "wallet_changeNetwork";
779
+ readonly wallet_connect: "wallet_connect";
780
+ readonly wallet_connectV2: "wallet_connectV2";
781
+ readonly wallet_disconnect: "wallet_disconnect";
782
+ readonly wallet_getAccount: "wallet_getAccount";
783
+ readonly wallet_getAccountV2: "wallet_getAccountV2";
784
+ readonly wallet_getCurrentPermissions: "wallet_getCurrentPermissions";
785
+ readonly wallet_getNetwork: "wallet_getNetwork";
786
+ readonly wallet_getNetworks: "wallet_getNetworks";
787
+ readonly wallet_getWalletType: "wallet_getWalletType";
788
+ readonly wallet_openBridge: "wallet_openBridge";
789
+ readonly wallet_openBuy: "wallet_openBuy";
790
+ readonly wallet_openReceive: "wallet_openReceive";
791
+ readonly wallet_renouncePermissions: "wallet_renouncePermissions";
792
+ readonly wallet_requestPermissions: "wallet_requestPermissions";
793
+ };
794
+ type WalletMethod = (typeof walletMethods)[keyof typeof walletMethods];
795
+ type Method = BitcoinMethod | StacksMethod | SparkMethod | RunesMethod | OrdinalsMethod | WalletMethod;
796
+ //#endregion
797
+ //#region src/request/exact.d.ts
798
+ /**
799
+ * These types allow expressing type constraints akin to exact or sealed types
800
+ * available in other type systems. Start by defining a union of the keys the
801
+ * object should have, and then build the final type with `ExactObject`.
802
+ *
803
+ * Example:
804
+ *
805
+ * ```ts
806
+ * type Fruit = "apple" | "banana" | "cherry";
807
+ * type PackagingContainer = ExactObject<Fruit, {
808
+ * apple: "bag";
809
+ * banana: "box";
810
+ * cherry: "bag" | "box"
811
+ * }>;
812
+ * ```
813
+ *
814
+ * If the keys union and those used in ExactObject don't match, the resulting
815
+ * type will safely evaluate to `never`.
816
+ */
817
+ type KeysTemplate<Keys extends string> = { [K in Keys]: unknown };
818
+ type ExactKeys<T, U> = keyof T extends keyof U ? (keyof U extends keyof T ? T : never) : never;
819
+ type ExactObject<Keys extends string, T extends KeysTemplate<Keys>> = ExactKeys<T, KeysTemplate<Keys>>;
820
+ //#endregion
821
+ //#region src/request/rpc/methodSchemas/bitcoin/getAccounts/response.d.ts
822
+ declare const bitcoinGetAccountsSuccessResponseSchema: v.ObjectSchema<{
823
+ readonly id: v.StringSchema<undefined>;
824
+ readonly result: v.ArraySchema<v.ObjectSchema<{
825
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
826
+ readonly address: v.StringSchema<undefined>;
827
+ readonly publicKey: v.StringSchema<undefined>;
828
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
829
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
830
+ }, undefined>, undefined>;
831
+ readonly '~sats-connect-method': v.LiteralSchema<"getAccounts", undefined>;
832
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
833
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
834
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
835
+ readonly message: v.StringSchema<undefined>;
836
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
837
+ }, undefined>], undefined>, undefined>;
838
+ }, undefined>, undefined>;
839
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
840
+ }, undefined>;
841
+ type BitcoinGetAccountsSuccessResponse = v.InferOutput<typeof bitcoinGetAccountsSuccessResponseSchema>;
842
+ //#endregion
843
+ //#region src/request/rpc/methodSchemas/bitcoin/getAccountsV2/response.d.ts
844
+ declare const bitcoinGetAccountsV2SuccessResponseSchema: v.ObjectSchema<{
845
+ readonly id: v.StringSchema<undefined>;
846
+ readonly result: v.ArraySchema<v.ObjectSchema<{
847
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
848
+ readonly address: v.StringSchema<undefined>;
849
+ readonly publicKey: v.StringSchema<undefined>;
850
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
851
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
852
+ }, undefined>, undefined>;
853
+ readonly '~sats-connect-method': v.LiteralSchema<"bitcoin_getAccountsV2", undefined>;
854
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
855
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
856
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
857
+ readonly message: v.StringSchema<undefined>;
858
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
859
+ }, undefined>], undefined>, undefined>;
860
+ }, undefined>, undefined>;
861
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
862
+ }, undefined>;
863
+ type BitcoinGetAccountsV2SuccessResponse = v.InferOutput<typeof bitcoinGetAccountsV2SuccessResponseSchema>;
864
+ //#endregion
865
+ //#region src/request/rpc/methodSchemas/bitcoin/getAddresses/response.d.ts
866
+ declare const bitcoinGetAddressesSuccessResponseSchema: v.ObjectSchema<{
867
+ readonly id: v.StringSchema<undefined>;
868
+ readonly result: v.ObjectSchema<{
869
+ /**
870
+ * The addresses generated for the given purposes.
871
+ */
872
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
873
+ readonly address: v.StringSchema<undefined>;
874
+ readonly publicKey: v.StringSchema<undefined>;
875
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
876
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
877
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
878
+ }, undefined>, undefined>;
879
+ readonly network: v.ObjectSchema<{
880
+ readonly bitcoin: v.ObjectSchema<{
881
+ readonly name: v.StringSchema<undefined>;
882
+ }, undefined>;
883
+ readonly stacks: v.ObjectSchema<{
884
+ readonly name: v.StringSchema<undefined>;
885
+ }, undefined>;
886
+ readonly spark: v.ObjectSchema<{
887
+ readonly name: v.StringSchema<undefined>;
888
+ }, undefined>;
889
+ }, undefined>;
890
+ }, undefined>;
891
+ readonly '~sats-connect-method': v.LiteralSchema<"getAddresses", undefined>;
892
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
893
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
894
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
895
+ readonly message: v.StringSchema<undefined>;
896
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
897
+ }, undefined>], undefined>, undefined>;
898
+ }, undefined>, undefined>;
899
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
900
+ }, undefined>;
901
+ type BitcoinGetAddressesSuccessResponse = v.InferOutput<typeof bitcoinGetAddressesSuccessResponseSchema>;
902
+ //#endregion
903
+ //#region src/request/rpc/methodSchemas/bitcoin/getAddressesV2/response.d.ts
904
+ declare const bitcoinGetAddressesV2SuccessResponseSchema: v.ObjectSchema<{
905
+ readonly id: v.StringSchema<undefined>;
906
+ readonly result: v.ObjectSchema<{
907
+ /**
908
+ * The addresses generated for the given purposes.
909
+ */
910
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
911
+ readonly address: v.StringSchema<undefined>;
912
+ readonly publicKey: v.StringSchema<undefined>;
913
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
914
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
915
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
916
+ }, undefined>, undefined>;
917
+ readonly networks: v.ObjectSchema<{
918
+ readonly active: v.ObjectSchema<{
919
+ readonly bitcoin: v.ObjectSchema<{
920
+ readonly id: v.StringSchema<undefined>;
921
+ readonly type: v.StringSchema<undefined>;
922
+ readonly name: v.StringSchema<undefined>;
923
+ }, undefined>;
924
+ readonly stacks: v.ObjectSchema<{
925
+ readonly id: v.StringSchema<undefined>;
926
+ readonly type: v.StringSchema<undefined>;
927
+ readonly name: v.StringSchema<undefined>;
928
+ }, undefined>;
929
+ readonly spark: v.ObjectSchema<{
930
+ readonly id: v.StringSchema<undefined>;
931
+ readonly type: v.StringSchema<undefined>;
932
+ readonly name: v.StringSchema<undefined>;
933
+ }, undefined>;
934
+ readonly starknet: v.ObjectSchema<{
935
+ readonly id: v.StringSchema<undefined>;
936
+ readonly type: v.StringSchema<undefined>;
937
+ readonly name: v.StringSchema<undefined>;
938
+ }, undefined>;
939
+ }, undefined>;
940
+ readonly builtin: v.ObjectSchema<{
941
+ readonly bitcoin: v.ArraySchema<v.AnySchema, undefined>;
942
+ readonly stacks: v.ArraySchema<v.AnySchema, undefined>;
943
+ readonly spark: v.ArraySchema<v.AnySchema, undefined>;
944
+ readonly starknet: v.ArraySchema<v.AnySchema, undefined>;
945
+ }, undefined>;
946
+ readonly custom: v.ObjectSchema<{
947
+ readonly bitcoin: v.ArraySchema<v.AnySchema, undefined>;
948
+ readonly stacks: v.ArraySchema<v.AnySchema, undefined>;
949
+ readonly spark: v.ArraySchema<v.AnySchema, undefined>;
950
+ readonly starknet: v.ArraySchema<v.AnySchema, undefined>;
951
+ }, undefined>;
952
+ }, undefined>;
953
+ }, undefined>;
954
+ readonly '~sats-connect-method': v.LiteralSchema<"bitcoin_getAddressesV2", undefined>;
955
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
956
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
957
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
958
+ readonly message: v.StringSchema<undefined>;
959
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
960
+ }, undefined>], undefined>, undefined>;
961
+ }, undefined>, undefined>;
962
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
963
+ }, undefined>;
964
+ type BitcoinGetAddressesV2SuccessResponse = v.InferOutput<typeof bitcoinGetAddressesV2SuccessResponseSchema>;
965
+ //#endregion
966
+ //#region src/request/rpc/methodSchemas/bitcoin/getBalance/response.d.ts
967
+ declare const bitcoinGetBalanceSuccessResponseSchema: v.ObjectSchema<{
968
+ readonly id: v.StringSchema<undefined>;
969
+ readonly result: v.ObjectSchema<{
970
+ /**
971
+ * The confirmed balance of the wallet in sats. Using a string due to chrome
972
+ * messages not supporting bigint
973
+ * (https://issues.chromium.org/issues/40116184).
974
+ */
975
+ readonly confirmed: v.StringSchema<undefined>;
976
+ /**
977
+ * The unconfirmed balance of the wallet in sats. Using a string due to chrome
978
+ * messages not supporting bigint
979
+ * (https://issues.chromium.org/issues/40116184).
980
+ */
981
+ readonly unconfirmed: v.StringSchema<undefined>;
982
+ /**
983
+ * The total balance (both confirmed and unconfrimed UTXOs) of the wallet in
984
+ * sats. Using a string due to chrome messages not supporting bigint
985
+ * (https://issues.chromium.org/issues/40116184).
986
+ */
987
+ readonly total: v.StringSchema<undefined>;
988
+ }, undefined>;
989
+ readonly '~sats-connect-method': v.LiteralSchema<"getBalance", undefined>;
990
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
991
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
992
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
993
+ readonly message: v.StringSchema<undefined>;
994
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
995
+ }, undefined>], undefined>, undefined>;
996
+ }, undefined>, undefined>;
997
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
998
+ }, undefined>;
999
+ type BitcoinGetBalanceSuccessResponse = v.InferOutput<typeof bitcoinGetBalanceSuccessResponseSchema>;
1000
+ //#endregion
1001
+ //#region src/request/rpc/methodSchemas/bitcoin/getBalanceV2/response.d.ts
1002
+ declare const bitcoinGetBalanceV2SuccessResponseSchema: v.ObjectSchema<{
1003
+ readonly id: v.StringSchema<undefined>;
1004
+ readonly result: v.ObjectSchema<{
1005
+ /**
1006
+ * The confirmed balance of the wallet in sats. Using a string due to chrome
1007
+ * messages not supporting bigint
1008
+ * (https://issues.chromium.org/issues/40116184).
1009
+ */
1010
+ readonly confirmed: v.StringSchema<undefined>;
1011
+ /**
1012
+ * The unconfirmed balance of the wallet in sats. Using a string due to chrome
1013
+ * messages not supporting bigint
1014
+ * (https://issues.chromium.org/issues/40116184).
1015
+ */
1016
+ readonly unconfirmed: v.StringSchema<undefined>;
1017
+ /**
1018
+ * The total balance (both confirmed and unconfrimed UTXOs) of the wallet in
1019
+ * sats. Using a string due to chrome messages not supporting bigint
1020
+ * (https://issues.chromium.org/issues/40116184).
1021
+ */
1022
+ readonly total: v.StringSchema<undefined>;
1023
+ }, undefined>;
1024
+ readonly '~sats-connect-method': v.LiteralSchema<"bitcoin_getBalanceV2", undefined>;
1025
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1026
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1027
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1028
+ readonly message: v.StringSchema<undefined>;
1029
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1030
+ }, undefined>], undefined>, undefined>;
1031
+ }, undefined>, undefined>;
1032
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1033
+ }, undefined>;
1034
+ type BitcoinGetBalanceV2SuccessResponse = v.InferOutput<typeof bitcoinGetBalanceV2SuccessResponseSchema>;
1035
+ //#endregion
1036
+ //#region src/request/rpc/methodSchemas/bitcoin/sendTransfer/response.d.ts
1037
+ declare const bitcoinSendTransferSuccessResponseSchema: v.ObjectSchema<{
1038
+ readonly id: v.StringSchema<undefined>;
1039
+ readonly result: v.ObjectSchema<{
1040
+ /**
1041
+ * The transaction id as a hex-encoded string.
1042
+ */
1043
+ readonly txid: v.StringSchema<undefined>;
1044
+ }, undefined>;
1045
+ readonly '~sats-connect-method': v.LiteralSchema<"sendTransfer", undefined>;
1046
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1047
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1048
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1049
+ readonly message: v.StringSchema<undefined>;
1050
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1051
+ }, undefined>], undefined>, undefined>;
1052
+ }, undefined>, undefined>;
1053
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1054
+ }, undefined>;
1055
+ type BitcoinSendTransferSuccessResponse = v.InferOutput<typeof bitcoinSendTransferSuccessResponseSchema>;
1056
+ //#endregion
1057
+ //#region src/request/rpc/methodSchemas/bitcoin/sendTransferV2/response.d.ts
1058
+ declare const bitcoinSendTransferV2SuccessResponseSchema: v.ObjectSchema<{
1059
+ readonly id: v.StringSchema<undefined>;
1060
+ readonly result: v.ObjectSchema<{
1061
+ /**
1062
+ * The transaction id as a hex-encoded string.
1063
+ */
1064
+ readonly txid: v.StringSchema<undefined>;
1065
+ }, undefined>;
1066
+ readonly '~sats-connect-method': v.LiteralSchema<"bitcoin_sendTransferV2", undefined>;
1067
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1068
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1069
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1070
+ readonly message: v.StringSchema<undefined>;
1071
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1072
+ }, undefined>], undefined>, undefined>;
1073
+ }, undefined>, undefined>;
1074
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1075
+ }, undefined>;
1076
+ type BitcoinSendTransferV2SuccessResponse = v.InferOutput<typeof bitcoinSendTransferV2SuccessResponseSchema>;
1077
+ //#endregion
1078
+ //#region src/request/rpc/methodSchemas/bitcoin/signPsbt/response.d.ts
1079
+ declare const bitcoinSignPsbtSuccessResponseSchema: v.ObjectSchema<{
1080
+ readonly id: v.StringSchema<undefined>;
1081
+ readonly result: v.ObjectSchema<{
1082
+ /**
1083
+ * The base64 encoded PSBT after signing.
1084
+ */
1085
+ readonly psbt: v.StringSchema<undefined>;
1086
+ /**
1087
+ * The transaction id as a hex-encoded string.
1088
+ * This is only returned if the transaction was broadcast.
1089
+ **/
1090
+ readonly txid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1091
+ }, undefined>;
1092
+ readonly '~sats-connect-method': v.LiteralSchema<"signPsbt", undefined>;
1093
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1094
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1095
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1096
+ readonly message: v.StringSchema<undefined>;
1097
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1098
+ }, undefined>], undefined>, undefined>;
1099
+ }, undefined>, undefined>;
1100
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1101
+ }, undefined>;
1102
+ type BitcoinSignPsbtSuccessResponse = v.InferOutput<typeof bitcoinSignPsbtSuccessResponseSchema>;
1103
+ //#endregion
1104
+ //#region src/request/rpc/methodSchemas/bitcoin/signPsbtV2/response.d.ts
1105
+ declare const bitcoinSignPsbtV2SuccessResponseSchema: v.ObjectSchema<{
1106
+ readonly id: v.StringSchema<undefined>;
1107
+ readonly result: v.ObjectSchema<{
1108
+ /**
1109
+ * The base64 encoded PSBT after signing.
1110
+ */
1111
+ readonly psbt: v.StringSchema<undefined>;
1112
+ /**
1113
+ * The transaction id as a hex-encoded string.
1114
+ * This is only returned if the transaction was broadcast.
1115
+ **/
1116
+ readonly txid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1117
+ }, undefined>;
1118
+ readonly '~sats-connect-method': v.LiteralSchema<"bitcoin_signPsbtV2", undefined>;
1119
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1120
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1121
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1122
+ readonly message: v.StringSchema<undefined>;
1123
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1124
+ }, undefined>], undefined>, undefined>;
1125
+ }, undefined>, undefined>;
1126
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1127
+ }, undefined>;
1128
+ type BitcoinSignPsbtV2SuccessResponse = v.InferOutput<typeof bitcoinSignPsbtV2SuccessResponseSchema>;
1129
+ //#endregion
1130
+ //#region src/request/rpc/methodSchemas/stacks/callContract/response.d.ts
1131
+ declare const stacksCallContractSuccessResponseSchema: v.ObjectSchema<{
1132
+ readonly id: v.StringSchema<undefined>;
1133
+ readonly result: v.ObjectSchema<{
1134
+ /**
1135
+ * The ID of the transaction.
1136
+ */
1137
+ readonly txid: v.StringSchema<undefined>;
1138
+ /**
1139
+ * A Stacks transaction as a hex-encoded string.
1140
+ */
1141
+ readonly transaction: v.StringSchema<undefined>;
1142
+ }, undefined>;
1143
+ readonly '~sats-connect-method': v.LiteralSchema<"stx_callContract", undefined>;
1144
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1145
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1146
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1147
+ readonly message: v.StringSchema<undefined>;
1148
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1149
+ }, undefined>], undefined>, undefined>;
1150
+ }, undefined>, undefined>;
1151
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1152
+ }, undefined>;
1153
+ type StacksCallContractSuccessResponse = v.InferOutput<typeof stacksCallContractSuccessResponseSchema>;
1154
+ //#endregion
1155
+ //#region src/request/rpc/methodSchemas/stacks/deployContract/response.d.ts
1156
+ declare const stacksDeployContractSuccessResponseSchema: v.ObjectSchema<{
1157
+ readonly id: v.StringSchema<undefined>;
1158
+ readonly result: v.ObjectSchema<{
1159
+ /**
1160
+ * The ID of the transaction.
1161
+ */
1162
+ readonly txid: v.StringSchema<undefined>;
1163
+ /**
1164
+ * A Stacks transaction as a hex-encoded string.
1165
+ */
1166
+ readonly transaction: v.StringSchema<undefined>;
1167
+ }, undefined>;
1168
+ readonly '~sats-connect-method': v.LiteralSchema<"stx_deployContract", undefined>;
1169
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1170
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1171
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1172
+ readonly message: v.StringSchema<undefined>;
1173
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1174
+ }, undefined>], undefined>, undefined>;
1175
+ }, undefined>, undefined>;
1176
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1177
+ }, undefined>;
1178
+ type StacksDeployContractSuccessResponse = v.InferOutput<typeof stacksDeployContractSuccessResponseSchema>;
1179
+ //#endregion
1180
+ //#region src/request/rpc/methodSchemas/stacks/getAccounts/response.d.ts
1181
+ declare const stacksGetAccountsSuccessResponseSchema: v.ObjectSchema<{
1182
+ readonly id: v.StringSchema<undefined>;
1183
+ readonly result: v.ObjectSchema<{
1184
+ /**
1185
+ * The addresses generated for the given purposes.
1186
+ */
1187
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1188
+ readonly address: v.StringSchema<undefined>;
1189
+ readonly publicKey: v.StringSchema<undefined>;
1190
+ readonly gaiaHubUrl: v.StringSchema<undefined>;
1191
+ readonly gaiaAppKey: v.StringSchema<undefined>;
1192
+ }, undefined>, undefined>;
1193
+ readonly network: v.ObjectSchema<{
1194
+ readonly type: v.StringSchema<undefined>;
1195
+ readonly address: v.StringSchema<undefined>;
1196
+ }, undefined>;
1197
+ }, undefined>;
1198
+ readonly '~sats-connect-method': v.LiteralSchema<"stx_getAccounts", undefined>;
1199
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1200
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1201
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1202
+ readonly message: v.StringSchema<undefined>;
1203
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1204
+ }, undefined>], undefined>, undefined>;
1205
+ }, undefined>, undefined>;
1206
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1207
+ }, undefined>;
1208
+ type StacksGetAccountsSuccessResponse = v.InferOutput<typeof stacksGetAccountsSuccessResponseSchema>;
1209
+ //#endregion
1210
+ //#region src/request/rpc/methodSchemas/stacks/getAddresses/response.d.ts
1211
+ declare const stacksGetAddressesSuccessResponseSchema: v.ObjectSchema<{
1212
+ readonly id: v.StringSchema<undefined>;
1213
+ readonly result: v.ObjectSchema<{
1214
+ /**
1215
+ * The addresses generated for the given purposes.
1216
+ */
1217
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1218
+ readonly address: v.StringSchema<undefined>;
1219
+ readonly publicKey: v.StringSchema<undefined>;
1220
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1221
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1222
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
1223
+ }, undefined>, undefined>;
1224
+ readonly network: v.ObjectSchema<{
1225
+ readonly type: v.StringSchema<undefined>;
1226
+ readonly address: v.StringSchema<undefined>;
1227
+ }, undefined>;
1228
+ }, undefined>;
1229
+ readonly '~sats-connect-method': v.LiteralSchema<"stx_getAddresses", undefined>;
1230
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1231
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1232
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1233
+ readonly message: v.StringSchema<undefined>;
1234
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1235
+ }, undefined>], undefined>, undefined>;
1236
+ }, undefined>, undefined>;
1237
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1238
+ }, undefined>;
1239
+ type StacksGetAddressesSuccessResponse = v.InferOutput<typeof stacksGetAddressesSuccessResponseSchema>;
1240
+ //#endregion
1241
+ //#region src/request/rpc/methodSchemas/stacks/getAddressesV2/response.d.ts
1242
+ declare const stacksGetAddressesV2SuccessResponseSchema: v.ObjectSchema<{
1243
+ readonly id: v.StringSchema<undefined>;
1244
+ readonly result: v.ObjectSchema<{
1245
+ /**
1246
+ * The addresses generated for the given purposes.
1247
+ */
1248
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1249
+ readonly address: v.StringSchema<undefined>;
1250
+ readonly publicKey: v.StringSchema<undefined>;
1251
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1252
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1253
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
1254
+ }, undefined>, undefined>;
1255
+ readonly network: v.ObjectSchema<{
1256
+ readonly type: v.UnionSchema<[v.LiteralSchema<"Mainnet", undefined>, v.LiteralSchema<"Testnet", undefined>, v.LiteralSchema<"Devnet", undefined>, v.LiteralSchema<"Signet", undefined>], undefined>;
1257
+ readonly chain: v.UnionSchema<[v.LiteralSchema<"bitcoin", undefined>, v.LiteralSchema<"stacks", undefined>], undefined>;
1258
+ }, undefined>;
1259
+ }, undefined>;
1260
+ readonly '~sats-connect-method': v.LiteralSchema<"stacks_getAddressesV2", undefined>;
1261
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1262
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1263
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1264
+ readonly message: v.StringSchema<undefined>;
1265
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1266
+ }, undefined>], undefined>, undefined>;
1267
+ }, undefined>, undefined>;
1268
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1269
+ }, undefined>;
1270
+ type StacksGetAddressesV2SuccessResponse = v.InferOutput<typeof stacksGetAddressesV2SuccessResponseSchema>;
1271
+ //#endregion
1272
+ //#region src/request/rpc/methodSchemas/stacks/signMessage/response.d.ts
1273
+ declare const stacksSignMessageSuccessResponseSchema: v.ObjectSchema<{
1274
+ readonly id: v.StringSchema<undefined>;
1275
+ readonly result: v.ObjectSchema<{
1276
+ /**
1277
+ * The signature of the message.
1278
+ */
1279
+ readonly signature: v.StringSchema<undefined>;
1280
+ /**
1281
+ * The public key used to sign the message.
1282
+ */
1283
+ readonly publicKey: v.StringSchema<undefined>;
1284
+ }, undefined>;
1285
+ readonly '~sats-connect-method': v.LiteralSchema<"stx_signMessage", undefined>;
1286
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1287
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1288
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1289
+ readonly message: v.StringSchema<undefined>;
1290
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1291
+ }, undefined>], undefined>, undefined>;
1292
+ }, undefined>, undefined>;
1293
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1294
+ }, undefined>;
1295
+ type StacksSignMessageSuccessResponse = v.InferOutput<typeof stacksSignMessageSuccessResponseSchema>;
1296
+ //#endregion
1297
+ //#region src/request/rpc/methodSchemas/stacks/signStructuredMessage/response.d.ts
1298
+ declare const stacksSignStructuredMessageSuccessResponseSchema: v.ObjectSchema<{
1299
+ readonly id: v.StringSchema<undefined>;
1300
+ readonly result: v.ObjectSchema<{
1301
+ /**
1302
+ * Signature of the message.
1303
+ */
1304
+ readonly signature: v.StringSchema<undefined>;
1305
+ /**
1306
+ * Public key as hex-encoded string.
1307
+ */
1308
+ readonly publicKey: v.StringSchema<undefined>;
1309
+ }, undefined>;
1310
+ readonly '~sats-connect-method': v.LiteralSchema<"stx_signStructuredMessage", undefined>;
1311
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1312
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1313
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1314
+ readonly message: v.StringSchema<undefined>;
1315
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1316
+ }, undefined>], undefined>, undefined>;
1317
+ }, undefined>, undefined>;
1318
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1319
+ }, undefined>;
1320
+ type StacksSignStructuredMessageSuccessResponse = v.InferOutput<typeof stacksSignStructuredMessageSuccessResponseSchema>;
1321
+ //#endregion
1322
+ //#region src/request/rpc/methodSchemas/stacks/signTransaction/response.d.ts
1323
+ declare const stacksSignTransactionSuccessResponseSchema: v.ObjectSchema<{
1324
+ readonly id: v.StringSchema<undefined>;
1325
+ readonly result: v.ObjectSchema<{
1326
+ /**
1327
+ * The signed transaction as a hex-encoded string.
1328
+ */
1329
+ readonly transaction: v.StringSchema<undefined>;
1330
+ }, undefined>;
1331
+ readonly '~sats-connect-method': v.LiteralSchema<"stx_signTransaction", undefined>;
1332
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1333
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1334
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1335
+ readonly message: v.StringSchema<undefined>;
1336
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1337
+ }, undefined>], undefined>, undefined>;
1338
+ }, undefined>, undefined>;
1339
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1340
+ }, undefined>;
1341
+ type StacksSignTransactionSuccessResponse = v.InferOutput<typeof stacksSignTransactionSuccessResponseSchema>;
1342
+ //#endregion
1343
+ //#region src/request/rpc/methodSchemas/stacks/signTransactions/response.d.ts
1344
+ declare const stacksSignTransactionsSuccessResponseSchema: v.ObjectSchema<{
1345
+ readonly id: v.StringSchema<undefined>;
1346
+ readonly result: v.ObjectSchema<{
1347
+ /**
1348
+ * The signed transactions as hex-encoded strings, in the same order as in the
1349
+ * sign request.
1350
+ */
1351
+ readonly transactions: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1352
+ }, undefined>;
1353
+ readonly '~sats-connect-method': v.LiteralSchema<"stx_signTransactions", undefined>;
1354
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1355
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1356
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1357
+ readonly message: v.StringSchema<undefined>;
1358
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1359
+ }, undefined>], undefined>, undefined>;
1360
+ }, undefined>, undefined>;
1361
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1362
+ }, undefined>;
1363
+ type StacksSignTransactionsSuccessResponse = v.InferOutput<typeof stacksSignTransactionsSuccessResponseSchema>;
1364
+ //#endregion
1365
+ //#region src/request/rpc/methodSchemas/stacks/transferStx/response.d.ts
1366
+ declare const stacksTransferStxSuccessResponseSchema: v.ObjectSchema<{
1367
+ readonly id: v.StringSchema<undefined>;
1368
+ readonly result: v.ObjectSchema<{
1369
+ /**
1370
+ * The ID of the transaction.
1371
+ */
1372
+ readonly txid: v.StringSchema<undefined>;
1373
+ /**
1374
+ * A Stacks transaction as a hex-encoded string.
1375
+ */
1376
+ readonly transaction: v.StringSchema<undefined>;
1377
+ }, undefined>;
1378
+ readonly '~sats-connect-method': v.LiteralSchema<"stx_transferStx", undefined>;
1379
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1380
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1381
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1382
+ readonly message: v.StringSchema<undefined>;
1383
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1384
+ }, undefined>], undefined>, undefined>;
1385
+ }, undefined>, undefined>;
1386
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1387
+ }, undefined>;
1388
+ type StacksTransferStxSuccessResponse = v.InferOutput<typeof stacksTransferStxSuccessResponseSchema>;
1389
+ //#endregion
1390
+ //#region src/request/rpc/methodSchemas/spark/getAddresses/response.d.ts
1391
+ declare const sparkGetAddressesSuccessResponseSchema: v.ObjectSchema<{
1392
+ readonly id: v.StringSchema<undefined>;
1393
+ readonly result: v.ObjectSchema<{
1394
+ /**
1395
+ * The addresses generated for the given purposes.
1396
+ */
1397
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1398
+ readonly address: v.StringSchema<undefined>;
1399
+ readonly publicKey: v.StringSchema<undefined>;
1400
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1401
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1402
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
1403
+ }, undefined>, undefined>;
1404
+ readonly network: v.ObjectSchema<{
1405
+ readonly bitcoin: v.ObjectSchema<{
1406
+ readonly name: v.StringSchema<undefined>;
1407
+ }, undefined>;
1408
+ readonly stacks: v.ObjectSchema<{
1409
+ readonly name: v.StringSchema<undefined>;
1410
+ }, undefined>;
1411
+ readonly spark: v.ObjectSchema<{
1412
+ readonly name: v.StringSchema<undefined>;
1413
+ }, undefined>;
1414
+ }, undefined>;
1415
+ }, undefined>;
1416
+ readonly '~sats-connect-method': v.LiteralSchema<"spark_getAddresses", undefined>;
1417
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1418
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1419
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1420
+ readonly message: v.StringSchema<undefined>;
1421
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1422
+ }, undefined>], undefined>, undefined>;
1423
+ }, undefined>, undefined>;
1424
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1425
+ }, undefined>;
1426
+ type SparkGetAddressesSuccessResponse = v.InferOutput<typeof sparkGetAddressesSuccessResponseSchema>;
1427
+ //#endregion
1428
+ //#region src/request/rpc/methodSchemas/spark/getAddressesV2/response.d.ts
1429
+ declare const sparkGetAddressesV2SuccessResponseSchema: v.ObjectSchema<{
1430
+ readonly id: v.StringSchema<undefined>;
1431
+ readonly result: v.ObjectSchema<{
1432
+ /**
1433
+ * The addresses generated for the given purposes.
1434
+ */
1435
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1436
+ readonly address: v.StringSchema<undefined>;
1437
+ readonly publicKey: v.StringSchema<undefined>;
1438
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1439
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1440
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
1441
+ }, undefined>, undefined>;
1442
+ readonly network: v.ObjectSchema<{
1443
+ readonly mode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EnumSchema<{
1444
+ readonly mainnet: "mainnet";
1445
+ readonly regtest: "regtest";
1446
+ }, undefined>]>;
1447
+ readonly electrsApiUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
1448
+ readonly id: v.StringSchema<undefined>;
1449
+ readonly name: v.StringSchema<undefined>;
1450
+ readonly blockExplorerUrl: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.LiteralSchema<"", undefined>, v.TransformAction<"", undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>], undefined>, undefined>;
1451
+ readonly chain: v.LiteralSchema<"spark", undefined>;
1452
+ }, undefined>;
1453
+ }, undefined>;
1454
+ readonly '~sats-connect-method': v.LiteralSchema<"spark_getAddressesV2", undefined>;
1455
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1456
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1457
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1458
+ readonly message: v.StringSchema<undefined>;
1459
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1460
+ }, undefined>], undefined>, undefined>;
1461
+ }, undefined>, undefined>;
1462
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1463
+ }, undefined>;
1464
+ type SparkGetAddressesV2SuccessResponse = v.InferOutput<typeof sparkGetAddressesV2SuccessResponseSchema>;
1465
+ //#endregion
1466
+ //#region src/request/rpc/methodSchemas/spark/getBalance/response.d.ts
1467
+ declare const sparkGetBalanceSuccessResponseSchema: v.ObjectSchema<{
1468
+ readonly id: v.StringSchema<undefined>;
1469
+ readonly result: v.ObjectSchema<{
1470
+ /**
1471
+ * The Spark Bitcoin address balance in sats in string form.
1472
+ */
1473
+ readonly balance: v.StringSchema<undefined>;
1474
+ readonly tokenBalances: v.ArraySchema<v.ObjectSchema<{
1475
+ readonly balance: v.StringSchema<undefined>;
1476
+ readonly tokenMetadata: v.ObjectSchema<{
1477
+ readonly tokenIdentifier: v.StringSchema<undefined>;
1478
+ readonly tokenName: v.StringSchema<undefined>;
1479
+ readonly tokenTicker: v.StringSchema<undefined>;
1480
+ readonly decimals: v.NumberSchema<undefined>;
1481
+ readonly maxSupply: v.StringSchema<undefined>;
1482
+ }, undefined>;
1483
+ }, undefined>, undefined>;
1484
+ }, undefined>;
1485
+ readonly '~sats-connect-method': v.LiteralSchema<"spark_getBalance", undefined>;
1486
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1487
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1488
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1489
+ readonly message: v.StringSchema<undefined>;
1490
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1491
+ }, undefined>], undefined>, undefined>;
1492
+ }, undefined>, undefined>;
1493
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1494
+ }, undefined>;
1495
+ type SparkGetBalanceSuccessResponse = v.InferOutput<typeof sparkGetBalanceSuccessResponseSchema>;
1496
+ //#endregion
1497
+ //#region src/request/rpc/methodSchemas/spark/transfer/response.d.ts
1498
+ declare const sparkTransferSuccessResponseSchema: v.ObjectSchema<{
1499
+ readonly id: v.StringSchema<undefined>;
1500
+ readonly result: v.ObjectSchema<{
1501
+ /**
1502
+ * The ID of the transaction.
1503
+ */
1504
+ readonly id: v.StringSchema<undefined>;
1505
+ }, undefined>;
1506
+ readonly '~sats-connect-method': v.LiteralSchema<"spark_transfer", undefined>;
1507
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1508
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1509
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1510
+ readonly message: v.StringSchema<undefined>;
1511
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1512
+ }, undefined>], undefined>, undefined>;
1513
+ }, undefined>, undefined>;
1514
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1515
+ }, undefined>;
1516
+ type SparkTransferSuccessResponse = v.InferOutput<typeof sparkTransferSuccessResponseSchema>;
1517
+ //#endregion
1518
+ //#region src/request/rpc/methodSchemas/spark/transferToken/response.d.ts
1519
+ declare const sparkTransferTokenSuccessResponseSchema: v.ObjectSchema<{
1520
+ readonly id: v.StringSchema<undefined>;
1521
+ readonly result: v.ObjectSchema<{
1522
+ /**
1523
+ * The ID of the transaction.
1524
+ */
1525
+ readonly id: v.StringSchema<undefined>;
1526
+ }, undefined>;
1527
+ readonly '~sats-connect-method': v.LiteralSchema<"spark_transferToken", undefined>;
1528
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1529
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1530
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1531
+ readonly message: v.StringSchema<undefined>;
1532
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1533
+ }, undefined>], undefined>, undefined>;
1534
+ }, undefined>, undefined>;
1535
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1536
+ }, undefined>;
1537
+ type SparkTransferTokenSuccessResponse = v.InferOutput<typeof sparkTransferTokenSuccessResponseSchema>;
1538
+ //#endregion
1539
+ //#region src/request/rpc/methodSchemas/spark/signMessage/response.d.ts
1540
+ declare const sparkSignMessageSuccessResponseSchema: v.ObjectSchema<{
1541
+ readonly id: v.StringSchema<undefined>;
1542
+ readonly result: v.ObjectSchema<{
1543
+ /**
1544
+ * The signature, encoded in base64, of the message hash.
1545
+ *
1546
+ * Note: When signing, the message is decoded into a byte array,
1547
+ * and the resulting byte array is hashed with SHA256 before signing
1548
+ * with the private key.
1549
+ */
1550
+ readonly signature: v.StringSchema<undefined>;
1551
+ }, undefined>;
1552
+ readonly '~sats-connect-method': v.LiteralSchema<"spark_signMessage", undefined>;
1553
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1554
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1555
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1556
+ readonly message: v.StringSchema<undefined>;
1557
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1558
+ }, undefined>], undefined>, undefined>;
1559
+ }, undefined>, undefined>;
1560
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1561
+ }, undefined>;
1562
+ type SparkSignMessageSuccessResponse = v.InferOutput<typeof sparkSignMessageSuccessResponseSchema>;
1563
+ //#endregion
1564
+ //#region src/request/rpc/methodSchemas/spark/flashnetGetJwt/response.d.ts
1565
+ declare const sparkFlashnetGetJwtSuccessResponseSchema: v.ObjectSchema<{
1566
+ readonly id: v.StringSchema<undefined>;
1567
+ readonly result: v.ObjectSchema<{
1568
+ /**
1569
+ * The JWT token for authenticated requests to the Flashnet API.
1570
+ */
1571
+ readonly jwt: v.StringSchema<undefined>;
1572
+ }, undefined>;
1573
+ readonly '~sats-connect-method': v.LiteralSchema<"spark_flashnet_getJwt", undefined>;
1574
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1575
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1576
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1577
+ readonly message: v.StringSchema<undefined>;
1578
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1579
+ }, undefined>], undefined>, undefined>;
1580
+ }, undefined>, undefined>;
1581
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1582
+ }, undefined>;
1583
+ type SparkFlashnetGetJwtSuccessResponse = v.InferOutput<typeof sparkFlashnetGetJwtSuccessResponseSchema>;
1584
+ //#endregion
1585
+ //#region src/request/rpc/methodSchemas/spark/flashnetSignIntent/response.d.ts
1586
+ declare const sparkFlashnetSignIntentSuccessResponseSchema: v.ObjectSchema<{
1587
+ readonly id: v.StringSchema<undefined>;
1588
+ readonly result: v.ObjectSchema<{
1589
+ /**
1590
+ * The signed intent as a hex string.
1591
+ */
1592
+ readonly signature: v.StringSchema<undefined>;
1593
+ }, undefined>;
1594
+ readonly '~sats-connect-method': v.LiteralSchema<"spark_flashnet_signIntent", undefined>;
1595
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1596
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1597
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1598
+ readonly message: v.StringSchema<undefined>;
1599
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1600
+ }, undefined>], undefined>, undefined>;
1601
+ }, undefined>, undefined>;
1602
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1603
+ }, undefined>;
1604
+ type SparkFlashnetSignIntentSuccessResponse = v.InferOutput<typeof sparkFlashnetSignIntentSuccessResponseSchema>;
1605
+ //#endregion
1606
+ //#region src/request/rpc/methodSchemas/spark/flashnetSignStructuredMessage/response.d.ts
1607
+ declare const sparkFlashnetSignStructuredMessageSuccessResponseSchema: v.ObjectSchema<{
1608
+ readonly id: v.StringSchema<undefined>;
1609
+ readonly result: v.ObjectSchema<{
1610
+ readonly message: v.StringSchema<undefined>;
1611
+ readonly signature: v.StringSchema<undefined>;
1612
+ }, undefined>;
1613
+ readonly '~sats-connect-method': v.LiteralSchema<"spark_flashnet_signStructuredMessage", undefined>;
1614
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1615
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1616
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1617
+ readonly message: v.StringSchema<undefined>;
1618
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1619
+ }, undefined>], undefined>, undefined>;
1620
+ }, undefined>, undefined>;
1621
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1622
+ }, undefined>;
1623
+ type SparkFlashnetSignStructuredMessageSuccessResponse = v.InferOutput<typeof sparkFlashnetSignStructuredMessageSuccessResponseSchema>;
1624
+ //#endregion
1625
+ //#region src/request/rpc/methodSchemas/spark/flashnetExecuteSwap/response.d.ts
1626
+ declare const sparkFlashnetExecuteSwapSuccessResponseSchema: v.ObjectSchema<{
1627
+ readonly id: v.StringSchema<undefined>;
1628
+ readonly result: v.ObjectSchema<{
1629
+ readonly requestId: v.StringSchema<undefined>;
1630
+ readonly accepted: v.BooleanSchema<undefined>;
1631
+ readonly amountOut: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1632
+ readonly feeAmount: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1633
+ readonly executionPrice: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1634
+ readonly assetOutAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1635
+ readonly assetInAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1636
+ readonly outboundTransferId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1637
+ readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1638
+ }, undefined>;
1639
+ readonly '~sats-connect-method': v.LiteralSchema<"spark_flashnet_executeSwap", undefined>;
1640
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1641
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1642
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1643
+ readonly message: v.StringSchema<undefined>;
1644
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1645
+ }, undefined>], undefined>, undefined>;
1646
+ }, undefined>, undefined>;
1647
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1648
+ }, undefined>;
1649
+ type SparkFlashnetExecuteSwapSuccessResponse = v.InferOutput<typeof sparkFlashnetExecuteSwapSuccessResponseSchema>;
1650
+ //#endregion
1651
+ //#region src/request/rpc/methodSchemas/spark/flashnetExecuteRouteSwap/response.d.ts
1652
+ declare const sparkFlashnetExecuteRouteSwapSuccessResponseSchema: v.ObjectSchema<{
1653
+ readonly id: v.StringSchema<undefined>;
1654
+ readonly result: v.ObjectSchema<{
1655
+ readonly requestId: v.StringSchema<undefined>;
1656
+ readonly accepted: v.BooleanSchema<undefined>;
1657
+ readonly outputAmount: v.StringSchema<undefined>;
1658
+ readonly executionPrice: v.StringSchema<undefined>;
1659
+ readonly finalOutboundTransferId: v.StringSchema<undefined>;
1660
+ readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1661
+ }, undefined>;
1662
+ readonly '~sats-connect-method': v.LiteralSchema<"spark_flashnet_executeRouteSwap", undefined>;
1663
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1664
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1665
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1666
+ readonly message: v.StringSchema<undefined>;
1667
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1668
+ }, undefined>], undefined>, undefined>;
1669
+ }, undefined>, undefined>;
1670
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1671
+ }, undefined>;
1672
+ type SparkFlashnetExecuteRouteSwapSuccessResponse = v.InferOutput<typeof sparkFlashnetExecuteRouteSwapSuccessResponseSchema>;
1673
+ //#endregion
1674
+ //#region src/request/rpc/methodSchemas/spark/flashnetClawbackFunds/response.d.ts
1675
+ declare const sparkFlashnetClawbackFundsSuccessResponseSchema: v.ObjectSchema<{
1676
+ readonly id: v.StringSchema<undefined>;
1677
+ readonly result: v.ObjectSchema<{
1678
+ readonly requestId: v.StringSchema<undefined>;
1679
+ readonly accepted: v.BooleanSchema<undefined>;
1680
+ readonly internalRequestId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1681
+ readonly sparkStatusTrackingId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1682
+ readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1683
+ }, undefined>;
1684
+ readonly '~sats-connect-method': v.LiteralSchema<"spark_flashnet_clawbackFunds", undefined>;
1685
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1686
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1687
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1688
+ readonly message: v.StringSchema<undefined>;
1689
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1690
+ }, undefined>], undefined>, undefined>;
1691
+ }, undefined>, undefined>;
1692
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1693
+ }, undefined>;
1694
+ type SparkFlashnetClawbackFundsSuccessResponse = v.InferOutput<typeof sparkFlashnetClawbackFundsSuccessResponseSchema>;
1695
+ //#endregion
1696
+ //#region src/request/rpc/methodSchemas/spark/getClawbackEligibleTransfers/response.d.ts
1697
+ declare const sparkGetClawbackEligibleTransfersSuccessResponseSchema: v.ObjectSchema<{
1698
+ readonly id: v.StringSchema<undefined>;
1699
+ readonly result: v.ObjectSchema<{
1700
+ readonly eligibleTransfers: v.ArraySchema<v.ObjectSchema<{
1701
+ readonly txId: v.StringSchema<undefined>;
1702
+ readonly createdAt: v.StringSchema<undefined>;
1703
+ readonly lpIdentityPublicKey: v.StringSchema<undefined>;
1704
+ }, undefined>, undefined>;
1705
+ }, undefined>;
1706
+ readonly '~sats-connect-method': v.LiteralSchema<"spark_getClawbackEligibleTransfers", undefined>;
1707
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1708
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1709
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1710
+ readonly message: v.StringSchema<undefined>;
1711
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1712
+ }, undefined>], undefined>, undefined>;
1713
+ }, undefined>, undefined>;
1714
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1715
+ }, undefined>;
1716
+ type SparkGetClawbackEligibleTransfersSuccessResponse = v.InferOutput<typeof sparkGetClawbackEligibleTransfersSuccessResponseSchema>;
1717
+ //#endregion
1718
+ //#region src/request/rpc/methodSchemas/runes/estimateEtch/response.d.ts
1719
+ declare const runesEstimateEtchSuccessResponseSchema: v.ObjectSchema<{
1720
+ readonly id: v.StringSchema<undefined>;
1721
+ readonly result: v.ObjectSchema<{
1722
+ readonly totalSize: v.NumberSchema<undefined>;
1723
+ readonly totalCost: v.NumberSchema<undefined>;
1724
+ readonly costBreakdown: v.ObjectSchema<{
1725
+ readonly postage: v.NumberSchema<undefined>;
1726
+ readonly networkFee: v.NumberSchema<undefined>;
1727
+ readonly serviceFee: v.NumberSchema<undefined>;
1728
+ readonly appServiceFee: v.NumberSchema<undefined>;
1729
+ }, undefined>;
1730
+ }, undefined>;
1731
+ readonly '~sats-connect-method': v.LiteralSchema<"runes_estimateEtch", undefined>;
1732
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1733
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1734
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1735
+ readonly message: v.StringSchema<undefined>;
1736
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1737
+ }, undefined>], undefined>, undefined>;
1738
+ }, undefined>, undefined>;
1739
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1740
+ }, undefined>;
1741
+ type RunesEstimateEtchSuccessResponse = v.InferOutput<typeof runesEstimateEtchSuccessResponseSchema>;
1742
+ //#endregion
1743
+ //#region src/request/rpc/methodSchemas/runes/estimateMint/response.d.ts
1744
+ declare const runesEstimateMintSuccessResponseSchema: v.ObjectSchema<{
1745
+ readonly id: v.StringSchema<undefined>;
1746
+ readonly result: v.ObjectSchema<{
1747
+ readonly totalSize: v.NumberSchema<undefined>;
1748
+ readonly totalCost: v.NumberSchema<undefined>;
1749
+ readonly costBreakdown: v.ObjectSchema<{
1750
+ readonly postage: v.NumberSchema<undefined>;
1751
+ readonly networkFee: v.NumberSchema<undefined>;
1752
+ readonly serviceFee: v.NumberSchema<undefined>;
1753
+ readonly appServiceFee: v.NumberSchema<undefined>;
1754
+ }, undefined>;
1755
+ }, undefined>;
1756
+ readonly '~sats-connect-method': v.LiteralSchema<"runes_estimateMint", undefined>;
1757
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1758
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1759
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1760
+ readonly message: v.StringSchema<undefined>;
1761
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1762
+ }, undefined>], undefined>, undefined>;
1763
+ }, undefined>, undefined>;
1764
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1765
+ }, undefined>;
1766
+ type RunesEstimateMintSuccessResponse = v.InferOutput<typeof runesEstimateMintSuccessResponseSchema>;
1767
+ //#endregion
1768
+ //#region src/request/rpc/methodSchemas/runes/estimateRbfOrder/response.d.ts
1769
+ declare const runesEstimateRbfOrderSuccessResponseSchema: v.ObjectSchema<{
1770
+ readonly id: v.StringSchema<undefined>;
1771
+ readonly result: v.ObjectSchema<{
1772
+ readonly rbfCost: v.NumberSchema<undefined>;
1773
+ readonly fundingAddress: v.StringSchema<undefined>;
1774
+ }, undefined>;
1775
+ readonly '~sats-connect-method': v.LiteralSchema<"runes_estimateRbfOrder", undefined>;
1776
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1777
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1778
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1779
+ readonly message: v.StringSchema<undefined>;
1780
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1781
+ }, undefined>], undefined>, undefined>;
1782
+ }, undefined>, undefined>;
1783
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1784
+ }, undefined>;
1785
+ type RunesEstimateRbfOrderSuccessResponse = v.InferOutput<typeof runesEstimateRbfOrderSuccessResponseSchema>;
1786
+ //#endregion
1787
+ //#region src/request/rpc/methodSchemas/runes/etch/response.d.ts
1788
+ declare const runesEtchSuccessResponseSchema: v.ObjectSchema<{
1789
+ readonly id: v.StringSchema<undefined>;
1790
+ readonly result: v.ObjectSchema<{
1791
+ readonly orderId: v.StringSchema<undefined>;
1792
+ readonly fundTransactionId: v.StringSchema<undefined>;
1793
+ readonly fundingAddress: v.StringSchema<undefined>;
1794
+ }, undefined>;
1795
+ readonly '~sats-connect-method': v.LiteralSchema<"runes_etch", undefined>;
1796
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1797
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1798
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1799
+ readonly message: v.StringSchema<undefined>;
1800
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1801
+ }, undefined>], undefined>, undefined>;
1802
+ }, undefined>, undefined>;
1803
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1804
+ }, undefined>;
1805
+ type RunesEtchSuccessResponse = v.InferOutput<typeof runesEtchSuccessResponseSchema>;
1806
+ //#endregion
1807
+ //#region src/request/rpc/methodSchemas/runes/getBalance/response.d.ts
1808
+ declare const runesGetBalanceSuccessResponseSchema: v.ObjectSchema<{
1809
+ readonly id: v.StringSchema<undefined>;
1810
+ readonly result: v.ObjectSchema<{
1811
+ readonly balances: v.ArraySchema<v.ObjectSchema<{
1812
+ readonly runeName: v.StringSchema<undefined>;
1813
+ readonly amount: v.StringSchema<undefined>;
1814
+ readonly divisibility: v.NumberSchema<undefined>;
1815
+ readonly symbol: v.StringSchema<undefined>;
1816
+ readonly inscriptionId: v.NullishSchema<v.StringSchema<undefined>, undefined>;
1817
+ readonly spendableBalance: v.StringSchema<undefined>;
1818
+ }, undefined>, undefined>;
1819
+ }, undefined>;
1820
+ readonly '~sats-connect-method': v.LiteralSchema<"runes_getBalance", undefined>;
1821
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1822
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1823
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1824
+ readonly message: v.StringSchema<undefined>;
1825
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1826
+ }, undefined>], undefined>, undefined>;
1827
+ }, undefined>, undefined>;
1828
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1829
+ }, undefined>;
1830
+ type RunesGetBalanceSuccessResponse = v.InferOutput<typeof runesGetBalanceSuccessResponseSchema>;
1831
+ //#endregion
1832
+ //#region src/request/rpc/methodSchemas/runes/getOrder/response.d.ts
1833
+ declare const runesGetOrderSuccessResponseSchema: v.ObjectSchema<{
1834
+ readonly id: v.StringSchema<undefined>;
1835
+ readonly result: v.ObjectSchema<{
1836
+ readonly id: v.StringSchema<undefined>;
1837
+ readonly orderType: v.UnionSchema<[v.LiteralSchema<"rune_mint", undefined>, v.LiteralSchema<"rune_etch", undefined>], undefined>;
1838
+ readonly state: v.UnionSchema<[v.LiteralSchema<"new", undefined>, v.LiteralSchema<"pending", undefined>, v.LiteralSchema<"executing", undefined>, v.LiteralSchema<"complete", undefined>, v.LiteralSchema<"failed", undefined>, v.LiteralSchema<"refunded", undefined>, v.LiteralSchema<"stale", undefined>], undefined>;
1839
+ readonly fundingAddress: v.StringSchema<undefined>;
1840
+ readonly reason: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1841
+ readonly createdAt: v.StringSchema<undefined>;
1842
+ }, undefined>;
1843
+ readonly '~sats-connect-method': v.LiteralSchema<"runes_getOrder", undefined>;
1844
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1845
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1846
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1847
+ readonly message: v.StringSchema<undefined>;
1848
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1849
+ }, undefined>], undefined>, undefined>;
1850
+ }, undefined>, undefined>;
1851
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1852
+ }, undefined>;
1853
+ type RunesGetOrderSuccessResponse = v.InferOutput<typeof runesGetOrderSuccessResponseSchema>;
1854
+ //#endregion
1855
+ //#region src/request/rpc/methodSchemas/runes/mint/response.d.ts
1856
+ declare const runesMintSuccessResponseSchema: v.ObjectSchema<{
1857
+ readonly id: v.StringSchema<undefined>;
1858
+ readonly result: v.ObjectSchema<{
1859
+ readonly orderId: v.StringSchema<undefined>;
1860
+ readonly fundTransactionId: v.StringSchema<undefined>;
1861
+ readonly fundingAddress: v.StringSchema<undefined>;
1862
+ }, undefined>;
1863
+ readonly '~sats-connect-method': v.LiteralSchema<"runes_mint", undefined>;
1864
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1865
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1866
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1867
+ readonly message: v.StringSchema<undefined>;
1868
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1869
+ }, undefined>], undefined>, undefined>;
1870
+ }, undefined>, undefined>;
1871
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1872
+ }, undefined>;
1873
+ type RunesMintSuccessResponse = v.InferOutput<typeof runesMintSuccessResponseSchema>;
1874
+ //#endregion
1875
+ //#region src/request/rpc/methodSchemas/runes/rbfOrder/response.d.ts
1876
+ declare const runesRbfOrderSuccessResponseSchema: v.ObjectSchema<{
1877
+ readonly id: v.StringSchema<undefined>;
1878
+ readonly result: v.ObjectSchema<{
1879
+ readonly orderId: v.StringSchema<undefined>;
1880
+ readonly fundRBFTransactionId: v.StringSchema<undefined>;
1881
+ readonly fundingAddress: v.StringSchema<undefined>;
1882
+ }, undefined>;
1883
+ readonly '~sats-connect-method': v.LiteralSchema<"runes_rbfOrder", undefined>;
1884
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1885
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1886
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1887
+ readonly message: v.StringSchema<undefined>;
1888
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1889
+ }, undefined>], undefined>, undefined>;
1890
+ }, undefined>, undefined>;
1891
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1892
+ }, undefined>;
1893
+ type RunesRbfOrderSuccessResponse = v.InferOutput<typeof runesRbfOrderSuccessResponseSchema>;
1894
+ //#endregion
1895
+ //#region src/request/rpc/methodSchemas/runes/transfer/response.d.ts
1896
+ declare const runesTransferSuccessResponseSchema: v.ObjectSchema<{
1897
+ readonly id: v.StringSchema<undefined>;
1898
+ readonly result: v.ObjectSchema<{
1899
+ readonly txid: v.StringSchema<undefined>;
1900
+ }, undefined>;
1901
+ readonly '~sats-connect-method': v.LiteralSchema<"runes_transfer", undefined>;
1902
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1903
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1904
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1905
+ readonly message: v.StringSchema<undefined>;
1906
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1907
+ }, undefined>], undefined>, undefined>;
1908
+ }, undefined>, undefined>;
1909
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1910
+ }, undefined>;
1911
+ type RunesTransferSuccessResponse = v.InferOutput<typeof runesTransferSuccessResponseSchema>;
1912
+ //#endregion
1913
+ //#region src/request/rpc/methodSchemas/ordinals/getInscriptions/response.d.ts
1914
+ declare const ordinalsGetInscriptionsSuccessResponseSchema: v.ObjectSchema<{
1915
+ readonly id: v.StringSchema<undefined>;
1916
+ readonly result: v.ObjectSchema<{
1917
+ readonly total: v.NumberSchema<undefined>;
1918
+ readonly limit: v.NumberSchema<undefined>;
1919
+ readonly offset: v.NumberSchema<undefined>;
1920
+ readonly inscriptions: v.ArraySchema<v.ObjectSchema<{
1921
+ readonly inscriptionId: v.StringSchema<undefined>;
1922
+ readonly inscriptionNumber: v.StringSchema<undefined>;
1923
+ readonly address: v.StringSchema<undefined>;
1924
+ readonly collectionName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1925
+ readonly postage: v.StringSchema<undefined>;
1926
+ readonly contentLength: v.StringSchema<undefined>;
1927
+ readonly contentType: v.StringSchema<undefined>;
1928
+ readonly timestamp: v.NumberSchema<undefined>;
1929
+ readonly offset: v.NumberSchema<undefined>;
1930
+ readonly genesisTransaction: v.StringSchema<undefined>;
1931
+ readonly output: v.StringSchema<undefined>;
1932
+ }, undefined>, undefined>;
1933
+ }, undefined>;
1934
+ readonly '~sats-connect-method': v.LiteralSchema<"ord_getInscriptions", undefined>;
1935
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1936
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1937
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1938
+ readonly message: v.StringSchema<undefined>;
1939
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1940
+ }, undefined>], undefined>, undefined>;
1941
+ }, undefined>, undefined>;
1942
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1943
+ }, undefined>;
1944
+ type OrdinalsGetInscriptionsSuccessResponse = v.InferOutput<typeof ordinalsGetInscriptionsSuccessResponseSchema>;
1945
+ //#endregion
1946
+ //#region src/request/rpc/methodSchemas/ordinals/sendInscriptions/response.d.ts
1947
+ declare const ordinalsSendInscriptionsSuccessResponseSchema: v.ObjectSchema<{
1948
+ readonly id: v.StringSchema<undefined>;
1949
+ readonly result: v.ObjectSchema<{
1950
+ /**
1951
+ * The transaction id as a hex-encoded string.
1952
+ */
1953
+ readonly txid: v.StringSchema<undefined>;
1954
+ }, undefined>;
1955
+ readonly '~sats-connect-method': v.LiteralSchema<"ord_sendInscriptions", undefined>;
1956
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1957
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1958
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1959
+ readonly message: v.StringSchema<undefined>;
1960
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1961
+ }, undefined>], undefined>, undefined>;
1962
+ }, undefined>, undefined>;
1963
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1964
+ }, undefined>;
1965
+ type OrdinalsSendInscriptionsSuccessResponse = v.InferOutput<typeof ordinalsSendInscriptionsSuccessResponseSchema>;
1966
+ //#endregion
1967
+ //#region src/request/rpc/methodSchemas/wallet/addNetwork/response.d.ts
1968
+ declare const walletAddNetworkSuccessResponseSchema: v.ObjectSchema<{
1969
+ readonly id: v.StringSchema<undefined>;
1970
+ readonly result: v.ObjectSchema<{
1971
+ readonly id: v.StringSchema<undefined>;
1972
+ }, undefined>;
1973
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_addNetwork", undefined>;
1974
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1975
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1976
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1977
+ readonly message: v.StringSchema<undefined>;
1978
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1979
+ }, undefined>], undefined>, undefined>;
1980
+ }, undefined>, undefined>;
1981
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1982
+ }, undefined>;
1983
+ type WalletAddNetworkSuccessResponse = v.InferOutput<typeof walletAddNetworkSuccessResponseSchema>;
1984
+ //#endregion
1985
+ //#region src/request/rpc/methodSchemas/wallet/addNetworkV2/response.d.ts
1986
+ declare const walletAddNetworkV2SuccessResponseSchema: v.ObjectSchema<{
1987
+ readonly id: v.StringSchema<undefined>;
1988
+ readonly result: v.ObjectSchema<{
1989
+ readonly id: v.StringSchema<undefined>;
1990
+ }, undefined>;
1991
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_addNetworkV2", undefined>;
1992
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
1993
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
1994
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
1995
+ readonly message: v.StringSchema<undefined>;
1996
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
1997
+ }, undefined>], undefined>, undefined>;
1998
+ }, undefined>, undefined>;
1999
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2000
+ }, undefined>;
2001
+ type WalletAddNetworkV2SuccessResponse = v.InferOutput<typeof walletAddNetworkV2SuccessResponseSchema>;
2002
+ //#endregion
2003
+ //#region src/request/rpc/methodSchemas/wallet/changeNetworkById/response.d.ts
2004
+ declare const walletChangeNetworkByIdSuccessResponseSchema: v.ObjectSchema<{
2005
+ readonly id: v.StringSchema<undefined>;
2006
+ readonly result: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2007
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_changeNetworkById", undefined>;
2008
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2009
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2010
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2011
+ readonly message: v.StringSchema<undefined>;
2012
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2013
+ }, undefined>], undefined>, undefined>;
2014
+ }, undefined>, undefined>;
2015
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2016
+ }, undefined>;
2017
+ type WalletChangeNetworkByIdSuccessResponse = v.InferOutput<typeof walletChangeNetworkByIdSuccessResponseSchema>;
2018
+ //#endregion
2019
+ //#region src/request/rpc/methodSchemas/wallet/changeNetwork/response.d.ts
2020
+ declare const walletChangeNetworkSuccessResponseSchema: v.ObjectSchema<{
2021
+ readonly id: v.StringSchema<undefined>;
2022
+ readonly result: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2023
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_changeNetwork", undefined>;
2024
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2025
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2026
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2027
+ readonly message: v.StringSchema<undefined>;
2028
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2029
+ }, undefined>], undefined>, undefined>;
2030
+ }, undefined>, undefined>;
2031
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2032
+ }, undefined>;
2033
+ type WalletChangeNetworkSuccessResponse = v.InferOutput<typeof walletChangeNetworkSuccessResponseSchema>;
2034
+ //#endregion
2035
+ //#region src/request/rpc/methodSchemas/wallet/connect/response.d.ts
2036
+ declare const walletConnectSuccessResponseSchema: v.ObjectSchema<{
2037
+ readonly id: v.StringSchema<undefined>;
2038
+ readonly result: v.ObjectSchema<{
2039
+ readonly id: v.StringSchema<undefined>;
2040
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
2041
+ readonly address: v.StringSchema<undefined>;
2042
+ readonly publicKey: v.StringSchema<undefined>;
2043
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
2044
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
2045
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
2046
+ }, undefined>, undefined>;
2047
+ readonly walletType: v.PicklistSchema<["software", "ledger"], undefined>;
2048
+ readonly network: v.ObjectSchema<{
2049
+ readonly bitcoin: v.ObjectSchema<{
2050
+ readonly name: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
2051
+ }, undefined>;
2052
+ readonly stacks: v.ObjectSchema<{
2053
+ readonly name: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2054
+ }, undefined>;
2055
+ readonly spark: v.ObjectSchema<{
2056
+ readonly name: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2057
+ }, undefined>;
2058
+ }, undefined>;
2059
+ }, undefined>;
2060
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_connect", undefined>;
2061
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2062
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2063
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2064
+ readonly message: v.StringSchema<undefined>;
2065
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2066
+ }, undefined>], undefined>, undefined>;
2067
+ }, undefined>, undefined>;
2068
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2069
+ }, undefined>;
2070
+ type WalletConnectSuccessResponse = v.InferOutput<typeof walletConnectSuccessResponseSchema>;
2071
+ //#endregion
2072
+ //#region src/request/rpc/methodSchemas/wallet/connectV2/response.d.ts
2073
+ declare const walletConnectV2SuccessResponseSchema: v.ObjectSchema<{
2074
+ readonly id: v.StringSchema<undefined>;
2075
+ readonly result: v.ObjectSchema<{
2076
+ readonly id: v.StringSchema<undefined>;
2077
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
2078
+ readonly address: v.StringSchema<undefined>;
2079
+ readonly publicKey: v.StringSchema<undefined>;
2080
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
2081
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
2082
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
2083
+ }, undefined>, undefined>;
2084
+ readonly walletType: v.PicklistSchema<["software", "ledger"], undefined>;
2085
+ readonly networks: v.ObjectSchema<{
2086
+ readonly active: v.ObjectSchema<{
2087
+ readonly bitcoin: v.ObjectSchema<{
2088
+ readonly id: v.StringSchema<undefined>;
2089
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2090
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
2091
+ readonly name: v.StringSchema<undefined>;
2092
+ readonly rpcUrl: v.StringSchema<undefined>;
2093
+ readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2094
+ readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2095
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2096
+ }, undefined>;
2097
+ readonly stacks: v.ObjectSchema<{
2098
+ readonly id: v.StringSchema<undefined>;
2099
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2100
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2101
+ readonly name: v.StringSchema<undefined>;
2102
+ readonly rpcUrl: v.StringSchema<undefined>;
2103
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2104
+ }, undefined>;
2105
+ readonly spark: v.ObjectSchema<{
2106
+ readonly id: v.StringSchema<undefined>;
2107
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2108
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2109
+ readonly name: v.StringSchema<undefined>;
2110
+ readonly rpcUrl: v.StringSchema<undefined>;
2111
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2112
+ }, undefined>;
2113
+ readonly starknet: v.ObjectSchema<{
2114
+ readonly id: v.StringSchema<undefined>;
2115
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2116
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Sepolia"], undefined>;
2117
+ readonly name: v.StringSchema<undefined>;
2118
+ readonly rpcUrl: v.StringSchema<undefined>;
2119
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2120
+ }, undefined>;
2121
+ }, undefined>;
2122
+ readonly builtin: v.ObjectSchema<{
2123
+ readonly bitcoin: v.ArraySchema<v.ObjectSchema<{
2124
+ readonly id: v.StringSchema<undefined>;
2125
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2126
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
2127
+ readonly name: v.StringSchema<undefined>;
2128
+ readonly rpcUrl: v.StringSchema<undefined>;
2129
+ readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2130
+ readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2131
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2132
+ }, undefined>, undefined>;
2133
+ readonly stacks: v.ArraySchema<v.ObjectSchema<{
2134
+ readonly id: v.StringSchema<undefined>;
2135
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2136
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2137
+ readonly name: v.StringSchema<undefined>;
2138
+ readonly rpcUrl: v.StringSchema<undefined>;
2139
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2140
+ }, undefined>, undefined>;
2141
+ readonly spark: v.ArraySchema<v.ObjectSchema<{
2142
+ readonly id: v.StringSchema<undefined>;
2143
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2144
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2145
+ readonly name: v.StringSchema<undefined>;
2146
+ readonly rpcUrl: v.StringSchema<undefined>;
2147
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2148
+ }, undefined>, undefined>;
2149
+ readonly starknet: v.ArraySchema<v.ObjectSchema<{
2150
+ readonly id: v.StringSchema<undefined>;
2151
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2152
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Sepolia"], undefined>;
2153
+ readonly name: v.StringSchema<undefined>;
2154
+ readonly rpcUrl: v.StringSchema<undefined>;
2155
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2156
+ }, undefined>, undefined>;
2157
+ }, undefined>;
2158
+ readonly custom: v.ObjectSchema<{
2159
+ readonly bitcoin: v.ArraySchema<v.ObjectSchema<{
2160
+ readonly id: v.StringSchema<undefined>;
2161
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2162
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
2163
+ readonly name: v.StringSchema<undefined>;
2164
+ readonly rpcUrl: v.StringSchema<undefined>;
2165
+ readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2166
+ readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2167
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2168
+ }, undefined>, undefined>;
2169
+ readonly stacks: v.ArraySchema<v.ObjectSchema<{
2170
+ readonly id: v.StringSchema<undefined>;
2171
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2172
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2173
+ readonly name: v.StringSchema<undefined>;
2174
+ readonly rpcUrl: v.StringSchema<undefined>;
2175
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2176
+ }, undefined>, undefined>;
2177
+ readonly spark: v.ArraySchema<v.ObjectSchema<{
2178
+ readonly id: v.StringSchema<undefined>;
2179
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2180
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2181
+ readonly name: v.StringSchema<undefined>;
2182
+ readonly rpcUrl: v.StringSchema<undefined>;
2183
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2184
+ }, undefined>, undefined>;
2185
+ readonly starknet: v.ArraySchema<v.ObjectSchema<{
2186
+ readonly id: v.StringSchema<undefined>;
2187
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2188
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Sepolia"], undefined>;
2189
+ readonly name: v.StringSchema<undefined>;
2190
+ readonly rpcUrl: v.StringSchema<undefined>;
2191
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2192
+ }, undefined>, undefined>;
2193
+ }, undefined>;
2194
+ }, undefined>;
2195
+ }, undefined>;
2196
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_connectV2", undefined>;
2197
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2198
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2199
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2200
+ readonly message: v.StringSchema<undefined>;
2201
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2202
+ }, undefined>], undefined>, undefined>;
2203
+ }, undefined>, undefined>;
2204
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2205
+ }, undefined>;
2206
+ type WalletConnectV2SuccessResponse = v.InferOutput<typeof walletConnectV2SuccessResponseSchema>;
2207
+ //#endregion
2208
+ //#region src/request/rpc/methodSchemas/wallet/disconnect/response.d.ts
2209
+ declare const walletDisconnectSuccessResponseSchema: v.ObjectSchema<{
2210
+ readonly id: v.StringSchema<undefined>;
2211
+ readonly result: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2212
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_disconnect", undefined>;
2213
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2214
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2215
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2216
+ readonly message: v.StringSchema<undefined>;
2217
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2218
+ }, undefined>], undefined>, undefined>;
2219
+ }, undefined>, undefined>;
2220
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2221
+ }, undefined>;
2222
+ type WalletDisconnectSuccessResponse = v.InferOutput<typeof walletDisconnectSuccessResponseSchema>;
2223
+ //#endregion
2224
+ //#region src/request/rpc/methodSchemas/wallet/getAccount/response.d.ts
2225
+ declare const walletGetAccountSuccessResponseSchema: v.ObjectSchema<{
2226
+ readonly id: v.StringSchema<undefined>;
2227
+ readonly result: v.ObjectSchema<{
2228
+ readonly id: v.StringSchema<undefined>;
2229
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
2230
+ readonly address: v.StringSchema<undefined>;
2231
+ readonly publicKey: v.StringSchema<undefined>;
2232
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
2233
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
2234
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
2235
+ }, undefined>, undefined>;
2236
+ readonly walletType: v.PicklistSchema<["software", "ledger"], undefined>;
2237
+ readonly network: v.ObjectSchema<{
2238
+ readonly bitcoin: v.ObjectSchema<{
2239
+ readonly name: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
2240
+ }, undefined>;
2241
+ readonly stacks: v.ObjectSchema<{
2242
+ readonly name: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2243
+ }, undefined>;
2244
+ readonly spark: v.ObjectSchema<{
2245
+ readonly name: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2246
+ }, undefined>;
2247
+ }, undefined>;
2248
+ }, undefined>;
2249
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_getAccount", undefined>;
2250
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2251
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2252
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2253
+ readonly message: v.StringSchema<undefined>;
2254
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2255
+ }, undefined>], undefined>, undefined>;
2256
+ }, undefined>, undefined>;
2257
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2258
+ }, undefined>;
2259
+ type WalletGetAccountSuccessResponse = v.InferOutput<typeof walletGetAccountSuccessResponseSchema>;
2260
+ //#endregion
2261
+ //#region src/request/rpc/methodSchemas/wallet/getAccountV2/response.d.ts
2262
+ declare const walletGetAccountV2SuccessResponseSchema: v.ObjectSchema<{
2263
+ readonly id: v.StringSchema<undefined>;
2264
+ readonly result: v.ObjectSchema<{
2265
+ readonly id: v.StringSchema<undefined>;
2266
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
2267
+ readonly address: v.StringSchema<undefined>;
2268
+ readonly publicKey: v.StringSchema<undefined>;
2269
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
2270
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
2271
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
2272
+ }, undefined>, undefined>;
2273
+ readonly walletType: v.PicklistSchema<["software", "ledger"], undefined>;
2274
+ readonly networks: v.ObjectSchema<{
2275
+ readonly active: v.ObjectSchema<{
2276
+ readonly bitcoin: v.ObjectSchema<{
2277
+ readonly id: v.StringSchema<undefined>;
2278
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2279
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
2280
+ readonly name: v.StringSchema<undefined>;
2281
+ readonly rpcUrl: v.StringSchema<undefined>;
2282
+ readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2283
+ readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2284
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2285
+ }, undefined>;
2286
+ readonly stacks: v.ObjectSchema<{
2287
+ readonly id: v.StringSchema<undefined>;
2288
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2289
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2290
+ readonly name: v.StringSchema<undefined>;
2291
+ readonly rpcUrl: v.StringSchema<undefined>;
2292
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2293
+ }, undefined>;
2294
+ readonly spark: v.ObjectSchema<{
2295
+ readonly id: v.StringSchema<undefined>;
2296
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2297
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2298
+ readonly name: v.StringSchema<undefined>;
2299
+ readonly rpcUrl: v.StringSchema<undefined>;
2300
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2301
+ }, undefined>;
2302
+ readonly starknet: v.ObjectSchema<{
2303
+ readonly id: v.StringSchema<undefined>;
2304
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2305
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Sepolia"], undefined>;
2306
+ readonly name: v.StringSchema<undefined>;
2307
+ readonly rpcUrl: v.StringSchema<undefined>;
2308
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2309
+ }, undefined>;
2310
+ }, undefined>;
2311
+ readonly builtin: v.ObjectSchema<{
2312
+ readonly bitcoin: v.ArraySchema<v.ObjectSchema<{
2313
+ readonly id: v.StringSchema<undefined>;
2314
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2315
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
2316
+ readonly name: v.StringSchema<undefined>;
2317
+ readonly rpcUrl: v.StringSchema<undefined>;
2318
+ readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2319
+ readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2320
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2321
+ }, undefined>, undefined>;
2322
+ readonly stacks: v.ArraySchema<v.ObjectSchema<{
2323
+ readonly id: v.StringSchema<undefined>;
2324
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2325
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2326
+ readonly name: v.StringSchema<undefined>;
2327
+ readonly rpcUrl: v.StringSchema<undefined>;
2328
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2329
+ }, undefined>, undefined>;
2330
+ readonly spark: v.ArraySchema<v.ObjectSchema<{
2331
+ readonly id: v.StringSchema<undefined>;
2332
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2333
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2334
+ readonly name: v.StringSchema<undefined>;
2335
+ readonly rpcUrl: v.StringSchema<undefined>;
2336
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2337
+ }, undefined>, undefined>;
2338
+ readonly starknet: v.ArraySchema<v.ObjectSchema<{
2339
+ readonly id: v.StringSchema<undefined>;
2340
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2341
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Sepolia"], undefined>;
2342
+ readonly name: v.StringSchema<undefined>;
2343
+ readonly rpcUrl: v.StringSchema<undefined>;
2344
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2345
+ }, undefined>, undefined>;
2346
+ }, undefined>;
2347
+ readonly custom: v.ObjectSchema<{
2348
+ readonly bitcoin: v.ArraySchema<v.ObjectSchema<{
2349
+ readonly id: v.StringSchema<undefined>;
2350
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2351
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
2352
+ readonly name: v.StringSchema<undefined>;
2353
+ readonly rpcUrl: v.StringSchema<undefined>;
2354
+ readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2355
+ readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2356
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2357
+ }, undefined>, undefined>;
2358
+ readonly stacks: v.ArraySchema<v.ObjectSchema<{
2359
+ readonly id: v.StringSchema<undefined>;
2360
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2361
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2362
+ readonly name: v.StringSchema<undefined>;
2363
+ readonly rpcUrl: v.StringSchema<undefined>;
2364
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2365
+ }, undefined>, undefined>;
2366
+ readonly spark: v.ArraySchema<v.ObjectSchema<{
2367
+ readonly id: v.StringSchema<undefined>;
2368
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2369
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2370
+ readonly name: v.StringSchema<undefined>;
2371
+ readonly rpcUrl: v.StringSchema<undefined>;
2372
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2373
+ }, undefined>, undefined>;
2374
+ readonly starknet: v.ArraySchema<v.ObjectSchema<{
2375
+ readonly id: v.StringSchema<undefined>;
2376
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2377
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Sepolia"], undefined>;
2378
+ readonly name: v.StringSchema<undefined>;
2379
+ readonly rpcUrl: v.StringSchema<undefined>;
2380
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2381
+ }, undefined>, undefined>;
2382
+ }, undefined>;
2383
+ }, undefined>;
2384
+ }, undefined>;
2385
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_getAccountV2", undefined>;
2386
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2387
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2388
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2389
+ readonly message: v.StringSchema<undefined>;
2390
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2391
+ }, undefined>], undefined>, undefined>;
2392
+ }, undefined>, undefined>;
2393
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2394
+ }, undefined>;
2395
+ type WalletGetAccountV2SuccessResponse = v.InferOutput<typeof walletGetAccountV2SuccessResponseSchema>;
2396
+ //#endregion
2397
+ //#region src/request/rpc/methodSchemas/wallet/getCurrentPermissions/response.d.ts
2398
+ declare const walletGetCurrentPermissionsSuccessResponseSchema: v.ObjectSchema<{
2399
+ readonly id: v.StringSchema<undefined>;
2400
+ readonly result: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
2401
+ readonly type: v.LiteralSchema<"account", undefined>;
2402
+ readonly resourceId: v.StringSchema<undefined>;
2403
+ readonly clientId: v.StringSchema<undefined>;
2404
+ readonly actions: v.ObjectSchema<{
2405
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2406
+ }, undefined>;
2407
+ }, undefined>, v.ObjectSchema<{
2408
+ readonly type: v.LiteralSchema<"wallet", undefined>;
2409
+ readonly resourceId: v.StringSchema<undefined>;
2410
+ readonly clientId: v.StringSchema<undefined>;
2411
+ readonly actions: v.ObjectSchema<{
2412
+ readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2413
+ }, undefined>;
2414
+ }, undefined>], undefined>, undefined>;
2415
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_getCurrentPermissions", undefined>;
2416
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2417
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2418
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2419
+ readonly message: v.StringSchema<undefined>;
2420
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2421
+ }, undefined>], undefined>, undefined>;
2422
+ }, undefined>, undefined>;
2423
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2424
+ }, undefined>;
2425
+ type WalletGetCurrentPermissionsSuccessResponse = v.InferOutput<typeof walletGetCurrentPermissionsSuccessResponseSchema>;
2426
+ //#endregion
2427
+ //#region src/request/rpc/methodSchemas/wallet/getNetwork/response.d.ts
2428
+ declare const walletGetNetworkSuccessResponseSchema: v.ObjectSchema<{
2429
+ readonly id: v.StringSchema<undefined>;
2430
+ readonly result: v.ObjectSchema<{
2431
+ readonly bitcoin: v.ObjectSchema<{
2432
+ readonly name: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
2433
+ }, undefined>;
2434
+ readonly stacks: v.ObjectSchema<{
2435
+ readonly name: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2436
+ }, undefined>;
2437
+ readonly spark: v.ObjectSchema<{
2438
+ readonly name: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2439
+ }, undefined>;
2440
+ }, undefined>;
2441
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_getNetwork", undefined>;
2442
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2443
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2444
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2445
+ readonly message: v.StringSchema<undefined>;
2446
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2447
+ }, undefined>], undefined>, undefined>;
2448
+ }, undefined>, undefined>;
2449
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2450
+ }, undefined>;
2451
+ type WalletGetNetworkSuccessResponse = v.InferOutput<typeof walletGetNetworkSuccessResponseSchema>;
2452
+ //#endregion
2453
+ //#region src/request/rpc/methodSchemas/wallet/getNetworks/response.d.ts
2454
+ declare const walletGetNetworksSuccessResponseSchema: v.ObjectSchema<{
2455
+ readonly id: v.StringSchema<undefined>;
2456
+ readonly result: v.ObjectSchema<{
2457
+ readonly active: v.ObjectSchema<{
2458
+ readonly bitcoin: v.ObjectSchema<{
2459
+ readonly id: v.StringSchema<undefined>;
2460
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2461
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
2462
+ readonly name: v.StringSchema<undefined>;
2463
+ readonly rpcUrl: v.StringSchema<undefined>;
2464
+ readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2465
+ readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2466
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2467
+ }, undefined>;
2468
+ readonly stacks: v.ObjectSchema<{
2469
+ readonly id: v.StringSchema<undefined>;
2470
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2471
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2472
+ readonly name: v.StringSchema<undefined>;
2473
+ readonly rpcUrl: v.StringSchema<undefined>;
2474
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2475
+ }, undefined>;
2476
+ readonly spark: v.ObjectSchema<{
2477
+ readonly id: v.StringSchema<undefined>;
2478
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2479
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2480
+ readonly name: v.StringSchema<undefined>;
2481
+ readonly rpcUrl: v.StringSchema<undefined>;
2482
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2483
+ }, undefined>;
2484
+ readonly starknet: v.ObjectSchema<{
2485
+ readonly id: v.StringSchema<undefined>;
2486
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2487
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Sepolia"], undefined>;
2488
+ readonly name: v.StringSchema<undefined>;
2489
+ readonly rpcUrl: v.StringSchema<undefined>;
2490
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2491
+ }, undefined>;
2492
+ }, undefined>;
2493
+ readonly builtin: v.ObjectSchema<{
2494
+ readonly bitcoin: v.ArraySchema<v.ObjectSchema<{
2495
+ readonly id: v.StringSchema<undefined>;
2496
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2497
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
2498
+ readonly name: v.StringSchema<undefined>;
2499
+ readonly rpcUrl: v.StringSchema<undefined>;
2500
+ readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2501
+ readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2502
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2503
+ }, undefined>, undefined>;
2504
+ readonly stacks: v.ArraySchema<v.ObjectSchema<{
2505
+ readonly id: v.StringSchema<undefined>;
2506
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2507
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2508
+ readonly name: v.StringSchema<undefined>;
2509
+ readonly rpcUrl: v.StringSchema<undefined>;
2510
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2511
+ }, undefined>, undefined>;
2512
+ readonly spark: v.ArraySchema<v.ObjectSchema<{
2513
+ readonly id: v.StringSchema<undefined>;
2514
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2515
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2516
+ readonly name: v.StringSchema<undefined>;
2517
+ readonly rpcUrl: v.StringSchema<undefined>;
2518
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2519
+ }, undefined>, undefined>;
2520
+ readonly starknet: v.ArraySchema<v.ObjectSchema<{
2521
+ readonly id: v.StringSchema<undefined>;
2522
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2523
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Sepolia"], undefined>;
2524
+ readonly name: v.StringSchema<undefined>;
2525
+ readonly rpcUrl: v.StringSchema<undefined>;
2526
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2527
+ }, undefined>, undefined>;
2528
+ }, undefined>;
2529
+ readonly custom: v.ObjectSchema<{
2530
+ readonly bitcoin: v.ArraySchema<v.ObjectSchema<{
2531
+ readonly id: v.StringSchema<undefined>;
2532
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
2533
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
2534
+ readonly name: v.StringSchema<undefined>;
2535
+ readonly rpcUrl: v.StringSchema<undefined>;
2536
+ readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2537
+ readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2538
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2539
+ }, undefined>, undefined>;
2540
+ readonly stacks: v.ArraySchema<v.ObjectSchema<{
2541
+ readonly id: v.StringSchema<undefined>;
2542
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
2543
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2544
+ readonly name: v.StringSchema<undefined>;
2545
+ readonly rpcUrl: v.StringSchema<undefined>;
2546
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2547
+ }, undefined>, undefined>;
2548
+ readonly spark: v.ArraySchema<v.ObjectSchema<{
2549
+ readonly id: v.StringSchema<undefined>;
2550
+ readonly chain: v.LiteralSchema<"spark", undefined>;
2551
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
2552
+ readonly name: v.StringSchema<undefined>;
2553
+ readonly rpcUrl: v.StringSchema<undefined>;
2554
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2555
+ }, undefined>, undefined>;
2556
+ readonly starknet: v.ArraySchema<v.ObjectSchema<{
2557
+ readonly id: v.StringSchema<undefined>;
2558
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
2559
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Sepolia"], undefined>;
2560
+ readonly name: v.StringSchema<undefined>;
2561
+ readonly rpcUrl: v.StringSchema<undefined>;
2562
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2563
+ }, undefined>, undefined>;
2564
+ }, undefined>;
2565
+ }, undefined>;
2566
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_getNetworks", undefined>;
2567
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2568
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2569
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2570
+ readonly message: v.StringSchema<undefined>;
2571
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2572
+ }, undefined>], undefined>, undefined>;
2573
+ }, undefined>, undefined>;
2574
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2575
+ }, undefined>;
2576
+ type WalletGetNetworksSuccessResponse = v.InferOutput<typeof walletGetNetworksSuccessResponseSchema>;
2577
+ //#endregion
2578
+ //#region src/request/rpc/methodSchemas/wallet/getWalletType/response.d.ts
2579
+ declare const walletGetWalletTypeSuccessResponseSchema: v.ObjectSchema<{
2580
+ readonly id: v.StringSchema<undefined>;
2581
+ readonly result: v.PicklistSchema<["software", "ledger"], undefined>;
2582
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_getWalletType", undefined>;
2583
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2584
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2585
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2586
+ readonly message: v.StringSchema<undefined>;
2587
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2588
+ }, undefined>], undefined>, undefined>;
2589
+ }, undefined>, undefined>;
2590
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2591
+ }, undefined>;
2592
+ type WalletGetWalletTypeSuccessResponse = v.InferOutput<typeof walletGetWalletTypeSuccessResponseSchema>;
2593
+ //#endregion
2594
+ //#region src/request/rpc/methodSchemas/wallet/openBridge/response.d.ts
2595
+ declare const walletOpenBridgeSuccessResponseSchema: v.ObjectSchema<{
2596
+ readonly id: v.StringSchema<undefined>;
2597
+ readonly result: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2598
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_openBridge", undefined>;
2599
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2600
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2601
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2602
+ readonly message: v.StringSchema<undefined>;
2603
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2604
+ }, undefined>], undefined>, undefined>;
2605
+ }, undefined>, undefined>;
2606
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2607
+ }, undefined>;
2608
+ type WalletOpenBridgeSuccessResponse = v.InferOutput<typeof walletOpenBridgeSuccessResponseSchema>;
2609
+ //#endregion
2610
+ //#region src/request/rpc/methodSchemas/wallet/openBuy/response.d.ts
2611
+ declare const walletOpenBuySuccessResponseSchema: v.ObjectSchema<{
2612
+ readonly id: v.StringSchema<undefined>;
2613
+ readonly result: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2614
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_openBuy", undefined>;
2615
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2616
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2617
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2618
+ readonly message: v.StringSchema<undefined>;
2619
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2620
+ }, undefined>], undefined>, undefined>;
2621
+ }, undefined>, undefined>;
2622
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2623
+ }, undefined>;
2624
+ type WalletOpenBuySuccessResponse = v.InferOutput<typeof walletOpenBuySuccessResponseSchema>;
2625
+ //#endregion
2626
+ //#region src/request/rpc/methodSchemas/wallet/openReceive/response.d.ts
2627
+ declare const walletOpenReceiveSuccessResponseSchema: v.ObjectSchema<{
2628
+ readonly id: v.StringSchema<undefined>;
2629
+ readonly result: v.ObjectSchema<{
2630
+ readonly address: v.StringSchema<undefined>;
2631
+ readonly publicKey: v.StringSchema<undefined>;
2632
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
2633
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
2634
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
2635
+ }, undefined>;
2636
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_openReceive", undefined>;
2637
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2638
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2639
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2640
+ readonly message: v.StringSchema<undefined>;
2641
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2642
+ }, undefined>], undefined>, undefined>;
2643
+ }, undefined>, undefined>;
2644
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2645
+ }, undefined>;
2646
+ type WalletOpenReceiveSuccessResponse = v.InferOutput<typeof walletOpenReceiveSuccessResponseSchema>;
2647
+ //#endregion
2648
+ //#region src/request/rpc/methodSchemas/wallet/renouncePermissions/response.d.ts
2649
+ declare const walletRenouncePermissionsSuccessResponseSchema: v.ObjectSchema<{
2650
+ readonly id: v.StringSchema<undefined>;
2651
+ readonly result: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2652
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_renouncePermissions", undefined>;
2653
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2654
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2655
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2656
+ readonly message: v.StringSchema<undefined>;
2657
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2658
+ }, undefined>], undefined>, undefined>;
2659
+ }, undefined>, undefined>;
2660
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2661
+ }, undefined>;
2662
+ type WalletRenouncePermissionsSuccessResponse = v.InferOutput<typeof walletRenouncePermissionsSuccessResponseSchema>;
2663
+ //#endregion
2664
+ //#region src/request/rpc/methodSchemas/wallet/requestPermissions/response.d.ts
2665
+ declare const walletRequestPermissionsSuccessResponseSchema: v.ObjectSchema<{
2666
+ readonly id: v.StringSchema<undefined>;
2667
+ readonly result: v.LiteralSchema<true, undefined>;
2668
+ readonly '~sats-connect-method': v.LiteralSchema<"wallet_requestPermissions", undefined>;
2669
+ readonly extensions: v.OptionalSchema<v.ObjectSchema<{
2670
+ readonly warnings: v.ArraySchema<v.VariantSchema<"code", [v.ObjectSchema<{
2671
+ readonly code: v.LiteralSchema<"DEPRECATION_NOTICE", undefined>;
2672
+ readonly message: v.StringSchema<undefined>;
2673
+ readonly sunsetDate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>;
2674
+ }, undefined>], undefined>, undefined>;
2675
+ }, undefined>, undefined>;
2676
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2677
+ }, undefined>;
2678
+ type WalletRequestPermissionsSuccessResponse = v.InferOutput<typeof walletRequestPermissionsSuccessResponseSchema>;
2679
+ //#endregion
2680
+ //#region src/request/rpc/responses.d.ts
2681
+ type RpcSuccessResponses = ExactObject<Method, {
2682
+ [bitcoinMethods.getAccounts]: BitcoinGetAccountsSuccessResponse;
2683
+ [bitcoinMethods.bitcoin_getAccountsV2]: BitcoinGetAccountsV2SuccessResponse;
2684
+ [bitcoinMethods.getAddresses]: BitcoinGetAddressesSuccessResponse;
2685
+ [bitcoinMethods.bitcoin_getAddressesV2]: BitcoinGetAddressesV2SuccessResponse;
2686
+ [bitcoinMethods.getBalance]: BitcoinGetBalanceSuccessResponse;
2687
+ [bitcoinMethods.bitcoin_getBalanceV2]: BitcoinGetBalanceV2SuccessResponse;
2688
+ [bitcoinMethods.getInfo]: BitcoinGetInfoSuccessResponse;
2689
+ [bitcoinMethods.bitcoin_getInfoV2]: BitcoinGetInfoV2SuccessResponse;
2690
+ [bitcoinMethods.sendTransfer]: BitcoinSendTransferSuccessResponse;
2691
+ [bitcoinMethods.bitcoin_sendTransferV2]: BitcoinSendTransferV2SuccessResponse;
2692
+ [bitcoinMethods.signMessage]: BitcoinSignMessageSuccessResponse;
2693
+ [bitcoinMethods.bitcoin_signMessageV2]: BitcoinSignMessageV2SuccessResponse;
2694
+ [bitcoinMethods.signMultipleMessages]: BitcoinSignMultipleMessagesSuccessResponse;
2695
+ [bitcoinMethods.bitcoin_signMultipleMessagesV2]: BitcoinSignMultipleMessagesV2SuccessResponse;
2696
+ [bitcoinMethods.signPsbt]: BitcoinSignPsbtSuccessResponse;
2697
+ [bitcoinMethods.bitcoin_signPsbtV2]: BitcoinSignPsbtV2SuccessResponse;
2698
+ [stacksMethods.stx_callContract]: StacksCallContractSuccessResponse;
2699
+ [stacksMethods.stx_deployContract]: StacksDeployContractSuccessResponse;
2700
+ [stacksMethods.stx_getAccounts]: StacksGetAccountsSuccessResponse;
2701
+ [stacksMethods.stx_getAddresses]: StacksGetAddressesSuccessResponse;
2702
+ [stacksMethods.stacks_getAddressesV2]: StacksGetAddressesV2SuccessResponse;
2703
+ [stacksMethods.stx_signMessage]: StacksSignMessageSuccessResponse;
2704
+ [stacksMethods.stx_signStructuredMessage]: StacksSignStructuredMessageSuccessResponse;
2705
+ [stacksMethods.stx_signTransaction]: StacksSignTransactionSuccessResponse;
2706
+ [stacksMethods.stx_signTransactions]: StacksSignTransactionsSuccessResponse;
2707
+ [stacksMethods.stx_transferStx]: StacksTransferStxSuccessResponse;
2708
+ [sparkMethods.spark_getAddresses]: SparkGetAddressesSuccessResponse;
2709
+ [sparkMethods.spark_getAddressesV2]: SparkGetAddressesV2SuccessResponse;
2710
+ [sparkMethods.spark_getBalance]: SparkGetBalanceSuccessResponse;
2711
+ [sparkMethods.spark_transfer]: SparkTransferSuccessResponse;
2712
+ [sparkMethods.spark_transferToken]: SparkTransferTokenSuccessResponse;
2713
+ [sparkMethods.spark_signMessage]: SparkSignMessageSuccessResponse;
2714
+ [sparkMethods.spark_flashnet_getJwt]: SparkFlashnetGetJwtSuccessResponse;
2715
+ [sparkMethods.spark_flashnet_signIntent]: SparkFlashnetSignIntentSuccessResponse;
2716
+ [sparkMethods.spark_flashnet_signStructuredMessage]: SparkFlashnetSignStructuredMessageSuccessResponse;
2717
+ [sparkMethods.spark_flashnet_executeSwap]: SparkFlashnetExecuteSwapSuccessResponse;
2718
+ [sparkMethods.spark_flashnet_executeRouteSwap]: SparkFlashnetExecuteRouteSwapSuccessResponse;
2719
+ [sparkMethods.spark_flashnet_clawbackFunds]: SparkFlashnetClawbackFundsSuccessResponse;
2720
+ [sparkMethods.spark_getClawbackEligibleTransfers]: SparkGetClawbackEligibleTransfersSuccessResponse;
2721
+ [runesMethods.runes_estimateEtch]: RunesEstimateEtchSuccessResponse;
2722
+ [runesMethods.runes_estimateMint]: RunesEstimateMintSuccessResponse;
2723
+ [runesMethods.runes_estimateRbfOrder]: RunesEstimateRbfOrderSuccessResponse;
2724
+ [runesMethods.runes_etch]: RunesEtchSuccessResponse;
2725
+ [runesMethods.runes_getBalance]: RunesGetBalanceSuccessResponse;
2726
+ [runesMethods.runes_getOrder]: RunesGetOrderSuccessResponse;
2727
+ [runesMethods.runes_mint]: RunesMintSuccessResponse;
2728
+ [runesMethods.runes_rbfOrder]: RunesRbfOrderSuccessResponse;
2729
+ [runesMethods.runes_transfer]: RunesTransferSuccessResponse;
2730
+ [ordinalsMethods.ord_getInscriptions]: OrdinalsGetInscriptionsSuccessResponse;
2731
+ [ordinalsMethods.ord_sendInscriptions]: OrdinalsSendInscriptionsSuccessResponse;
2732
+ [walletMethods.wallet_addNetwork]: WalletAddNetworkSuccessResponse;
2733
+ [walletMethods.wallet_addNetworkV2]: WalletAddNetworkV2SuccessResponse;
2734
+ [walletMethods.wallet_changeNetworkById]: WalletChangeNetworkByIdSuccessResponse;
2735
+ [walletMethods.wallet_changeNetwork]: WalletChangeNetworkSuccessResponse;
2736
+ [walletMethods.wallet_connect]: WalletConnectSuccessResponse;
2737
+ [walletMethods.wallet_connectV2]: WalletConnectV2SuccessResponse;
2738
+ [walletMethods.wallet_disconnect]: WalletDisconnectSuccessResponse;
2739
+ [walletMethods.wallet_getAccount]: WalletGetAccountSuccessResponse;
2740
+ [walletMethods.wallet_getAccountV2]: WalletGetAccountV2SuccessResponse;
2741
+ [walletMethods.wallet_getCurrentPermissions]: WalletGetCurrentPermissionsSuccessResponse;
2742
+ [walletMethods.wallet_getNetwork]: WalletGetNetworkSuccessResponse;
2743
+ [walletMethods.wallet_getNetworks]: WalletGetNetworksSuccessResponse;
2744
+ [walletMethods.wallet_getWalletType]: WalletGetWalletTypeSuccessResponse;
2745
+ [walletMethods.wallet_openBridge]: WalletOpenBridgeSuccessResponse;
2746
+ [walletMethods.wallet_openBuy]: WalletOpenBuySuccessResponse;
2747
+ [walletMethods.wallet_openReceive]: WalletOpenReceiveSuccessResponse;
2748
+ [walletMethods.wallet_renouncePermissions]: WalletRenouncePermissionsSuccessResponse;
2749
+ [walletMethods.wallet_requestPermissions]: WalletRequestPermissionsSuccessResponse;
2750
+ }>;
2751
+ type RpcSuccessResponseResult<M extends Method> = RpcSuccessResponses[M]['result'];
2752
+ //#endregion
2753
+ //#region src/request/rpc/methodSchemas/bitcoin/signMessage/request.d.ts
2754
+ declare enum MessageSigningProtocols {
2755
+ ECDSA = "ECDSA",
2756
+ BIP322 = "BIP322",
2757
+ }
2758
+ declare const bitcoinSignMessageRequestSchema: v.ObjectSchema<{
2759
+ readonly id: v.StringSchema<undefined>;
2760
+ readonly method: v.LiteralSchema<"signMessage", undefined>;
2761
+ readonly params: v.ObjectSchema<{
2762
+ /**
2763
+ * The address used for signing.
2764
+ **/
2765
+ readonly address: v.StringSchema<undefined>;
2766
+ /**
2767
+ * The message to sign.
2768
+ **/
2769
+ readonly message: v.StringSchema<undefined>;
2770
+ /**
2771
+ * The protocol to use for signing the message.
2772
+ *
2773
+ * If not specified, defaults to ECDSA if signing with a P2WPKH or P2SH address,
2774
+ * and to BIP322 if signing with a taproot address.
2775
+ */
2776
+ readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols, undefined>, undefined>;
2777
+ }, undefined>;
2778
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2779
+ }, undefined>;
2780
+ type BitcoinSignMessageRequest = v.InferOutput<typeof bitcoinSignMessageRequestSchema>;
2781
+ //#endregion
2782
+ //#region src/request/rpc/methodSchemas/bitcoin/signMessageV2/request.d.ts
2783
+ declare enum MessageSigningProtocols$3 {
2784
+ ECDSA = "ECDSA",
2785
+ BIP322 = "BIP322",
2786
+ }
2787
+ declare const bitcoinSignMessageV2RequestSchema: v.ObjectSchema<{
2788
+ readonly id: v.StringSchema<undefined>;
2789
+ readonly method: v.LiteralSchema<"bitcoin_signMessageV2", undefined>;
2790
+ readonly params: v.ObjectSchema<{
2791
+ /**
2792
+ * The address used for signing.
2793
+ **/
2794
+ readonly address: v.StringSchema<undefined>;
2795
+ /**
2796
+ * The message to sign.
2797
+ **/
2798
+ readonly message: v.StringSchema<undefined>;
2799
+ /**
2800
+ * The protocol to use for signing the message.
2801
+ *
2802
+ * If not specified, defaults to ECDSA if signing with a P2WPKH or P2SH address,
2803
+ * and to BIP322 if signing with a taproot address.
2804
+ */
2805
+ readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols$3, undefined>, undefined>;
2806
+ }, undefined>;
2807
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2808
+ }, undefined>;
2809
+ type BitcoinSignMessageV2Request = v.InferOutput<typeof bitcoinSignMessageV2RequestSchema>;
2810
+ //#endregion
2811
+ //#region src/request/rpc/methodSchemas/bitcoin/signMultipleMessages/request.d.ts
2812
+ declare enum MessageSigningProtocols$2 {
2813
+ ECDSA = "ECDSA",
2814
+ BIP322 = "BIP322",
2815
+ }
2816
+ declare const bitcoinSignMultipleMessagesRequestSchema: v.ObjectSchema<{
2817
+ readonly id: v.StringSchema<undefined>;
2818
+ readonly method: v.LiteralSchema<"signMultipleMessages", undefined>;
2819
+ readonly params: v.ArraySchema<v.ObjectSchema<{
2820
+ /**
2821
+ * The address used for signing.
2822
+ **/
2823
+ readonly address: v.StringSchema<undefined>;
2824
+ /**
2825
+ * The message to sign.
2826
+ **/
2827
+ readonly message: v.StringSchema<undefined>;
2828
+ /**
2829
+ * The protocol to use to sign the message.
2830
+ *
2831
+ * If not specified, defaults to ECDSA if signing with a P2WPKH or P2SH address,
2832
+ * and to BIP322 if signing with a taproot address.
2833
+ */
2834
+ readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols$2, undefined>, undefined>;
2835
+ }, undefined>, undefined>;
2836
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2837
+ }, undefined>;
2838
+ type BitcoinSignMultipleMessagesRequest = v.InferOutput<typeof bitcoinSignMultipleMessagesRequestSchema>;
2839
+ //#endregion
2840
+ //#region src/request/rpc/methodSchemas/bitcoin/signMultipleMessagesV2/request.d.ts
2841
+ declare enum MessageSigningProtocols$1 {
2842
+ ECDSA = "ECDSA",
2843
+ BIP322 = "BIP322",
2844
+ }
2845
+ declare const bitcoinSignMultipleMessagesV2RequestSchema: v.ObjectSchema<{
2846
+ readonly id: v.StringSchema<undefined>;
2847
+ readonly method: v.LiteralSchema<"bitcoin_signMultipleMessagesV2", undefined>;
2848
+ readonly params: v.ArraySchema<v.ObjectSchema<{
2849
+ /**
2850
+ * The address used for signing.
2851
+ **/
2852
+ readonly address: v.StringSchema<undefined>;
2853
+ /**
2854
+ * The message to sign.
2855
+ **/
2856
+ readonly message: v.StringSchema<undefined>;
2857
+ /**
2858
+ * The protocol to use to sign the message.
2859
+ *
2860
+ * If not specified, defaults to ECDSA if signing with a P2WPKH or P2SH address,
2861
+ * and to BIP322 if signing with a taproot address.
2862
+ */
2863
+ readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols$1, undefined>, undefined>;
2864
+ }, undefined>, undefined>;
2865
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2866
+ }, undefined>;
2867
+ type BitcoinSignMultipleMessagesV2Request = v.InferOutput<typeof bitcoinSignMultipleMessagesV2RequestSchema>;
2868
+ //#endregion
2869
+ //#region src/request/rpc/methodSchemas/bitcoin/getAccounts/request.d.ts
2870
+ declare const bitcoinGetAccountsRequestSchema: v.ObjectSchema<{
2871
+ readonly id: v.StringSchema<undefined>;
2872
+ readonly method: v.LiteralSchema<"getAccounts", undefined>;
2873
+ readonly params: v.ObjectSchema<{
2874
+ /**
2875
+ * The purposes for which to generate addresses. See
2876
+ * {@linkcode AddressPurpose} for available purposes.
2877
+ */
2878
+ readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
2879
+ /**
2880
+ * A message to be displayed to the user in the request prompt.
2881
+ */
2882
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2883
+ }, undefined>;
2884
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2885
+ }, undefined>;
2886
+ type BitcoinGetAccountsRequest = v.InferOutput<typeof bitcoinGetAccountsRequestSchema>;
2887
+ //#endregion
2888
+ //#region src/request/rpc/methodSchemas/bitcoin/getAccountsV2/request.d.ts
2889
+ declare const bitcoinGetAccountsV2RequestSchema: v.ObjectSchema<{
2890
+ readonly id: v.StringSchema<undefined>;
2891
+ readonly method: v.LiteralSchema<"bitcoin_getAccountsV2", undefined>;
2892
+ readonly params: v.ObjectSchema<{
2893
+ /**
2894
+ * The purposes for which to generate addresses. See
2895
+ * {@linkcode AddressPurpose} for available purposes.
2896
+ */
2897
+ readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
2898
+ /**
2899
+ * A message to be displayed to the user in the request prompt.
2900
+ */
2901
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2902
+ }, undefined>;
2903
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2904
+ }, undefined>;
2905
+ type BitcoinGetAccountsV2Request = v.InferOutput<typeof bitcoinGetAccountsV2RequestSchema>;
2906
+ //#endregion
2907
+ //#region src/request/rpc/methodSchemas/bitcoin/getAddresses/request.d.ts
2908
+ declare const bitcoinGetAddressesRequestSchema: v.ObjectSchema<{
2909
+ readonly id: v.StringSchema<undefined>;
2910
+ readonly method: v.LiteralSchema<"getAddresses", undefined>;
2911
+ readonly params: v.ObjectSchema<{
2912
+ /**
2913
+ * The purposes for which to generate addresses. See
2914
+ * {@linkcode AddressPurpose} for available purposes.
2915
+ */
2916
+ readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
2917
+ /**
2918
+ * A message to be displayed to the user in the request prompt.
2919
+ */
2920
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2921
+ }, undefined>;
2922
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2923
+ }, undefined>;
2924
+ type BitcoinGetAddressesRequest = v.InferOutput<typeof bitcoinGetAddressesRequestSchema>;
2925
+ //#endregion
2926
+ //#region src/request/rpc/methodSchemas/bitcoin/getAddressesV2/request.d.ts
2927
+ declare const bitcoinGetAddressesV2RequestSchema: v.ObjectSchema<{
2928
+ readonly id: v.StringSchema<undefined>;
2929
+ readonly method: v.LiteralSchema<"bitcoin_getAddressesV2", undefined>;
2930
+ readonly params: v.ObjectSchema<{
2931
+ /**
2932
+ * The purposes for which to generate addresses. See
2933
+ * {@linkcode AddressPurpose} for available purposes.
2934
+ */
2935
+ readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
2936
+ /**
2937
+ * A message to be displayed to the user in the request prompt.
2938
+ */
2939
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2940
+ }, undefined>;
2941
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2942
+ }, undefined>;
2943
+ type BitcoinGetAddressesV2Request = v.InferOutput<typeof bitcoinGetAddressesV2RequestSchema>;
2944
+ //#endregion
2945
+ //#region src/request/rpc/methodSchemas/bitcoin/getBalance/request.d.ts
2946
+ declare const bitcoinGetBalanceRequestSchema: v.ObjectSchema<{
2947
+ readonly id: v.StringSchema<undefined>;
2948
+ readonly method: v.LiteralSchema<"getBalance", undefined>;
2949
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2950
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2951
+ }, undefined>;
2952
+ type BitcoinGetBalanceRequest = v.InferOutput<typeof bitcoinGetBalanceRequestSchema>;
2953
+ //#endregion
2954
+ //#region src/request/rpc/methodSchemas/bitcoin/getBalanceV2/request.d.ts
2955
+ declare const bitcoinGetBalanceV2RequestSchema: v.ObjectSchema<{
2956
+ readonly id: v.StringSchema<undefined>;
2957
+ readonly method: v.LiteralSchema<"bitcoin_getBalanceV2", undefined>;
2958
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2959
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2960
+ }, undefined>;
2961
+ type BitcoinGetBalanceV2Request = v.InferOutput<typeof bitcoinGetBalanceV2RequestSchema>;
2962
+ //#endregion
2963
+ //#region src/request/rpc/methodSchemas/bitcoin/getInfo/request.d.ts
2964
+ declare const bitcoinGetInfoRequestSchema: v.ObjectSchema<{
2965
+ readonly id: v.StringSchema<undefined>;
2966
+ readonly method: v.LiteralSchema<"getInfo", undefined>;
2967
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2968
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2969
+ }, undefined>;
2970
+ type BitcoinGetInfoRequest = v.InferOutput<typeof bitcoinGetInfoRequestSchema>;
2971
+ //#endregion
2972
+ //#region src/request/rpc/methodSchemas/bitcoin/getInfoV2/request.d.ts
2973
+ declare const bitcoinGetInfoV2RequestSchema: v.ObjectSchema<{
2974
+ readonly id: v.StringSchema<undefined>;
2975
+ readonly method: v.LiteralSchema<"bitcoin_getInfoV2", undefined>;
2976
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
2977
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2978
+ }, undefined>;
2979
+ type BitcoinGetInfoV2Request = v.InferOutput<typeof bitcoinGetInfoV2RequestSchema>;
2980
+ //#endregion
2981
+ //#region src/request/rpc/methodSchemas/bitcoin/sendTransfer/request.d.ts
2982
+ declare const bitcoinSendTransferRequestSchema: v.ObjectSchema<{
2983
+ readonly id: v.StringSchema<undefined>;
2984
+ readonly method: v.LiteralSchema<"sendTransfer", undefined>;
2985
+ readonly params: v.ObjectSchema<{
2986
+ /**
2987
+ * Array of recipients to send to.
2988
+ * The amount to send to each recipient is in satoshis.
2989
+ */
2990
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
2991
+ readonly address: v.StringSchema<undefined>;
2992
+ readonly amount: v.NumberSchema<undefined>;
2993
+ }, undefined>, undefined>;
2994
+ }, undefined>;
2995
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
2996
+ }, undefined>;
2997
+ type BitcoinSendTransferRequest = v.InferOutput<typeof bitcoinSendTransferRequestSchema>;
2998
+ //#endregion
2999
+ //#region src/request/rpc/methodSchemas/bitcoin/sendTransferV2/request.d.ts
3000
+ declare const bitcoinSendTransferV2RequestSchema: v.ObjectSchema<{
3001
+ readonly id: v.StringSchema<undefined>;
3002
+ readonly method: v.LiteralSchema<"bitcoin_sendTransferV2", undefined>;
3003
+ readonly params: v.ObjectSchema<{
3004
+ /**
3005
+ * Array of recipients to send to.
3006
+ * The amount to send to each recipient is in satoshis.
3007
+ */
3008
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
3009
+ readonly address: v.StringSchema<undefined>;
3010
+ readonly amount: v.NumberSchema<undefined>;
3011
+ }, undefined>, undefined>;
3012
+ }, undefined>;
3013
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3014
+ }, undefined>;
3015
+ type BitcoinSendTransferV2Request = v.InferOutput<typeof bitcoinSendTransferV2RequestSchema>;
3016
+ //#endregion
3017
+ //#region src/request/rpc/methodSchemas/bitcoin/signPsbt/request.d.ts
3018
+ declare const bitcoinSignPsbtRequestSchema: v.ObjectSchema<{
3019
+ readonly id: v.StringSchema<undefined>;
3020
+ readonly method: v.LiteralSchema<"signPsbt", undefined>;
3021
+ readonly params: v.ObjectSchema<{
3022
+ /**
3023
+ * The base64 encoded PSBT to sign.
3024
+ */
3025
+ readonly psbt: v.StringSchema<undefined>;
3026
+ /**
3027
+ * The inputs to sign.
3028
+ * The key is the address and the value is an array of indexes of the inputs to sign.
3029
+ */
3030
+ readonly signInputs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>, undefined>;
3031
+ /**
3032
+ * Whether to broadcast the transaction after signing.
3033
+ **/
3034
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3035
+ }, undefined>;
3036
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3037
+ }, undefined>;
3038
+ type BitcoinSignPsbtRequest = v.InferOutput<typeof bitcoinSignPsbtRequestSchema>;
3039
+ //#endregion
3040
+ //#region src/request/rpc/methodSchemas/bitcoin/signPsbtV2/request.d.ts
3041
+ declare const bitcoinSignPsbtV2RequestSchema: v.ObjectSchema<{
3042
+ readonly id: v.StringSchema<undefined>;
3043
+ readonly method: v.LiteralSchema<"bitcoin_signPsbtV2", undefined>;
3044
+ readonly params: v.ObjectSchema<{
3045
+ /**
3046
+ * The base64 encoded PSBT to sign.
3047
+ */
3048
+ readonly psbt: v.StringSchema<undefined>;
3049
+ /**
3050
+ * The inputs to sign.
3051
+ * The key is the address and the value is an array of indexes of the inputs to sign.
3052
+ */
3053
+ readonly signInputs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>, undefined>;
3054
+ /**
3055
+ * Whether to broadcast the transaction after signing.
3056
+ **/
3057
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3058
+ }, undefined>;
3059
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3060
+ }, undefined>;
3061
+ type BitcoinSignPsbtV2Request = v.InferOutput<typeof bitcoinSignPsbtV2RequestSchema>;
3062
+ //#endregion
3063
+ //#region src/request/rpc/methodSchemas/stacks/callContract/request.d.ts
3064
+ declare const stacksCallContractRequestSchema: v.ObjectSchema<{
3065
+ readonly id: v.StringSchema<undefined>;
3066
+ readonly method: v.LiteralSchema<"stx_callContract", undefined>;
3067
+ readonly params: v.ObjectSchema<{
3068
+ /**
3069
+ * The contract principal.
3070
+ *
3071
+ * E.g. `"SPKE...GD5C.my-contract"`
3072
+ */
3073
+ readonly contract: v.StringSchema<undefined>;
3074
+ /**
3075
+ * The name of the function to call.
3076
+ *
3077
+ * Note: spec changes ongoing,
3078
+ * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
3079
+ */
3080
+ readonly functionName: v.StringSchema<undefined>;
3081
+ /**
3082
+ * @deprecated in favor of `functionArgs` for @stacks/connect compatibility
3083
+ */
3084
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
3085
+ /**
3086
+ * The function's arguments. The arguments are expected to be hex-encoded
3087
+ * strings of Clarity values.
3088
+ *
3089
+ * To convert Clarity values to their hex representation, the `cvToHex`
3090
+ * helper from the `@stacks/transactions` package may be helpful.
3091
+ *
3092
+ * ```js
3093
+ * import { cvToHex } from '@stacks/transactions';
3094
+ *
3095
+ * const functionArgs = [someClarityValue1, someClarityValue2];
3096
+ * const hexArgs = functionArgs.map(cvToHex);
3097
+ * ```
3098
+ */
3099
+ readonly functionArgs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
3100
+ /**
3101
+ * The post conditions to apply to the contract call.
3102
+ */
3103
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
3104
+ /**
3105
+ * The mode to apply to the post conditions.
3106
+ */
3107
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, undefined>;
3108
+ }, undefined>;
3109
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3110
+ }, undefined>;
3111
+ type StacksCallContractRequest = v.InferOutput<typeof stacksCallContractRequestSchema>;
3112
+ //#endregion
3113
+ //#region src/request/rpc/methodSchemas/stacks/deployContract/request.d.ts
3114
+ declare const stacksDeployContractRequestSchema: v.ObjectSchema<{
3115
+ readonly id: v.StringSchema<undefined>;
3116
+ readonly method: v.LiteralSchema<"stx_deployContract", undefined>;
3117
+ readonly params: v.ObjectSchema<{
3118
+ /**
3119
+ * Name of the contract.
3120
+ */
3121
+ readonly name: v.StringSchema<undefined>;
3122
+ /**
3123
+ * The source code of the Clarity contract.
3124
+ */
3125
+ readonly clarityCode: v.StringSchema<undefined>;
3126
+ /**
3127
+ * The version of the Clarity contract.
3128
+ */
3129
+ readonly clarityVersion: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3130
+ /**
3131
+ * The post conditions to apply to the contract call.
3132
+ */
3133
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
3134
+ /**
3135
+ * The mode to apply to the post conditions.
3136
+ */
3137
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, undefined>;
3138
+ }, undefined>;
3139
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3140
+ }, undefined>;
3141
+ type StacksDeployContractRequest = v.InferOutput<typeof stacksDeployContractRequestSchema>;
3142
+ //#endregion
3143
+ //#region src/request/rpc/methodSchemas/stacks/getAccounts/request.d.ts
3144
+ declare const stacksGetAccountsRequestSchema: v.ObjectSchema<{
3145
+ readonly id: v.StringSchema<undefined>;
3146
+ readonly method: v.LiteralSchema<"stx_getAccounts", undefined>;
3147
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
3148
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3149
+ }, undefined>;
3150
+ type StacksGetAccountsRequest = v.InferOutput<typeof stacksGetAccountsRequestSchema>;
3151
+ //#endregion
3152
+ //#region src/request/rpc/methodSchemas/stacks/getAddresses/request.d.ts
3153
+ declare const stacksGetAddressesRequestSchema: v.ObjectSchema<{
3154
+ readonly id: v.StringSchema<undefined>;
3155
+ readonly method: v.LiteralSchema<"stx_getAddresses", undefined>;
3156
+ readonly params: v.NullishSchema<v.ObjectSchema<{
3157
+ /**
3158
+ * A message to be displayed to the user in the request prompt.
3159
+ */
3160
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3161
+ }, undefined>, undefined>;
3162
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3163
+ }, undefined>;
3164
+ type StacksGetAddressesRequest = v.InferOutput<typeof stacksGetAddressesRequestSchema>;
3165
+ //#endregion
3166
+ //#region src/request/rpc/methodSchemas/stacks/getAddressesV2/request.d.ts
3167
+ declare const stacksGetAddressesV2RequestSchema: v.ObjectSchema<{
3168
+ readonly id: v.StringSchema<undefined>;
3169
+ readonly method: v.LiteralSchema<"stacks_getAddressesV2", undefined>;
3170
+ readonly params: v.NullishSchema<v.ObjectSchema<{
3171
+ /**
3172
+ * A message to be displayed to the user in the request prompt.
3173
+ */
3174
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3175
+ }, undefined>, undefined>;
3176
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3177
+ }, undefined>;
3178
+ type StacksGetAddressesV2Request = v.InferOutput<typeof stacksGetAddressesV2RequestSchema>;
3179
+ //#endregion
3180
+ //#region src/request/rpc/methodSchemas/stacks/signMessage/request.d.ts
3181
+ declare const stacksSignMessageRequestSchema: v.ObjectSchema<{
3182
+ readonly id: v.StringSchema<undefined>;
3183
+ readonly method: v.LiteralSchema<"stx_signMessage", undefined>;
3184
+ readonly params: v.ObjectSchema<{
3185
+ /**
3186
+ * The message to sign.
3187
+ */
3188
+ readonly message: v.StringSchema<undefined>;
3189
+ }, undefined>;
3190
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3191
+ }, undefined>;
3192
+ type StacksSignMessageRequest = v.InferOutput<typeof stacksSignMessageRequestSchema>;
3193
+ //#endregion
3194
+ //#region src/request/rpc/methodSchemas/stacks/signStructuredMessage/request.d.ts
3195
+ declare const stacksSignStructuredMessageRequestSchema: v.ObjectSchema<{
3196
+ readonly id: v.StringSchema<undefined>;
3197
+ readonly method: v.LiteralSchema<"stx_signStructuredMessage", undefined>;
3198
+ readonly params: v.ObjectSchema<{
3199
+ /**
3200
+ * The domain to be signed.
3201
+ */
3202
+ readonly domain: v.StringSchema<undefined>;
3203
+ /**
3204
+ * Message payload to be signed.
3205
+ */
3206
+ readonly message: v.StringSchema<undefined>;
3207
+ /**
3208
+ * The public key to sign the message with.
3209
+ */
3210
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3211
+ }, undefined>;
3212
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3213
+ }, undefined>;
3214
+ type StacksSignStructuredMessageRequest = v.InferOutput<typeof stacksSignStructuredMessageRequestSchema>;
3215
+ //#endregion
3216
+ //#region src/request/rpc/methodSchemas/stacks/signTransaction/request.d.ts
3217
+ declare const stacksSignTransactionRequestSchema: v.ObjectSchema<{
3218
+ readonly id: v.StringSchema<undefined>;
3219
+ readonly method: v.LiteralSchema<"stx_signTransaction", undefined>;
3220
+ readonly params: v.ObjectSchema<{
3221
+ /**
3222
+ * The transaction to sign as a hex-encoded string.
3223
+ */
3224
+ readonly transaction: v.StringSchema<undefined>;
3225
+ /**
3226
+ * The public key to sign the transaction with. The wallet may use any key
3227
+ * when not provided.
3228
+ */
3229
+ readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3230
+ /**
3231
+ * Whether to broadcast the transaction after signing. Defaults to `true`.
3232
+ */
3233
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3234
+ }, undefined>;
3235
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3236
+ }, undefined>;
3237
+ type StacksSignTransactionRequest = v.InferOutput<typeof stacksSignTransactionRequestSchema>;
3238
+ //#endregion
3239
+ //#region src/request/rpc/methodSchemas/stacks/signTransactions/request.d.ts
3240
+ declare const stacksSignTransactionsRequestSchema: v.ObjectSchema<{
3241
+ readonly id: v.StringSchema<undefined>;
3242
+ readonly method: v.LiteralSchema<"stx_signTransactions", undefined>;
3243
+ readonly params: v.ObjectSchema<{
3244
+ /**
3245
+ * The transactions to sign as hex-encoded strings.
3246
+ */
3247
+ 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>]>;
3248
+ /**
3249
+ * Whether the signed transactions should be broadcast after signing. Defaults
3250
+ * to `true`.
3251
+ */
3252
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3253
+ }, undefined>;
3254
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3255
+ }, undefined>;
3256
+ type StacksSignTransactionsRequest = v.InferOutput<typeof stacksSignTransactionsRequestSchema>;
3257
+ //#endregion
3258
+ //#region src/request/rpc/methodSchemas/stacks/transferStx/request.d.ts
3259
+ declare const stacksTransferStxRequestSchema: v.ObjectSchema<{
3260
+ readonly id: v.StringSchema<undefined>;
3261
+ readonly method: v.LiteralSchema<"stx_transferStx", undefined>;
3262
+ readonly params: v.ObjectSchema<{
3263
+ /**
3264
+ * Amount of STX tokens to transfer in microstacks as a string. Anything
3265
+ * parseable by `BigInt` is acceptable.
3266
+ *
3267
+ * Example,
3268
+ *
3269
+ * ```js
3270
+ * const amount1 = 1234;
3271
+ * const amount2 = 1234n;
3272
+ * const amount3 = '1234';
3273
+ * ```
3274
+ */
3275
+ readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
3276
+ /**
3277
+ * The recipient's principal.
3278
+ */
3279
+ readonly recipient: v.StringSchema<undefined>;
3280
+ /**
3281
+ * A string representing the memo.
3282
+ */
3283
+ readonly memo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3284
+ /**
3285
+ * Version of parameter format.
3286
+ */
3287
+ readonly version: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3288
+ /**
3289
+ * The mode of the post conditions.
3290
+ */
3291
+ readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3292
+ /**
3293
+ * A hex-encoded string representing the post conditions.
3294
+ *
3295
+ * A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
3296
+ *
3297
+ * ```js
3298
+ * import { serializePostCondition } from '@stacks/transactions';
3299
+ *
3300
+ * const postCondition = somePostCondition;
3301
+ * const hexPostCondition = serializePostCondition(postCondition).toString('hex');
3302
+ * ```
3303
+ */
3304
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
3305
+ /**
3306
+ * The public key to sign the transaction with. The wallet may use any key
3307
+ * when not provided.
3308
+ */
3309
+ readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3310
+ }, undefined>;
3311
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3312
+ }, undefined>;
3313
+ type StacksTransferStxRequest = v.InferOutput<typeof stacksTransferStxRequestSchema>;
3314
+ //#endregion
3315
+ //#region src/request/rpc/methodSchemas/spark/getAddresses/request.d.ts
3316
+ declare const sparkGetAddressesRequestSchema: v.ObjectSchema<{
3317
+ readonly id: v.StringSchema<undefined>;
3318
+ readonly method: v.LiteralSchema<"spark_getAddresses", undefined>;
3319
+ readonly params: v.NullishSchema<v.ObjectSchema<{
3320
+ /**
3321
+ * A message to be displayed to the user in the request prompt.
3322
+ */
3323
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3324
+ }, undefined>, undefined>;
3325
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3326
+ }, undefined>;
3327
+ type SparkGetAddressesRequest = v.InferOutput<typeof sparkGetAddressesRequestSchema>;
3328
+ //#endregion
3329
+ //#region src/request/rpc/methodSchemas/spark/getAddressesV2/request.d.ts
3330
+ declare const sparkGetAddressesV2RequestSchema: v.ObjectSchema<{
3331
+ readonly id: v.StringSchema<undefined>;
3332
+ readonly method: v.LiteralSchema<"spark_getAddressesV2", undefined>;
3333
+ readonly params: v.NullishSchema<v.ObjectSchema<{
3334
+ /**
3335
+ * A message to be displayed to the user in the request prompt.
3336
+ */
3337
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3338
+ }, undefined>, undefined>;
3339
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3340
+ }, undefined>;
3341
+ type SparkGetAddressesV2Request = v.InferOutput<typeof sparkGetAddressesV2RequestSchema>;
3342
+ //#endregion
3343
+ //#region src/request/rpc/methodSchemas/spark/getBalance/request.d.ts
3344
+ declare const sparkGetBalanceRequestSchema: v.ObjectSchema<{
3345
+ readonly id: v.StringSchema<undefined>;
3346
+ readonly method: v.LiteralSchema<"spark_getBalance", undefined>;
3347
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
3348
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3349
+ }, undefined>;
3350
+ type SparkGetBalanceRequest = v.InferOutput<typeof sparkGetBalanceRequestSchema>;
3351
+ //#endregion
3352
+ //#region src/request/rpc/methodSchemas/spark/transfer/request.d.ts
3353
+ declare const sparkTransferRequestSchema: v.ObjectSchema<{
3354
+ readonly id: v.StringSchema<undefined>;
3355
+ readonly method: v.LiteralSchema<"spark_transfer", undefined>;
3356
+ readonly params: v.ObjectSchema<{
3357
+ /**
3358
+ * Amount of SATS to transfer as a string or number.
3359
+ */
3360
+ readonly amountSats: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
3361
+ /**
3362
+ * The recipient's spark address.
3363
+ */
3364
+ readonly receiverSparkAddress: v.StringSchema<undefined>;
3365
+ }, undefined>;
3366
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3367
+ }, undefined>;
3368
+ type SparkTransferRequest = v.InferOutput<typeof sparkTransferRequestSchema>;
3369
+ //#endregion
3370
+ //#region src/request/rpc/methodSchemas/spark/transferToken/request.d.ts
3371
+ declare const sparkTransferTokenRequestSchema: v.ObjectSchema<{
3372
+ readonly id: v.StringSchema<undefined>;
3373
+ readonly method: v.LiteralSchema<"spark_transferToken", undefined>;
3374
+ readonly params: v.ObjectSchema<{
3375
+ /**
3376
+ * Amount of units of the token to transfer as a string or number.
3377
+ */
3378
+ readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
3379
+ /**
3380
+ * The Bech32m token identifier.
3381
+ */
3382
+ readonly tokenIdentifier: v.StringSchema<undefined>;
3383
+ /**
3384
+ * The recipient's spark address.
3385
+ */
3386
+ readonly receiverSparkAddress: v.StringSchema<undefined>;
3387
+ }, undefined>;
3388
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3389
+ }, undefined>;
3390
+ type SparkTransferTokenRequest = v.InferOutput<typeof sparkTransferTokenRequestSchema>;
3391
+ //#endregion
3392
+ //#region src/request/rpc/methodSchemas/spark/signMessage/request.d.ts
3393
+ declare const sparkSignMessageRequestSchema: v.ObjectSchema<{
3394
+ readonly id: v.StringSchema<undefined>;
3395
+ readonly method: v.LiteralSchema<"spark_signMessage", undefined>;
3396
+ readonly params: v.ObjectSchema<{
3397
+ /**
3398
+ * The message to sign. The message should only consist of valid UTF-8 characters.
3399
+ */
3400
+ readonly message: v.StringSchema<undefined>;
3401
+ }, undefined>;
3402
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3403
+ }, undefined>;
3404
+ type SparkSignMessageRequest = v.InferOutput<typeof sparkSignMessageRequestSchema>;
3405
+ //#endregion
3406
+ //#region src/request/rpc/methodSchemas/spark/flashnetGetJwt/request.d.ts
3407
+ declare const sparkFlashnetGetJwtRequestSchema: v.ObjectSchema<{
3408
+ readonly id: v.StringSchema<undefined>;
3409
+ readonly method: v.LiteralSchema<"spark_flashnet_getJwt", undefined>;
3410
+ readonly params: v.NullSchema<undefined>;
3411
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3412
+ }, undefined>;
3413
+ type SparkFlashnetGetJwtRequest = v.InferOutput<typeof sparkFlashnetGetJwtRequestSchema>;
3414
+ //#endregion
3415
+ //#region src/request/rpc/methodSchemas/spark/flashnetSignIntent/request.d.ts
3416
+ declare const sparkFlashnetSignIntentRequestSchema: v.ObjectSchema<{
3417
+ readonly id: v.StringSchema<undefined>;
3418
+ readonly method: v.LiteralSchema<"spark_flashnet_signIntent", undefined>;
3419
+ readonly params: v.UnionSchema<[v.ObjectSchema<{
3420
+ readonly type: v.LiteralSchema<"executeSwap", undefined>;
3421
+ readonly data: v.ObjectSchema<{
3422
+ readonly userPublicKey: v.StringSchema<undefined>;
3423
+ readonly poolId: v.StringSchema<undefined>;
3424
+ readonly transferId: v.StringSchema<undefined>;
3425
+ readonly assetInAddress: v.StringSchema<undefined>;
3426
+ readonly assetOutAddress: v.StringSchema<undefined>;
3427
+ readonly amountIn: v.StringSchema<undefined>;
3428
+ readonly maxSlippageBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
3429
+ readonly minAmountOut: v.StringSchema<undefined>;
3430
+ readonly totalIntegratorFeeRateBps: v.OptionalSchema<v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>, undefined>;
3431
+ readonly nonce: v.StringSchema<undefined>;
3432
+ }, undefined>;
3433
+ }, undefined>, v.ObjectSchema<{
3434
+ readonly type: v.LiteralSchema<"executeRouteSwap", undefined>;
3435
+ readonly data: v.ObjectSchema<{
3436
+ readonly userPublicKey: v.StringSchema<undefined>;
3437
+ readonly initialSparkTransferId: v.StringSchema<undefined>;
3438
+ readonly hops: v.ArraySchema<v.ObjectSchema<{
3439
+ readonly poolId: v.StringSchema<undefined>;
3440
+ readonly inputAssetAddress: v.StringSchema<undefined>;
3441
+ readonly outputAssetAddress: v.StringSchema<undefined>;
3442
+ readonly hopIntegratorFeeRateBps: v.OptionalSchema<v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>, undefined>;
3443
+ }, undefined>, undefined>;
3444
+ readonly inputAmount: v.StringSchema<undefined>;
3445
+ readonly maxRouteSlippageBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
3446
+ readonly minAmountOut: v.StringSchema<undefined>;
3447
+ readonly defaultIntegratorFeeRateBps: v.OptionalSchema<v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>, undefined>;
3448
+ readonly nonce: v.StringSchema<undefined>;
3449
+ }, undefined>;
3450
+ }, undefined>, v.ObjectSchema<{
3451
+ readonly type: v.LiteralSchema<"addLiquidity", undefined>;
3452
+ readonly data: v.ObjectSchema<{
3453
+ readonly userPublicKey: v.StringSchema<undefined>;
3454
+ readonly poolId: v.StringSchema<undefined>;
3455
+ readonly assetAAmount: v.StringSchema<undefined>;
3456
+ readonly assetBAmount: v.StringSchema<undefined>;
3457
+ readonly assetAMinAmountIn: v.StringSchema<undefined>;
3458
+ readonly assetBMinAmountIn: v.StringSchema<undefined>;
3459
+ readonly assetATransferId: v.StringSchema<undefined>;
3460
+ readonly assetBTransferId: v.StringSchema<undefined>;
3461
+ readonly nonce: v.StringSchema<undefined>;
3462
+ }, undefined>;
3463
+ }, undefined>, v.ObjectSchema<{
3464
+ readonly type: v.LiteralSchema<"clawback", undefined>;
3465
+ readonly data: v.ObjectSchema<{
3466
+ readonly senderPublicKey: v.StringSchema<undefined>;
3467
+ readonly sparkTransferId: v.StringSchema<undefined>;
3468
+ readonly lpIdentityPublicKey: v.StringSchema<undefined>;
3469
+ readonly nonce: v.StringSchema<undefined>;
3470
+ }, undefined>;
3471
+ }, undefined>, v.ObjectSchema<{
3472
+ readonly type: v.LiteralSchema<"confirmInitialDeposit", undefined>;
3473
+ readonly data: v.ObjectSchema<{
3474
+ readonly poolId: v.StringSchema<undefined>;
3475
+ readonly assetASparkTransferId: v.StringSchema<undefined>;
3476
+ readonly poolOwnerPublicKey: v.StringSchema<undefined>;
3477
+ readonly nonce: v.StringSchema<undefined>;
3478
+ }, undefined>;
3479
+ }, undefined>, v.ObjectSchema<{
3480
+ readonly type: v.LiteralSchema<"createConstantProductPool", undefined>;
3481
+ readonly data: v.ObjectSchema<{
3482
+ readonly poolOwnerPublicKey: v.StringSchema<undefined>;
3483
+ readonly assetAAddress: v.StringSchema<undefined>;
3484
+ readonly assetBAddress: v.StringSchema<undefined>;
3485
+ readonly lpFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
3486
+ readonly totalHostFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
3487
+ readonly nonce: v.StringSchema<undefined>;
3488
+ }, undefined>;
3489
+ }, undefined>, v.ObjectSchema<{
3490
+ readonly type: v.LiteralSchema<"createSingleSidedPool", undefined>;
3491
+ readonly data: v.ObjectSchema<{
3492
+ readonly assetAAddress: v.StringSchema<undefined>;
3493
+ readonly assetBAddress: v.StringSchema<undefined>;
3494
+ readonly assetAInitialReserve: v.StringSchema<undefined>;
3495
+ readonly virtualReserveA: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
3496
+ readonly virtualReserveB: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
3497
+ readonly threshold: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
3498
+ readonly lpFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
3499
+ readonly totalHostFeeRateBps: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
3500
+ readonly poolOwnerPublicKey: v.StringSchema<undefined>;
3501
+ readonly nonce: v.StringSchema<undefined>;
3502
+ }, undefined>;
3503
+ }, undefined>, v.ObjectSchema<{
3504
+ readonly type: v.LiteralSchema<"removeLiquidity", undefined>;
3505
+ readonly data: v.ObjectSchema<{
3506
+ readonly userPublicKey: v.StringSchema<undefined>;
3507
+ readonly poolId: v.StringSchema<undefined>;
3508
+ readonly lpTokensToRemove: v.StringSchema<undefined>;
3509
+ readonly nonce: v.StringSchema<undefined>;
3510
+ }, undefined>;
3511
+ }, undefined>], undefined>;
3512
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3513
+ }, undefined>;
3514
+ type SparkFlashnetSignIntentRequest = v.InferOutput<typeof sparkFlashnetSignIntentRequestSchema>;
3515
+ //#endregion
3516
+ //#region src/request/rpc/methodSchemas/spark/flashnetSignStructuredMessage/request.d.ts
3517
+ declare const sparkFlashnetSignStructuredMessageRequestSchema: v.ObjectSchema<{
3518
+ readonly id: v.StringSchema<undefined>;
3519
+ readonly method: v.LiteralSchema<"spark_flashnet_signStructuredMessage", undefined>;
3520
+ readonly params: v.ObjectSchema<{
3521
+ readonly message: v.StringSchema<undefined>;
3522
+ }, undefined>;
3523
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3524
+ }, undefined>;
3525
+ type SparkFlashnetSignStructuredMessageRequest = v.InferOutput<typeof sparkFlashnetSignStructuredMessageRequestSchema>;
3526
+ //#endregion
3527
+ //#region src/request/rpc/methodSchemas/spark/flashnetExecuteSwap/request.d.ts
3528
+ declare const sparkFlashnetExecuteSwapRequestSchema: v.ObjectSchema<{
3529
+ readonly id: v.StringSchema<undefined>;
3530
+ readonly method: v.LiteralSchema<"spark_flashnet_executeSwap", undefined>;
3531
+ readonly params: v.ObjectSchema<{
3532
+ readonly poolId: v.StringSchema<undefined>;
3533
+ readonly assetInAddress: v.StringSchema<undefined>;
3534
+ readonly assetOutAddress: v.StringSchema<undefined>;
3535
+ readonly amountIn: v.StringSchema<undefined>;
3536
+ readonly maxSlippageBps: v.NumberSchema<undefined>;
3537
+ readonly minAmountOut: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3538
+ readonly integratorFeeRateBps: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3539
+ readonly integratorPublicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3540
+ }, undefined>;
3541
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3542
+ }, undefined>;
3543
+ type SparkFlashnetExecuteSwapRequest = v.InferOutput<typeof sparkFlashnetExecuteSwapRequestSchema>;
3544
+ //#endregion
3545
+ //#region src/request/rpc/methodSchemas/spark/flashnetExecuteRouteSwap/request.d.ts
3546
+ declare const sparkFlashnetExecuteRouteSwapRequestSchema: v.ObjectSchema<{
3547
+ readonly id: v.StringSchema<undefined>;
3548
+ readonly method: v.LiteralSchema<"spark_flashnet_executeRouteSwap", undefined>;
3549
+ readonly params: v.ObjectSchema<{
3550
+ readonly hops: v.ArraySchema<v.ObjectSchema<{
3551
+ readonly poolId: v.StringSchema<undefined>;
3552
+ readonly assetInAddress: v.StringSchema<undefined>;
3553
+ readonly assetOutAddress: v.StringSchema<undefined>;
3554
+ readonly hopIntegratorFeeRateBps: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3555
+ }, undefined>, undefined>;
3556
+ readonly initialAssetAddress: v.StringSchema<undefined>;
3557
+ readonly inputAmount: v.StringSchema<undefined>;
3558
+ readonly maxRouteSlippageBps: v.StringSchema<undefined>;
3559
+ readonly minAmountOut: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3560
+ readonly integratorFeeRateBps: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3561
+ readonly integratorPublicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3562
+ }, undefined>;
3563
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3564
+ }, undefined>;
3565
+ type SparkFlashnetExecuteRouteSwapRequest = v.InferOutput<typeof sparkFlashnetExecuteRouteSwapRequestSchema>;
3566
+ //#endregion
3567
+ //#region src/request/rpc/methodSchemas/spark/flashnetClawbackFunds/request.d.ts
3568
+ declare const sparkFlashnetClawbackFundsRequestSchema: v.ObjectSchema<{
3569
+ readonly id: v.StringSchema<undefined>;
3570
+ readonly method: v.LiteralSchema<"spark_flashnet_clawbackFunds", undefined>;
3571
+ readonly params: v.ObjectSchema<{
3572
+ readonly sparkTransferId: v.StringSchema<undefined>;
3573
+ readonly lpIdentityPublicKey: v.StringSchema<undefined>;
3574
+ }, undefined>;
3575
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3576
+ }, undefined>;
3577
+ type SparkFlashnetClawbackFundsRequest = v.InferOutput<typeof sparkFlashnetClawbackFundsRequestSchema>;
3578
+ //#endregion
3579
+ //#region src/request/rpc/methodSchemas/spark/getClawbackEligibleTransfers/request.d.ts
3580
+ declare const sparkGetClawbackEligibleTransfersRequestSchema: v.ObjectSchema<{
3581
+ readonly id: v.StringSchema<undefined>;
3582
+ readonly method: v.LiteralSchema<"spark_getClawbackEligibleTransfers", undefined>;
3583
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
3584
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3585
+ }, undefined>;
3586
+ type SparkGetClawbackEligibleTransfersRequest = v.InferOutput<typeof sparkGetClawbackEligibleTransfersRequestSchema>;
3587
+ //#endregion
3588
+ //#region src/request/rpc/methodSchemas/runes/estimateEtch/request.d.ts
3589
+ declare const runesEstimateEtchRequestSchema: v.ObjectSchema<{
3590
+ readonly id: v.StringSchema<undefined>;
3591
+ readonly method: v.LiteralSchema<"runes_estimateEtch", undefined>;
3592
+ readonly params: v.ObjectSchema<{
3593
+ readonly runeName: v.StringSchema<undefined>;
3594
+ readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3595
+ readonly symbol: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3596
+ readonly premine: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3597
+ readonly isMintable: v.BooleanSchema<undefined>;
3598
+ readonly terms: v.OptionalSchema<v.ObjectSchema<{
3599
+ readonly amount: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3600
+ readonly cap: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3601
+ readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3602
+ readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3603
+ readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3604
+ readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3605
+ }, undefined>, undefined>;
3606
+ readonly inscriptionDetails: v.OptionalSchema<v.ObjectSchema<{
3607
+ readonly contentType: v.StringSchema<undefined>;
3608
+ readonly contentBase64: v.StringSchema<undefined>;
3609
+ }, undefined>, undefined>;
3610
+ readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3611
+ readonly destinationAddress: v.StringSchema<undefined>;
3612
+ readonly feeRate: v.NumberSchema<undefined>;
3613
+ readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3614
+ readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3615
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
3616
+ }, undefined>;
3617
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3618
+ }, undefined>;
3619
+ type RunesEstimateEtchRequest = v.InferOutput<typeof runesEstimateEtchRequestSchema>;
3620
+ //#endregion
3621
+ //#region src/request/rpc/methodSchemas/runes/estimateMint/request.d.ts
3622
+ declare const runesEstimateMintRequestSchema: v.ObjectSchema<{
3623
+ readonly id: v.StringSchema<undefined>;
3624
+ readonly method: v.LiteralSchema<"runes_estimateMint", undefined>;
3625
+ readonly params: v.ObjectSchema<{
3626
+ readonly runeName: v.StringSchema<undefined>;
3627
+ readonly repeats: v.NumberSchema<undefined>;
3628
+ readonly destinationAddress: v.StringSchema<undefined>;
3629
+ readonly feeRate: v.NumberSchema<undefined>;
3630
+ readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3631
+ readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3632
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
3633
+ }, undefined>;
3634
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3635
+ }, undefined>;
3636
+ type RunesEstimateMintRequest = v.InferOutput<typeof runesEstimateMintRequestSchema>;
3637
+ //#endregion
3638
+ //#region src/request/rpc/methodSchemas/runes/estimateRbfOrder/request.d.ts
3639
+ declare const runesEstimateRbfOrderRequestSchema: v.ObjectSchema<{
3640
+ readonly id: v.StringSchema<undefined>;
3641
+ readonly method: v.LiteralSchema<"runes_estimateRbfOrder", undefined>;
3642
+ readonly params: v.ObjectSchema<{
3643
+ readonly orderId: v.StringSchema<undefined>;
3644
+ readonly newFeeRate: v.NumberSchema<undefined>;
3645
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
3646
+ }, undefined>;
3647
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3648
+ }, undefined>;
3649
+ type RunesEstimateRbfOrderRequest = v.InferOutput<typeof runesEstimateRbfOrderRequestSchema>;
3650
+ //#endregion
3651
+ //#region src/request/rpc/methodSchemas/runes/etch/request.d.ts
3652
+ declare const runesEtchRequestSchema: v.ObjectSchema<{
3653
+ readonly id: v.StringSchema<undefined>;
3654
+ readonly method: v.LiteralSchema<"runes_etch", undefined>;
3655
+ readonly params: v.ObjectSchema<{
3656
+ readonly runeName: v.StringSchema<undefined>;
3657
+ readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3658
+ readonly symbol: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3659
+ readonly premine: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3660
+ readonly isMintable: v.BooleanSchema<undefined>;
3661
+ readonly terms: v.OptionalSchema<v.ObjectSchema<{
3662
+ readonly amount: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3663
+ readonly cap: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3664
+ readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3665
+ readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3666
+ readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3667
+ readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3668
+ }, undefined>, undefined>;
3669
+ readonly inscriptionDetails: v.OptionalSchema<v.ObjectSchema<{
3670
+ readonly contentType: v.StringSchema<undefined>;
3671
+ readonly contentBase64: v.StringSchema<undefined>;
3672
+ }, undefined>, undefined>;
3673
+ readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3674
+ readonly destinationAddress: v.StringSchema<undefined>;
3675
+ readonly refundAddress: v.StringSchema<undefined>;
3676
+ readonly feeRate: v.NumberSchema<undefined>;
3677
+ readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3678
+ readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3679
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
3680
+ }, undefined>;
3681
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3682
+ }, undefined>;
3683
+ type RunesEtchRequest = v.InferOutput<typeof runesEtchRequestSchema>;
3684
+ //#endregion
3685
+ //#region src/request/rpc/methodSchemas/runes/getBalance/request.d.ts
3686
+ declare const runesGetBalanceRequestSchema: v.ObjectSchema<{
3687
+ readonly id: v.StringSchema<undefined>;
3688
+ readonly method: v.LiteralSchema<"runes_getBalance", undefined>;
3689
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
3690
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3691
+ }, undefined>;
3692
+ type RunesGetBalanceRequest = v.InferOutput<typeof runesGetBalanceRequestSchema>;
3693
+ //#endregion
3694
+ //#region src/request/rpc/methodSchemas/runes/getOrder/request.d.ts
3695
+ declare const runesGetOrderRequestSchema: v.ObjectSchema<{
3696
+ readonly id: v.StringSchema<undefined>;
3697
+ readonly method: v.LiteralSchema<"runes_getOrder", undefined>;
3698
+ readonly params: v.ObjectSchema<{
3699
+ readonly id: v.StringSchema<undefined>;
3700
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
3701
+ }, undefined>;
3702
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3703
+ }, undefined>;
3704
+ type RunesGetOrderRequest = v.InferOutput<typeof runesGetOrderRequestSchema>;
3705
+ //#endregion
3706
+ //#region src/request/rpc/methodSchemas/runes/mint/request.d.ts
3707
+ declare const runesMintRequestSchema: v.ObjectSchema<{
3708
+ readonly id: v.StringSchema<undefined>;
3709
+ readonly method: v.LiteralSchema<"runes_mint", undefined>;
3710
+ readonly params: v.ObjectSchema<{
3711
+ readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3712
+ readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3713
+ readonly destinationAddress: v.StringSchema<undefined>;
3714
+ readonly feeRate: v.NumberSchema<undefined>;
3715
+ readonly refundAddress: v.StringSchema<undefined>;
3716
+ readonly repeats: v.NumberSchema<undefined>;
3717
+ readonly runeName: v.StringSchema<undefined>;
3718
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
3719
+ }, undefined>;
3720
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3721
+ }, undefined>;
3722
+ type RunesMintRequest = v.InferOutput<typeof runesMintRequestSchema>;
3723
+ //#endregion
3724
+ //#region src/request/rpc/methodSchemas/runes/rbfOrder/request.d.ts
3725
+ declare const runesRbfOrderRequestSchema: v.ObjectSchema<{
3726
+ readonly id: v.StringSchema<undefined>;
3727
+ readonly method: v.LiteralSchema<"runes_rbfOrder", undefined>;
3728
+ readonly params: v.ObjectSchema<{
3729
+ readonly orderId: v.StringSchema<undefined>;
3730
+ readonly newFeeRate: v.NumberSchema<undefined>;
3731
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
3732
+ }, undefined>;
3733
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3734
+ }, undefined>;
3735
+ type RunesRbfOrderRequest = v.InferOutput<typeof runesRbfOrderRequestSchema>;
3736
+ //#endregion
3737
+ //#region src/request/rpc/methodSchemas/runes/transfer/request.d.ts
3738
+ declare const runesTransferRequestSchema: v.ObjectSchema<{
3739
+ readonly id: v.StringSchema<undefined>;
3740
+ readonly method: v.LiteralSchema<"runes_transfer", undefined>;
3741
+ readonly params: v.ObjectSchema<{
3742
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
3743
+ readonly runeName: v.StringSchema<undefined>;
3744
+ readonly amount: v.StringSchema<undefined>;
3745
+ readonly address: v.StringSchema<undefined>;
3746
+ }, undefined>, undefined>;
3747
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, undefined>;
3748
+ }, undefined>;
3749
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3750
+ }, undefined>;
3751
+ type RunesTransferRequest = v.InferOutput<typeof runesTransferRequestSchema>;
3752
+ //#endregion
3753
+ //#region src/request/rpc/methodSchemas/ordinals/getInscriptions/request.d.ts
3754
+ declare const ordinalsGetInscriptionsRequestSchema: v.ObjectSchema<{
3755
+ readonly id: v.StringSchema<undefined>;
3756
+ readonly method: v.LiteralSchema<"ord_getInscriptions", undefined>;
3757
+ readonly params: v.ObjectSchema<{
3758
+ readonly offset: v.NumberSchema<undefined>;
3759
+ readonly limit: v.NumberSchema<undefined>;
3760
+ }, undefined>;
3761
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3762
+ }, undefined>;
3763
+ type OrdinalsGetInscriptionsRequest = v.InferOutput<typeof ordinalsGetInscriptionsRequestSchema>;
3764
+ //#endregion
3765
+ //#region src/request/rpc/methodSchemas/ordinals/sendInscriptions/request.d.ts
3766
+ declare const ordinalsSendInscriptionsRequestSchema: v.ObjectSchema<{
3767
+ readonly id: v.StringSchema<undefined>;
3768
+ readonly method: v.LiteralSchema<"ord_sendInscriptions", undefined>;
3769
+ readonly params: v.ObjectSchema<{
3770
+ readonly transfers: v.ArraySchema<v.ObjectSchema<{
3771
+ readonly address: v.StringSchema<undefined>;
3772
+ readonly inscriptionId: v.StringSchema<undefined>;
3773
+ }, undefined>, undefined>;
3774
+ }, undefined>;
3775
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3776
+ }, undefined>;
3777
+ type OrdinalsSendInscriptionsRequest = v.InferOutput<typeof ordinalsSendInscriptionsRequestSchema>;
3778
+ //#endregion
3779
+ //#region src/request/rpc/methodSchemas/wallet/addNetwork/request.d.ts
3780
+ declare const walletAddNetworkRequestSchema: v.ObjectSchema<{
3781
+ readonly id: v.StringSchema<undefined>;
3782
+ readonly method: v.LiteralSchema<"wallet_addNetwork", undefined>;
3783
+ readonly params: v.VariantSchema<"chain", [v.ObjectSchema<{
3784
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
3785
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
3786
+ readonly name: v.StringSchema<undefined>;
3787
+ readonly rpcUrl: v.StringSchema<undefined>;
3788
+ readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3789
+ readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3790
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3791
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3792
+ }, undefined>, v.ObjectSchema<{
3793
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
3794
+ readonly name: v.StringSchema<undefined>;
3795
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
3796
+ readonly rpcUrl: v.StringSchema<undefined>;
3797
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3798
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3799
+ }, undefined>, v.ObjectSchema<{
3800
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
3801
+ readonly name: v.StringSchema<undefined>;
3802
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Sepolia"], undefined>;
3803
+ readonly rpcUrl: v.StringSchema<undefined>;
3804
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3805
+ readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3806
+ }, undefined>], undefined>;
3807
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3808
+ }, undefined>;
3809
+ type WalletAddNetworkRequest = v.InferOutput<typeof walletAddNetworkRequestSchema>;
3810
+ //#endregion
3811
+ //#region src/request/rpc/methodSchemas/wallet/addNetworkV2/request.d.ts
3812
+ declare const walletAddNetworkV2RequestSchema: v.ObjectSchema<{
3813
+ readonly id: v.StringSchema<undefined>;
3814
+ readonly method: v.LiteralSchema<"wallet_addNetworkV2", undefined>;
3815
+ readonly params: v.ObjectSchema<{
3816
+ readonly network: v.VariantSchema<"chain", [v.ObjectSchema<{
3817
+ readonly chain: v.LiteralSchema<"bitcoin", undefined>;
3818
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
3819
+ readonly name: v.StringSchema<undefined>;
3820
+ readonly rpcUrl: v.StringSchema<undefined>;
3821
+ readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3822
+ readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3823
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3824
+ }, undefined>, v.ObjectSchema<{
3825
+ readonly chain: v.LiteralSchema<"spark", undefined>;
3826
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
3827
+ readonly name: v.StringSchema<undefined>;
3828
+ readonly rpcUrl: v.StringSchema<undefined>;
3829
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3830
+ }, undefined>, v.ObjectSchema<{
3831
+ readonly chain: v.LiteralSchema<"stacks", undefined>;
3832
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet"], undefined>;
3833
+ readonly name: v.StringSchema<undefined>;
3834
+ readonly rpcUrl: v.StringSchema<undefined>;
3835
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3836
+ }, undefined>, v.ObjectSchema<{
3837
+ readonly chain: v.LiteralSchema<"starknet", undefined>;
3838
+ readonly type: v.PicklistSchema<["Mainnet", "Testnet", "Sepolia"], undefined>;
3839
+ readonly name: v.StringSchema<undefined>;
3840
+ readonly rpcUrl: v.StringSchema<undefined>;
3841
+ readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3842
+ }, undefined>], undefined>;
3843
+ readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3844
+ }, undefined>;
3845
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3846
+ }, undefined>;
3847
+ type WalletAddNetworkV2Request = v.InferOutput<typeof walletAddNetworkV2RequestSchema>;
3848
+ //#endregion
3849
+ //#region src/request/rpc/methodSchemas/wallet/changeNetworkById/request.d.ts
3850
+ declare const walletChangeNetworkByIdRequestSchema: v.ObjectSchema<{
3851
+ readonly id: v.StringSchema<undefined>;
3852
+ readonly method: v.LiteralSchema<"wallet_changeNetworkById", undefined>;
3853
+ readonly params: v.ObjectSchema<{
3854
+ readonly id: v.StringSchema<undefined>;
3855
+ }, undefined>;
3856
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3857
+ }, undefined>;
3858
+ type WalletChangeNetworkByIdRequest = v.InferOutput<typeof walletChangeNetworkByIdRequestSchema>;
3859
+ //#endregion
3860
+ //#region src/request/rpc/methodSchemas/wallet/changeNetwork/request.d.ts
3861
+ declare const walletChangeNetworkRequestSchema: v.ObjectSchema<{
3862
+ readonly id: v.StringSchema<undefined>;
3863
+ readonly method: v.LiteralSchema<"wallet_changeNetwork", undefined>;
3864
+ readonly params: v.ObjectSchema<{
3865
+ readonly name: v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>;
3866
+ }, undefined>;
3867
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3868
+ }, undefined>;
3869
+ type WalletChangeNetworkRequest = v.InferOutput<typeof walletChangeNetworkRequestSchema>;
3870
+ //#endregion
3871
+ //#region src/request/rpc/methodSchemas/wallet/connect/request.d.ts
3872
+ declare const walletConnectRequestSchema: v.ObjectSchema<{
3873
+ readonly id: v.StringSchema<undefined>;
3874
+ readonly method: v.LiteralSchema<"wallet_connect", undefined>;
3875
+ readonly params: v.NullishSchema<v.ObjectSchema<{
3876
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
3877
+ readonly type: v.LiteralSchema<"account", undefined>;
3878
+ readonly resourceId: v.StringSchema<undefined>;
3879
+ readonly actions: v.ObjectSchema<{
3880
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3881
+ }, undefined>;
3882
+ }, undefined>, v.ObjectSchema<{
3883
+ readonly type: v.LiteralSchema<"wallet", undefined>;
3884
+ readonly resourceId: v.StringSchema<undefined>;
3885
+ readonly actions: v.ObjectSchema<{
3886
+ readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3887
+ }, undefined>;
3888
+ }, undefined>], undefined>, undefined>, undefined>;
3889
+ readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, undefined>;
3890
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, undefined>;
3891
+ readonly network: v.OptionalSchema<v.PicklistSchema<["Mainnet", "Testnet", "Signet"], undefined>, undefined>;
3892
+ }, undefined>, undefined>;
3893
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3894
+ }, undefined>;
3895
+ type WalletConnectRequest = v.InferOutput<typeof walletConnectRequestSchema>;
3896
+ //#endregion
3897
+ //#region src/request/rpc/methodSchemas/wallet/connectV2/request.d.ts
3898
+ declare const walletConnectV2RequestSchema: v.ObjectSchema<{
3899
+ readonly id: v.StringSchema<undefined>;
3900
+ readonly method: v.LiteralSchema<"wallet_connectV2", undefined>;
3901
+ readonly params: v.NullishSchema<v.ObjectSchema<{
3902
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
3903
+ readonly type: v.LiteralSchema<"account", undefined>;
3904
+ readonly resourceId: v.StringSchema<undefined>;
3905
+ readonly actions: v.ObjectSchema<{
3906
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3907
+ }, undefined>;
3908
+ }, undefined>, v.ObjectSchema<{
3909
+ readonly type: v.LiteralSchema<"wallet", undefined>;
3910
+ readonly resourceId: v.StringSchema<undefined>;
3911
+ readonly actions: v.ObjectSchema<{
3912
+ readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3913
+ }, undefined>;
3914
+ }, undefined>], undefined>, undefined>, undefined>;
3915
+ readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, undefined>;
3916
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, undefined>;
3917
+ readonly networkId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3918
+ }, undefined>, undefined>;
3919
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3920
+ }, undefined>;
3921
+ type WalletConnectV2Request = v.InferOutput<typeof walletConnectV2RequestSchema>;
3922
+ //#endregion
3923
+ //#region src/request/rpc/methodSchemas/wallet/disconnect/request.d.ts
3924
+ declare const walletDisconnectRequestSchema: v.ObjectSchema<{
3925
+ readonly id: v.StringSchema<undefined>;
3926
+ readonly method: v.LiteralSchema<"wallet_disconnect", undefined>;
3927
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
3928
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3929
+ }, undefined>;
3930
+ type WalletDisconnectRequest = v.InferOutput<typeof walletDisconnectRequestSchema>;
3931
+ //#endregion
3932
+ //#region src/request/rpc/methodSchemas/wallet/getAccount/request.d.ts
3933
+ declare const walletGetAccountRequestSchema: v.ObjectSchema<{
3934
+ readonly id: v.StringSchema<undefined>;
3935
+ readonly method: v.LiteralSchema<"wallet_getAccount", undefined>;
3936
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
3937
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3938
+ }, undefined>;
3939
+ type WalletGetAccountRequest = v.InferOutput<typeof walletGetAccountRequestSchema>;
3940
+ //#endregion
3941
+ //#region src/request/rpc/methodSchemas/wallet/getAccountV2/request.d.ts
3942
+ declare const walletGetAccountV2RequestSchema: v.ObjectSchema<{
3943
+ readonly id: v.StringSchema<undefined>;
3944
+ readonly method: v.LiteralSchema<"wallet_getAccountV2", undefined>;
3945
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
3946
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3947
+ }, undefined>;
3948
+ type WalletGetAccountV2Request = v.InferOutput<typeof walletGetAccountV2RequestSchema>;
3949
+ //#endregion
3950
+ //#region src/request/rpc/methodSchemas/wallet/getCurrentPermissions/request.d.ts
3951
+ declare const walletGetCurrentPermissionsRequestSchema: v.ObjectSchema<{
3952
+ readonly id: v.StringSchema<undefined>;
3953
+ readonly method: v.LiteralSchema<"wallet_getCurrentPermissions", undefined>;
3954
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
3955
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3956
+ }, undefined>;
3957
+ type WalletGetCurrentPermissionsRequest = v.InferOutput<typeof walletGetCurrentPermissionsRequestSchema>;
3958
+ //#endregion
3959
+ //#region src/request/rpc/methodSchemas/wallet/getNetwork/request.d.ts
3960
+ declare const walletGetNetworkRequestSchema: v.ObjectSchema<{
3961
+ readonly id: v.StringSchema<undefined>;
3962
+ readonly method: v.LiteralSchema<"wallet_getNetwork", undefined>;
3963
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
3964
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3965
+ }, undefined>;
3966
+ type WalletGetNetworkRequest = v.InferOutput<typeof walletGetNetworkRequestSchema>;
3967
+ //#endregion
3968
+ //#region src/request/rpc/methodSchemas/wallet/getNetworks/request.d.ts
3969
+ declare const walletGetNetworksRequestSchema: v.ObjectSchema<{
3970
+ readonly id: v.StringSchema<undefined>;
3971
+ readonly method: v.LiteralSchema<"wallet_getNetworks", undefined>;
3972
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
3973
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3974
+ }, undefined>;
3975
+ type WalletGetNetworksRequest = v.InferOutput<typeof walletGetNetworksRequestSchema>;
3976
+ //#endregion
3977
+ //#region src/request/rpc/methodSchemas/wallet/getWalletType/request.d.ts
3978
+ declare const walletGetWalletTypeRequestSchema: v.ObjectSchema<{
3979
+ readonly id: v.StringSchema<undefined>;
3980
+ readonly method: v.LiteralSchema<"wallet_getWalletType", undefined>;
3981
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
3982
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3983
+ }, undefined>;
3984
+ type WalletGetWalletTypeRequest = v.InferOutput<typeof walletGetWalletTypeRequestSchema>;
3985
+ //#endregion
3986
+ //#region src/request/rpc/methodSchemas/wallet/openBridge/request.d.ts
3987
+ declare const walletOpenBridgeRequestSchema: v.ObjectSchema<{
3988
+ readonly id: v.StringSchema<undefined>;
3989
+ readonly method: v.LiteralSchema<"wallet_openBridge", undefined>;
3990
+ readonly params: v.ObjectSchema<{
3991
+ readonly fromAsset: v.StringSchema<undefined>;
3992
+ readonly toAsset: v.StringSchema<undefined>;
3993
+ }, undefined>;
3994
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
3995
+ }, undefined>;
3996
+ type WalletOpenBridgeRequest = v.InferOutput<typeof walletOpenBridgeRequestSchema>;
3997
+ //#endregion
3998
+ //#region src/request/rpc/methodSchemas/wallet/openBuy/request.d.ts
3999
+ declare const walletOpenBuyRequestSchema: v.ObjectSchema<{
4000
+ readonly id: v.StringSchema<undefined>;
4001
+ readonly method: v.LiteralSchema<"wallet_openBuy", undefined>;
4002
+ readonly params: v.ObjectSchema<{
4003
+ readonly asset: v.StringSchema<undefined>;
4004
+ }, undefined>;
4005
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
4006
+ }, undefined>;
4007
+ type WalletOpenBuyRequest = v.InferOutput<typeof walletOpenBuyRequestSchema>;
4008
+ //#endregion
4009
+ //#region src/request/rpc/methodSchemas/wallet/openReceive/request.d.ts
4010
+ declare const walletOpenReceiveRequestSchema: v.ObjectSchema<{
4011
+ readonly id: v.StringSchema<undefined>;
4012
+ readonly method: v.LiteralSchema<"wallet_openReceive", undefined>;
4013
+ readonly params: v.ObjectSchema<{
4014
+ readonly address: v.StringSchema<undefined>;
4015
+ }, undefined>;
4016
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
4017
+ }, undefined>;
4018
+ type WalletOpenReceiveRequest = v.InferOutput<typeof walletOpenReceiveRequestSchema>;
4019
+ //#endregion
4020
+ //#region src/request/rpc/methodSchemas/wallet/renouncePermissions/request.d.ts
4021
+ declare const walletRenouncePermissionsRequestSchema: v.ObjectSchema<{
4022
+ readonly id: v.StringSchema<undefined>;
4023
+ readonly method: v.LiteralSchema<"wallet_renouncePermissions", undefined>;
4024
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
4025
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
4026
+ }, undefined>;
4027
+ type WalletRenouncePermissionsRequest = v.InferOutput<typeof walletRenouncePermissionsRequestSchema>;
4028
+ //#endregion
4029
+ //#region src/request/rpc/methodSchemas/wallet/requestPermissions/request.d.ts
4030
+ declare const walletRequestPermissionsRequestSchema: v.ObjectSchema<{
4031
+ readonly id: v.StringSchema<undefined>;
4032
+ readonly method: v.LiteralSchema<"wallet_requestPermissions", undefined>;
4033
+ readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
4034
+ readonly type: v.LiteralSchema<"account", undefined>;
4035
+ readonly resourceId: v.StringSchema<undefined>;
4036
+ readonly actions: v.ObjectSchema<{
4037
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
4038
+ }, undefined>;
4039
+ }, undefined>, v.ObjectSchema<{
4040
+ readonly type: v.LiteralSchema<"wallet", undefined>;
4041
+ readonly resourceId: v.StringSchema<undefined>;
4042
+ readonly actions: v.ObjectSchema<{
4043
+ readonly readNetwork: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
4044
+ }, undefined>;
4045
+ }, undefined>], undefined>, undefined>, undefined>;
4046
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
4047
+ }, undefined>;
4048
+ type WalletRequestPermissionsRequest = v.InferOutput<typeof walletRequestPermissionsRequestSchema>;
4049
+ //#endregion
4050
+ //#region src/request/rpc/requests.d.ts
4051
+ type RpcRequests = ExactObject<Method, {
4052
+ [bitcoinMethods.getAccounts]: BitcoinGetAccountsRequest;
4053
+ [bitcoinMethods.bitcoin_getAccountsV2]: BitcoinGetAccountsV2Request;
4054
+ [bitcoinMethods.getAddresses]: BitcoinGetAddressesRequest;
4055
+ [bitcoinMethods.bitcoin_getAddressesV2]: BitcoinGetAddressesV2Request;
4056
+ [bitcoinMethods.getBalance]: BitcoinGetBalanceRequest;
4057
+ [bitcoinMethods.bitcoin_getBalanceV2]: BitcoinGetBalanceV2Request;
4058
+ [bitcoinMethods.getInfo]: BitcoinGetInfoRequest;
4059
+ [bitcoinMethods.bitcoin_getInfoV2]: BitcoinGetInfoV2Request;
4060
+ [bitcoinMethods.sendTransfer]: BitcoinSendTransferRequest;
4061
+ [bitcoinMethods.bitcoin_sendTransferV2]: BitcoinSendTransferV2Request;
4062
+ [bitcoinMethods.signMessage]: BitcoinSignMessageRequest;
4063
+ [bitcoinMethods.bitcoin_signMessageV2]: BitcoinSignMessageV2Request;
4064
+ [bitcoinMethods.signMultipleMessages]: BitcoinSignMultipleMessagesRequest;
4065
+ [bitcoinMethods.bitcoin_signMultipleMessagesV2]: BitcoinSignMultipleMessagesV2Request;
4066
+ [bitcoinMethods.signPsbt]: BitcoinSignPsbtRequest;
4067
+ [bitcoinMethods.bitcoin_signPsbtV2]: BitcoinSignPsbtV2Request;
4068
+ [stacksMethods.stx_callContract]: StacksCallContractRequest;
4069
+ [stacksMethods.stx_deployContract]: StacksDeployContractRequest;
4070
+ [stacksMethods.stx_getAccounts]: StacksGetAccountsRequest;
4071
+ [stacksMethods.stx_getAddresses]: StacksGetAddressesRequest;
4072
+ [stacksMethods.stacks_getAddressesV2]: StacksGetAddressesV2Request;
4073
+ [stacksMethods.stx_signMessage]: StacksSignMessageRequest;
4074
+ [stacksMethods.stx_signStructuredMessage]: StacksSignStructuredMessageRequest;
4075
+ [stacksMethods.stx_signTransaction]: StacksSignTransactionRequest;
4076
+ [stacksMethods.stx_signTransactions]: StacksSignTransactionsRequest;
4077
+ [stacksMethods.stx_transferStx]: StacksTransferStxRequest;
4078
+ [sparkMethods.spark_getAddresses]: SparkGetAddressesRequest;
4079
+ [sparkMethods.spark_getAddressesV2]: SparkGetAddressesV2Request;
4080
+ [sparkMethods.spark_getBalance]: SparkGetBalanceRequest;
4081
+ [sparkMethods.spark_transfer]: SparkTransferRequest;
4082
+ [sparkMethods.spark_transferToken]: SparkTransferTokenRequest;
4083
+ [sparkMethods.spark_signMessage]: SparkSignMessageRequest;
4084
+ [sparkMethods.spark_flashnet_getJwt]: SparkFlashnetGetJwtRequest;
4085
+ [sparkMethods.spark_flashnet_signIntent]: SparkFlashnetSignIntentRequest;
4086
+ [sparkMethods.spark_flashnet_signStructuredMessage]: SparkFlashnetSignStructuredMessageRequest;
4087
+ [sparkMethods.spark_flashnet_executeSwap]: SparkFlashnetExecuteSwapRequest;
4088
+ [sparkMethods.spark_flashnet_executeRouteSwap]: SparkFlashnetExecuteRouteSwapRequest;
4089
+ [sparkMethods.spark_flashnet_clawbackFunds]: SparkFlashnetClawbackFundsRequest;
4090
+ [sparkMethods.spark_getClawbackEligibleTransfers]: SparkGetClawbackEligibleTransfersRequest;
4091
+ [runesMethods.runes_estimateEtch]: RunesEstimateEtchRequest;
4092
+ [runesMethods.runes_estimateMint]: RunesEstimateMintRequest;
4093
+ [runesMethods.runes_estimateRbfOrder]: RunesEstimateRbfOrderRequest;
4094
+ [runesMethods.runes_etch]: RunesEtchRequest;
4095
+ [runesMethods.runes_getBalance]: RunesGetBalanceRequest;
4096
+ [runesMethods.runes_getOrder]: RunesGetOrderRequest;
4097
+ [runesMethods.runes_mint]: RunesMintRequest;
4098
+ [runesMethods.runes_rbfOrder]: RunesRbfOrderRequest;
4099
+ [runesMethods.runes_transfer]: RunesTransferRequest;
4100
+ [ordinalsMethods.ord_getInscriptions]: OrdinalsGetInscriptionsRequest;
4101
+ [ordinalsMethods.ord_sendInscriptions]: OrdinalsSendInscriptionsRequest;
4102
+ [walletMethods.wallet_addNetwork]: WalletAddNetworkRequest;
4103
+ [walletMethods.wallet_addNetworkV2]: WalletAddNetworkV2Request;
4104
+ [walletMethods.wallet_changeNetworkById]: WalletChangeNetworkByIdRequest;
4105
+ [walletMethods.wallet_changeNetwork]: WalletChangeNetworkRequest;
4106
+ [walletMethods.wallet_connect]: WalletConnectRequest;
4107
+ [walletMethods.wallet_connectV2]: WalletConnectV2Request;
4108
+ [walletMethods.wallet_disconnect]: WalletDisconnectRequest;
4109
+ [walletMethods.wallet_getAccount]: WalletGetAccountRequest;
4110
+ [walletMethods.wallet_getAccountV2]: WalletGetAccountV2Request;
4111
+ [walletMethods.wallet_getCurrentPermissions]: WalletGetCurrentPermissionsRequest;
4112
+ [walletMethods.wallet_getNetwork]: WalletGetNetworkRequest;
4113
+ [walletMethods.wallet_getNetworks]: WalletGetNetworksRequest;
4114
+ [walletMethods.wallet_getWalletType]: WalletGetWalletTypeRequest;
4115
+ [walletMethods.wallet_openBridge]: WalletOpenBridgeRequest;
4116
+ [walletMethods.wallet_openBuy]: WalletOpenBuyRequest;
4117
+ [walletMethods.wallet_openReceive]: WalletOpenReceiveRequest;
4118
+ [walletMethods.wallet_renouncePermissions]: WalletRenouncePermissionsRequest;
4119
+ [walletMethods.wallet_requestPermissions]: WalletRequestPermissionsRequest;
4120
+ }>;
4121
+ type RpcRequestParams<M extends Method> = RpcRequests[M]['params'];
4122
+ //#endregion
4123
+ //#region src/request/types/index.d.ts
4124
+ type GetInfoResult = RpcSuccessResponseResult<typeof bitcoinMethods.getInfo>;
4125
+ //#endregion
4126
+ //#region src/request/index.d.ts
4127
+ declare const request: <Method$1 extends keyof RpcRequests>(method: Method$1, params: RpcRequestParams<Method$1>,
4128
+ /**
4129
+ * The providerId is the object path to the provider in the window object.
4130
+ * E.g., a provider available at `window.Foo.BarProvider` would have a
4131
+ * providerId of `Foo.BarProvider`.
4132
+ */
4133
+ providerId?: string) => Promise<RpcResult<Method$1>>;
4134
+ /**
4135
+ * Adds an event listener.
4136
+ *
4137
+ * Currently expects 2 arguments, although is also capable of handling legacy
4138
+ * calls with 3 arguments consisting of:
4139
+ *
4140
+ * - event name (string)
4141
+ * - callback (function)
4142
+ * - provider ID (optional string)
4143
+ */
4144
+ declare const addListener: (...rawArgs: unknown[]) => ReturnType<AddListener>;
4145
+ //#endregion
4146
+ //#region src/adapters/satsConnectAdapter.d.ts
4147
+ declare abstract class SatsConnectAdapter {
4148
+ abstract readonly id: string;
4149
+ private mintRunes;
4150
+ private etchRunes;
4151
+ private estimateMint;
4152
+ private estimateEtch;
4153
+ private getOrder;
4154
+ private estimateRbfOrder;
4155
+ private rbfOrder;
4156
+ request<Method$1 extends keyof RpcRequests>(method: Method$1, params: RpcRequestParams<Method$1>): Promise<RpcResult<Method$1>>;
4157
+ abstract addListener: AddListener;
4158
+ protected abstract requestInternal<Method$1 extends keyof RpcRequests>(method: Method$1, params: RpcRequestParams<Method$1>): Promise<RpcResult<Method$1>>;
4159
+ }
4160
+ //#endregion
4161
+ //#region src/adapters/BaseAdapter.d.ts
4162
+ declare class BaseAdapter extends SatsConnectAdapter {
4163
+ id: string;
4164
+ constructor(providerId: string);
4165
+ requestInternal: <Method$1 extends keyof RpcRequests>(method: Method$1, params: RpcRequestParams<Method$1>) => Promise<RpcResult<Method$1>>;
4166
+ addListener: AddListener;
4167
+ }
4168
+ //#endregion
4169
+ //#region src/adapters/index.d.ts
4170
+ declare const DefaultAdaptersInfo: Record<string, Provider>;
4171
+ declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
4172
+ //#endregion
4173
+ export { AccountChangeCallback, AccountChangeEvent, AddListener, Address, AddressPurpose, AddressType, BaseAdapter, BitcoinNetwork, BitcoinNetworkType, BitcoinProvider, type BitcoinMethod as BitcoinRequestMethod, Capability, CreateInscriptionOptions, CreateInscriptionPayload, CreateInscriptionResponse, CreateRepeatInscriptionsOptions, CreateRepeatInscriptionsPayload, CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, DisconnectCallback, DisconnectEvent, GetAddressOptions, GetAddressPayload, GetAddressResponse, GetCapabilitiesOptions, GetCapabilitiesPayload, GetCapabilitiesResponse, GetInfoResult, InputToSign, ListenerInfo, MessageSigningProtocols, MethodParamsAndResult, NetworkChangeCallback, NetworkChangeEvent, NetworkChangeEventV2, type OrdinalsMethod as OrdinalsRequestMethod, type RpcRequestParams as Params, Provider, ProviderPlatform, PsbtPayload, Recipient, RequestOptions, RequestPayload, type RpcRequests as Requests, type RpcSuccessResponseResult as Return, RpcBase, RpcError, RpcErrorCode, RpcErrorResponse, RpcErrorResponseMessage, RpcId, RpcIdSchema, RpcRequest, RpcRequestMessage, RpcResponse, RpcResponseMessage, RpcResult, RpcSuccessResponse, RpcSuccessResponseMessage, type RunesMethod as RunesRequestMethod, SatsConnectAdapter, SendBtcTransactionOptions, SendBtcTransactionPayload, SendBtcTransactionResponse, SerializedRecipient, SerializedSendBtcTransactionPayload, SignMessageOptions, SignMessagePayload, SignMessageResponse, SignMultiplePsbtPayload, SignMultipleTransactionOptions, SignMultipleTransactionsPayload, SignMultipleTransactionsResponse, SignTransactionOptions, SignTransactionPayload, SignTransactionResponse, SparkNetworkType, type SparkMethod as SparkRequestMethod, StacksNetworkType, type StacksMethod as StacksRequestMethod, StarknetNetworkType, SupportedWallet, WalletEvent, type WalletMethod as WalletRequestMethod, accountChangeEventName, accountChangeSchema, addListener, addressSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectSchema, getAddress, getCapabilities, getDefaultProvider, getProviderById, getProviderOrThrow, getProviders, getSupportedWallets, isProviderInstalled, networkChangeEventName, networkChangeEventNameV2, networkChangeSchema, networkChangeV2Schema, removeDefaultProvider, request, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, sendBtcTransaction, setDefaultProvider, signMessage, signMultipleTransactions, signTransaction, walletEventSchema };