@sats-connect/core 0.4.0-7721c7c → 0.4.0-7a3cb13

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,1700 @@
1
+ import * as v from 'valibot';
2
+
3
+ interface GetCapabilitiesPayload extends RequestPayload {
4
+ }
5
+ type GetCapabilitiesResponse = Capability[];
6
+ type GetCapabilitiesOptions = RequestOptions<GetCapabilitiesPayload, GetCapabilitiesResponse>;
7
+
8
+ declare const getCapabilities: (options: GetCapabilitiesOptions) => Promise<void>;
9
+
10
+ interface CreateInscriptionPayload extends RequestPayload {
11
+ contentType: string;
12
+ content: string;
13
+ payloadType: 'PLAIN_TEXT' | 'BASE_64';
14
+ appFee?: number;
15
+ appFeeAddress?: string;
16
+ suggestedMinerFeeRate?: number;
17
+ token?: string;
18
+ }
19
+ interface CreateRepeatInscriptionsPayload extends CreateInscriptionPayload {
20
+ repeat: number;
21
+ }
22
+ type CreateInscriptionResponse = {
23
+ txId: string;
24
+ };
25
+ type CreateRepeatInscriptionsResponse = {
26
+ txId: string;
27
+ };
28
+ type CreateInscriptionOptions = RequestOptions<CreateInscriptionPayload, CreateInscriptionResponse>;
29
+ type CreateRepeatInscriptionsOptions = RequestOptions<CreateRepeatInscriptionsPayload, CreateRepeatInscriptionsResponse>;
30
+
31
+ declare const createInscription: (options: CreateInscriptionOptions) => Promise<void>;
32
+
33
+ declare const createRepeatInscriptions: (options: CreateRepeatInscriptionsOptions) => Promise<void>;
34
+
35
+ interface SignMessagePayload extends RequestPayload {
36
+ address: string;
37
+ message: string;
38
+ protocol?: MessageSigningProtocols;
39
+ }
40
+ type SignMessageResponse = string;
41
+ type SignMessageOptions = RequestOptions<SignMessagePayload, SignMessageResponse>;
42
+
43
+ declare const signMessage: (options: SignMessageOptions) => Promise<void>;
44
+
45
+ interface Recipient {
46
+ address: string;
47
+ amountSats: bigint;
48
+ }
49
+ type SerializedRecipient = Omit<Recipient, 'amountSats'> & {
50
+ amountSats: string;
51
+ };
52
+ interface SendBtcTransactionPayload extends RequestPayload {
53
+ recipients: Recipient[];
54
+ senderAddress: string;
55
+ message?: string;
56
+ }
57
+ type SerializedSendBtcTransactionPayload = Omit<SendBtcTransactionPayload, 'recipients'> & {
58
+ recipients: SerializedRecipient[];
59
+ };
60
+ type SendBtcTransactionResponse = string;
61
+ type SendBtcTransactionOptions = RequestOptions<SendBtcTransactionPayload, SendBtcTransactionResponse>;
62
+ interface InputToSign {
63
+ address: string;
64
+ signingIndexes: number[];
65
+ sigHash?: number;
66
+ }
67
+ type PsbtPayload = {
68
+ psbtBase64: string;
69
+ inputsToSign: InputToSign[];
70
+ broadcast?: boolean;
71
+ };
72
+ type SignMultiplePsbtPayload = {
73
+ psbtBase64: string;
74
+ inputsToSign: InputToSign[];
75
+ };
76
+ interface SignTransactionPayload extends RequestPayload, PsbtPayload {
77
+ message: string;
78
+ }
79
+ interface SignTransactionResponse {
80
+ psbtBase64: string;
81
+ txId?: string;
82
+ }
83
+ type SignTransactionOptions = RequestOptions<SignTransactionPayload, SignTransactionResponse>;
84
+ interface SignMultipleTransactionsPayload extends RequestPayload {
85
+ message: string;
86
+ psbts: SignMultiplePsbtPayload[];
87
+ }
88
+ type SignMultipleTransactionsResponse = SignTransactionResponse[];
89
+ type SignMultipleTransactionOptions = RequestOptions<SignMultipleTransactionsPayload, SignMultipleTransactionsResponse>;
90
+
91
+ declare const sendBtcTransaction: (options: SendBtcTransactionOptions) => Promise<void>;
92
+
93
+ declare const signTransaction: (options: SignTransactionOptions) => Promise<void>;
94
+
95
+ declare const signMultipleTransactions: (options: SignMultipleTransactionOptions) => Promise<void>;
96
+
97
+ declare const accountChangeEventName = "accountChange";
98
+ declare const accountChangeSchema: v.ObjectSchema<{
99
+ readonly type: v.LiteralSchema<"accountChange", undefined>;
100
+ }, undefined>;
101
+ type AccountChangeEvent = v.InferOutput<typeof accountChangeSchema>;
102
+ declare const networkChangeEventName = "networkChange";
103
+ declare const networkChangeSchema: v.ObjectSchema<{
104
+ readonly type: v.LiteralSchema<"networkChange", undefined>;
105
+ }, undefined>;
106
+ type NetworkChangeEvent = v.InferOutput<typeof networkChangeSchema>;
107
+ declare const disconnectEventName = "disconnect";
108
+ declare const disconnectSchema: v.ObjectSchema<{
109
+ readonly type: v.LiteralSchema<"disconnect", undefined>;
110
+ }, undefined>;
111
+ type DisconnectEvent = v.InferOutput<typeof disconnectSchema>;
112
+ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
113
+ readonly type: v.LiteralSchema<"accountChange", undefined>;
114
+ }, undefined>, v.ObjectSchema<{
115
+ readonly type: v.LiteralSchema<"networkChange", undefined>;
116
+ }, undefined>, v.ObjectSchema<{
117
+ readonly type: v.LiteralSchema<"disconnect", undefined>;
118
+ }, undefined>], undefined>;
119
+ type WalletEvent = v.InferOutput<typeof walletEventSchema>;
120
+ type AddListener = <const WalletEventName extends WalletEvent['type']>(eventName: WalletEventName, cb: (event: Extract<WalletEvent, {
121
+ type: WalletEventName;
122
+ }>) => void) => () => void;
123
+ interface BaseBitcoinProvider {
124
+ request: <Method extends keyof Requests>(method: Method, options: Params<Method>, providerId?: string) => Promise<RpcResponse<Method>>;
125
+ connect: (request: string) => Promise<GetAddressResponse>;
126
+ signMessage: (request: string) => Promise<SignMessageResponse>;
127
+ signTransaction: (request: string) => Promise<SignTransactionResponse>;
128
+ sendBtcTransaction: (request: string) => Promise<SendBtcTransactionResponse>;
129
+ createInscription: (request: string) => Promise<CreateInscriptionResponse>;
130
+ createRepeatInscriptions: (request: string) => Promise<CreateRepeatInscriptionsResponse>;
131
+ signMultipleTransactions: (request: string) => Promise<SignMultipleTransactionsResponse>;
132
+ addListener: AddListener;
133
+ }
134
+ type Capability = keyof BaseBitcoinProvider;
135
+ interface BitcoinProvider extends BaseBitcoinProvider {
136
+ getCapabilities?: (request: string) => Promise<GetCapabilitiesResponse>;
137
+ }
138
+ interface Provider {
139
+ id: string;
140
+ name: string;
141
+ icon: string;
142
+ webUrl?: string;
143
+ chromeWebStoreUrl?: string;
144
+ mozillaAddOnsUrl?: string;
145
+ googlePlayStoreUrl?: string;
146
+ iOSAppStoreUrl?: string;
147
+ methods?: (StxRequestMethod | BtcRequestMethod | RunesRequestMethod | OrdinalsRequestMethod)[];
148
+ }
149
+ interface SupportedWallet extends Provider {
150
+ isInstalled: boolean;
151
+ }
152
+ declare global {
153
+ interface XverseProviders {
154
+ BitcoinProvider?: BitcoinProvider;
155
+ }
156
+ interface Window {
157
+ BitcoinProvider?: BitcoinProvider;
158
+ XverseProviders?: XverseProviders;
159
+ btc_providers?: Provider[];
160
+ }
161
+ }
162
+
163
+ declare function getProviderOrThrow(getProvider?: () => Promise<BitcoinProvider | undefined>): Promise<BitcoinProvider>;
164
+ declare function getProviders(): Provider[];
165
+ declare function getProviderById(providerId: string): any;
166
+ declare function isProviderInstalled(providerId: string): boolean;
167
+ declare function setDefaultProvider(providerId: string): void;
168
+ declare function getDefaultProvider(): string | null;
169
+ declare function removeDefaultProvider(): void;
170
+ declare function getSupportedWallets(): SupportedWallet[];
171
+
172
+ declare enum BitcoinNetworkType {
173
+ Mainnet = "Mainnet",
174
+ Testnet = "Testnet",
175
+ Signet = "Signet"
176
+ }
177
+ interface BitcoinNetwork {
178
+ type: BitcoinNetworkType;
179
+ address?: string;
180
+ }
181
+ interface RequestPayload {
182
+ network: BitcoinNetwork;
183
+ }
184
+ interface RequestOptions<Payload extends RequestPayload, Response> {
185
+ onFinish: (response: Response) => void;
186
+ onCancel: () => void;
187
+ payload: Payload;
188
+ getProvider?: () => Promise<BitcoinProvider | undefined>;
189
+ }
190
+ declare const RpcIdSchema: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, never>;
191
+ type RpcId = v.InferOutput<typeof RpcIdSchema>;
192
+ declare const rpcRequestMessageSchema: v.ObjectSchema<{
193
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
194
+ readonly method: v.StringSchema<undefined>;
195
+ readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
196
+ readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>;
197
+ }, undefined>;
198
+ type RpcRequestMessage = v.InferOutput<typeof rpcRequestMessageSchema>;
199
+ interface RpcBase {
200
+ jsonrpc: '2.0';
201
+ id: RpcId;
202
+ }
203
+ interface RpcRequest<T extends string, U> extends RpcBase {
204
+ method: T;
205
+ params: U;
206
+ }
207
+ interface MethodParamsAndResult<TParams, TResult> {
208
+ params: TParams;
209
+ result: TResult;
210
+ }
211
+ /**
212
+ * @enum {number} RpcErrorCode
213
+ * @description JSON-RPC error codes
214
+ * @see https://www.jsonrpc.org/specification#error_object
215
+ */
216
+ declare enum RpcErrorCode {
217
+ /**
218
+ * Parse error Invalid JSON
219
+ **/
220
+ PARSE_ERROR = -32700,
221
+ /**
222
+ * The JSON sent is not a valid Request object.
223
+ **/
224
+ INVALID_REQUEST = -32600,
225
+ /**
226
+ * The method does not exist/is not available.
227
+ **/
228
+ METHOD_NOT_FOUND = -32601,
229
+ /**
230
+ * Invalid method parameter(s).
231
+ */
232
+ INVALID_PARAMS = -32602,
233
+ /**
234
+ * Internal JSON-RPC error.
235
+ * This is a generic error, used when the server encounters an error in performing the request.
236
+ **/
237
+ INTERNAL_ERROR = -32603,
238
+ /**
239
+ * user rejected/canceled the request
240
+ */
241
+ USER_REJECTION = -32000,
242
+ /**
243
+ * method is not supported for the address provided
244
+ */
245
+ METHOD_NOT_SUPPORTED = -32001,
246
+ /**
247
+ * The client does not have permission to access the requested resource.
248
+ */
249
+ ACCESS_DENIED = -32002
250
+ }
251
+ declare const rpcSuccessResponseMessageSchema: v.ObjectSchema<{
252
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
253
+ readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
254
+ readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, never>;
255
+ }, undefined>;
256
+ type RpcSuccessResponseMessage = v.InferOutput<typeof rpcSuccessResponseMessageSchema>;
257
+ declare const rpcErrorResponseMessageSchema: v.ObjectSchema<{
258
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
259
+ readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
260
+ readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, never>;
261
+ }, undefined>;
262
+ type RpcErrorResponseMessage = v.InferOutput<typeof rpcErrorResponseMessageSchema>;
263
+ declare const rpcResponseMessageSchema: v.UnionSchema<[v.ObjectSchema<{
264
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
265
+ readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
266
+ readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, never>;
267
+ }, undefined>, v.ObjectSchema<{
268
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
269
+ readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
270
+ readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, never>;
271
+ }, undefined>], undefined>;
272
+ type RpcResponseMessage = v.InferOutput<typeof rpcResponseMessageSchema>;
273
+ interface RpcError {
274
+ code: number | RpcErrorCode;
275
+ message: string;
276
+ data?: any;
277
+ }
278
+ interface RpcErrorResponse<TError extends RpcError = RpcError> extends RpcBase {
279
+ error: TError;
280
+ }
281
+ interface RpcSuccessResponse<Method extends keyof Requests> extends RpcBase {
282
+ result: Return<Method>;
283
+ }
284
+ type RpcResponse<Method extends keyof Requests> = RpcSuccessResponse<Method> | RpcErrorResponse;
285
+ type RpcResult<Method extends keyof Requests> = {
286
+ result: RpcSuccessResponse<Method>['result'];
287
+ status: 'success';
288
+ } | {
289
+ error: RpcErrorResponse['error'];
290
+ status: 'error';
291
+ };
292
+
293
+ declare enum AddressPurpose {
294
+ Ordinals = "ordinals",
295
+ Payment = "payment",
296
+ Stacks = "stacks"
297
+ }
298
+ interface GetAddressPayload extends RequestPayload {
299
+ purposes: AddressPurpose[];
300
+ message: string;
301
+ }
302
+ declare enum AddressType {
303
+ p2pkh = "p2pkh",
304
+ p2sh = "p2sh",
305
+ p2wpkh = "p2wpkh",
306
+ p2wsh = "p2wsh",
307
+ p2tr = "p2tr",
308
+ stacks = "stacks"
309
+ }
310
+ declare const addressSchema: v.ObjectSchema<{
311
+ readonly address: v.StringSchema<undefined>;
312
+ readonly publicKey: v.StringSchema<undefined>;
313
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
314
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
315
+ }, undefined>;
316
+ type Address = v.InferOutput<typeof addressSchema>;
317
+ interface GetAddressResponse {
318
+ addresses: Address[];
319
+ }
320
+ type GetAddressOptions = RequestOptions<GetAddressPayload, GetAddressResponse>;
321
+
322
+ /**
323
+ * @deprecated Use `request()` instead
324
+ */
325
+ declare const getAddress: (options: GetAddressOptions) => Promise<void>;
326
+
327
+ declare const getInfoMethodName = "getInfo";
328
+ declare const getInfoParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
329
+ type GetInfoParams = v.InferOutput<typeof getInfoParamsSchema>;
330
+ declare const getInfoResultSchema: v.ObjectSchema<{
331
+ /**
332
+ * Version of the wallet.
333
+ */
334
+ readonly version: v.StringSchema<undefined>;
335
+ /**
336
+ * [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
337
+ */
338
+ readonly methods: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
339
+ /**
340
+ * List of WBIP standards supported by the wallet. Not currently used.
341
+ */
342
+ readonly supports: v.ArraySchema<v.StringSchema<undefined>, undefined>;
343
+ }, undefined>;
344
+ type GetInfoResult = v.InferOutput<typeof getInfoResultSchema>;
345
+ declare const getInfoRequestMessageSchema: v.ObjectSchema<{
346
+ readonly method: v.LiteralSchema<"getInfo", undefined>;
347
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
348
+ readonly id: v.StringSchema<undefined>;
349
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
350
+ }, undefined>;
351
+ type GetInfoRequestMessage = v.InferOutput<typeof getInfoRequestMessageSchema>;
352
+ type GetInfo = MethodParamsAndResult<v.InferOutput<typeof getInfoParamsSchema>, v.InferOutput<typeof getInfoResultSchema>>;
353
+ declare const getAddressesMethodName = "getAddresses";
354
+ declare const getAddressesParamsSchema: v.ObjectSchema<{
355
+ /**
356
+ * The purposes for which to generate addresses. See
357
+ * {@linkcode AddressPurpose} for available purposes.
358
+ */
359
+ readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
360
+ /**
361
+ * A message to be displayed to the user in the request prompt.
362
+ */
363
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, never>;
364
+ }, undefined>;
365
+ type GetAddressesParams = v.InferOutput<typeof getAddressesParamsSchema>;
366
+ declare const getAddressesResultSchema: v.ObjectSchema<{
367
+ /**
368
+ * The addresses generated for the given purposes.
369
+ */
370
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
371
+ readonly address: v.StringSchema<undefined>;
372
+ readonly publicKey: v.StringSchema<undefined>;
373
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>; /**
374
+ * [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
375
+ */
376
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
377
+ }, undefined>, undefined>;
378
+ }, undefined>;
379
+ type GetAddressesResult = v.InferOutput<typeof getAddressesResultSchema>;
380
+ declare const getAddressesRequestMessageSchema: v.ObjectSchema<{
381
+ readonly method: v.LiteralSchema<"getAddresses", undefined>;
382
+ readonly params: v.ObjectSchema<{
383
+ /**
384
+ * The purposes for which to generate addresses. See
385
+ * {@linkcode AddressPurpose} for available purposes.
386
+ */
387
+ readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
388
+ /**
389
+ * A message to be displayed to the user in the request prompt.
390
+ */
391
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, never>;
392
+ }, undefined>;
393
+ readonly id: v.StringSchema<undefined>;
394
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
395
+ }, undefined>;
396
+ type GetAddressesRequestMessage = v.InferOutput<typeof getAddressesRequestMessageSchema>;
397
+ type GetAddresses = MethodParamsAndResult<v.InferOutput<typeof getAddressesParamsSchema>, v.InferOutput<typeof getAddressesResultSchema>>;
398
+ declare const signMessageMethodName = "signMessage";
399
+ declare enum MessageSigningProtocols {
400
+ ECDSA = "ECDSA",
401
+ BIP322 = "BIP322"
402
+ }
403
+ declare const signMessageParamsSchema: v.ObjectSchema<{
404
+ /**
405
+ * The address used for signing.
406
+ **/
407
+ readonly address: v.StringSchema<undefined>;
408
+ /**
409
+ * The message to sign.
410
+ **/
411
+ readonly message: v.StringSchema<undefined>;
412
+ /**
413
+ * The protocol to use for signing the message.
414
+ */
415
+ readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols, undefined>, never>;
416
+ }, undefined>;
417
+ type SignMessageParams = v.InferOutput<typeof signMessageParamsSchema>;
418
+ declare const signMessageResultSchema: v.ObjectSchema<{
419
+ /**
420
+ * The signature of the message.
421
+ */
422
+ readonly signature: v.StringSchema<undefined>;
423
+ /**
424
+ * hash of the message.
425
+ */
426
+ readonly messageHash: v.StringSchema<undefined>;
427
+ /**
428
+ * The address used for signing.
429
+ */
430
+ readonly address: v.StringSchema<undefined>;
431
+ /**
432
+ * The protocol to use for signing the message.
433
+ */
434
+ readonly protocol: v.EnumSchema<typeof MessageSigningProtocols, undefined>;
435
+ }, undefined>;
436
+ type SignMessageResult = v.InferOutput<typeof signMessageResultSchema>;
437
+ declare const signMessageRequestMessageSchema: v.ObjectSchema<{
438
+ readonly method: v.LiteralSchema<"signMessage", undefined>;
439
+ readonly params: v.ObjectSchema<{
440
+ /**
441
+ * The address used for signing.
442
+ **/
443
+ readonly address: v.StringSchema<undefined>;
444
+ /**
445
+ * The message to sign.
446
+ **/
447
+ readonly message: v.StringSchema<undefined>;
448
+ /**
449
+ * The protocol to use for signing the message.
450
+ */
451
+ readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols, undefined>, never>;
452
+ }, undefined>;
453
+ readonly id: v.StringSchema<undefined>;
454
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
455
+ }, undefined>;
456
+ type SignMessageRequestMessage = v.InferOutput<typeof signMessageRequestMessageSchema>;
457
+ type SignMessage = MethodParamsAndResult<v.InferOutput<typeof signMessageParamsSchema>, v.InferOutput<typeof signMessageResultSchema>>;
458
+ declare const sendTransferMethodName = "sendTransfer";
459
+ declare const sendTransferParamsSchema: v.ObjectSchema<{
460
+ /**
461
+ * Array of recipients to send to.
462
+ * The amount to send to each recipient is in satoshis.
463
+ */
464
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
465
+ readonly address: v.StringSchema<undefined>;
466
+ readonly amount: v.NumberSchema<undefined>;
467
+ }, undefined>, undefined>;
468
+ }, undefined>;
469
+ type SendTransferParams = v.InferOutput<typeof sendTransferParamsSchema>;
470
+ declare const sendTransferResultSchema: v.ObjectSchema<{
471
+ /**
472
+ * The transaction id as a hex-encoded string.
473
+ */
474
+ readonly txid: v.StringSchema<undefined>;
475
+ }, undefined>;
476
+ type SendTransferResult = v.InferOutput<typeof sendTransferResultSchema>;
477
+ declare const sendTransferRequestMessageSchema: v.ObjectSchema<{
478
+ readonly method: v.LiteralSchema<"sendTransfer", undefined>;
479
+ readonly params: v.ObjectSchema<{
480
+ /**
481
+ * Array of recipients to send to.
482
+ * The amount to send to each recipient is in satoshis.
483
+ */
484
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
485
+ readonly address: v.StringSchema<undefined>;
486
+ readonly amount: v.NumberSchema<undefined>;
487
+ }, undefined>, undefined>;
488
+ }, undefined>;
489
+ readonly id: v.StringSchema<undefined>;
490
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
491
+ }, undefined>;
492
+ type SendTransferRequestMessage = v.InferOutput<typeof sendTransferRequestMessageSchema>;
493
+ type SendTransfer = MethodParamsAndResult<SendTransferParams, SendTransferResult>;
494
+ declare const signPsbtMethodName = "signPsbt";
495
+ declare const signPsbtParamsSchema: v.ObjectSchema<{
496
+ /**
497
+ * The base64 encoded PSBT to sign.
498
+ */
499
+ readonly psbt: v.StringSchema<undefined>;
500
+ /**
501
+ * The inputs to sign.
502
+ * The key is the address and the value is an array of indexes of the inputs to sign.
503
+ */
504
+ readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
505
+ readonly allowedSignHash: v.OptionalSchema<v.NumberSchema<undefined>, never>;
506
+ /**
507
+ * Whether to broadcast the transaction after signing.
508
+ **/
509
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
510
+ }, undefined>;
511
+ type SignPsbtParams = v.InferOutput<typeof signPsbtParamsSchema>;
512
+ declare const signPsbtResultSchema: v.ObjectSchema<{
513
+ /**
514
+ * The base64 encoded PSBT after signing.
515
+ */
516
+ readonly psbt: v.StringSchema<undefined>;
517
+ /**
518
+ * The transaction id as a hex-encoded string.
519
+ * This is only returned if the transaction was broadcast.
520
+ **/
521
+ readonly txid: v.OptionalSchema<v.StringSchema<undefined>, never>;
522
+ }, undefined>;
523
+ type SignPsbtResult = v.InferOutput<typeof signPsbtResultSchema>;
524
+ declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
525
+ readonly method: v.LiteralSchema<"signPsbt", undefined>;
526
+ readonly params: v.ObjectSchema<{
527
+ /**
528
+ * The base64 encoded PSBT to sign.
529
+ */
530
+ readonly psbt: v.StringSchema<undefined>;
531
+ /**
532
+ * The inputs to sign.
533
+ * The key is the address and the value is an array of indexes of the inputs to sign.
534
+ */
535
+ readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
536
+ readonly allowedSignHash: v.OptionalSchema<v.NumberSchema<undefined>, never>;
537
+ /**
538
+ * Whether to broadcast the transaction after signing.
539
+ **/
540
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
541
+ }, undefined>;
542
+ readonly id: v.StringSchema<undefined>;
543
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
544
+ }, undefined>;
545
+ type SignPsbtRequestMessage = v.InferOutput<typeof signPsbtRequestMessageSchema>;
546
+ type SignPsbt = MethodParamsAndResult<SignPsbtParams, SignPsbtResult>;
547
+ declare const getAccountsMethodName = "getAccounts";
548
+ declare const getAccountsParamsSchema: v.ObjectSchema<{
549
+ /**
550
+ * The purposes for which to generate addresses. See
551
+ * {@linkcode AddressPurpose} for available purposes.
552
+ */
553
+ readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
554
+ /**
555
+ * A message to be displayed to the user in the request prompt.
556
+ */
557
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, never>;
558
+ }, undefined>;
559
+ type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
560
+ declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
561
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
562
+ readonly address: v.StringSchema<undefined>;
563
+ readonly publicKey: v.StringSchema<undefined>;
564
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>; /**
565
+ * [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
566
+ */
567
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
568
+ }, undefined>, undefined>;
569
+ type GetAccountsResult = v.InferOutput<typeof getAccountsResultSchema>;
570
+ declare const getAccountsRequestMessageSchema: v.ObjectSchema<{
571
+ readonly method: v.LiteralSchema<"getAccounts", undefined>;
572
+ readonly params: v.ObjectSchema<{
573
+ /**
574
+ * The purposes for which to generate addresses. See
575
+ * {@linkcode AddressPurpose} for available purposes.
576
+ */
577
+ readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
578
+ /**
579
+ * A message to be displayed to the user in the request prompt.
580
+ */
581
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, never>;
582
+ }, undefined>;
583
+ readonly id: v.StringSchema<undefined>;
584
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
585
+ }, undefined>;
586
+ type GetAccountsRequestMessage = v.InferOutput<typeof getAccountsRequestMessageSchema>;
587
+ type GetAccounts = MethodParamsAndResult<v.InferOutput<typeof getAccountsParamsSchema>, v.InferOutput<typeof getAccountsResultSchema>>;
588
+ declare const getBalanceMethodName = "getBalance";
589
+ declare const getBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
590
+ type GetBalanceParams = v.InferOutput<typeof getBalanceParamsSchema>;
591
+ declare const getBalanceResultSchema: v.ObjectSchema<{
592
+ /**
593
+ * The confirmed balance of the wallet in sats. Using a string due to chrome
594
+ * messages not supporting bigint
595
+ * (https://issues.chromium.org/issues/40116184).
596
+ */
597
+ readonly confirmed: v.StringSchema<undefined>;
598
+ /**
599
+ * The unconfirmed balance of the wallet in sats. Using a string due to chrome
600
+ * messages not supporting bigint
601
+ * (https://issues.chromium.org/issues/40116184).
602
+ */
603
+ readonly unconfirmed: v.StringSchema<undefined>;
604
+ /**
605
+ * The total balance (both confirmed and unconfrimed UTXOs) of the wallet in
606
+ * sats. Using a string due to chrome messages not supporting bigint
607
+ * (https://issues.chromium.org/issues/40116184).
608
+ */
609
+ readonly total: v.StringSchema<undefined>;
610
+ }, undefined>;
611
+ type GetBalanceResult = v.InferOutput<typeof getBalanceResultSchema>;
612
+ declare const getBalanceRequestMessageSchema: v.ObjectSchema<{
613
+ readonly method: v.LiteralSchema<"getBalance", undefined>;
614
+ readonly id: v.StringSchema<undefined>;
615
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
616
+ readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
617
+ }, undefined>;
618
+ type GetBalanceRequestMessage = v.InferOutput<typeof getBalanceRequestMessageSchema>;
619
+ type GetBalance = MethodParamsAndResult<GetBalanceParams, GetBalanceResult>;
620
+
621
+ declare const getInscriptionsMethodName = "ord_getInscriptions";
622
+ declare const getInscriptionsParamsSchema: v.ObjectSchema<{
623
+ readonly offset: v.NumberSchema<undefined>;
624
+ readonly limit: v.NumberSchema<undefined>;
625
+ }, undefined>;
626
+ type GetInscriptionsParams = v.InferOutput<typeof getInscriptionsParamsSchema>;
627
+ declare const getInscriptionsResultSchema: v.ObjectSchema<{
628
+ readonly total: v.NumberSchema<undefined>;
629
+ readonly limit: v.NumberSchema<undefined>;
630
+ readonly offset: v.NumberSchema<undefined>;
631
+ readonly inscriptions: v.ArraySchema<v.ObjectSchema<{
632
+ readonly inscriptionId: v.StringSchema<undefined>;
633
+ readonly inscriptionNumber: v.StringSchema<undefined>;
634
+ readonly address: v.StringSchema<undefined>;
635
+ readonly collectionName: v.OptionalSchema<v.StringSchema<undefined>, never>;
636
+ readonly postage: v.StringSchema<undefined>;
637
+ readonly contentLength: v.StringSchema<undefined>;
638
+ readonly contentType: v.StringSchema<undefined>;
639
+ readonly timestamp: v.NumberSchema<undefined>;
640
+ readonly offset: v.NumberSchema<undefined>;
641
+ readonly genesisTransaction: v.StringSchema<undefined>;
642
+ readonly output: v.StringSchema<undefined>;
643
+ }, undefined>, undefined>;
644
+ }, undefined>;
645
+ type GetInscriptionsResult = v.InferOutput<typeof getInscriptionsResultSchema>;
646
+ declare const getInscriptionsRequestMessageSchema: v.ObjectSchema<{
647
+ readonly method: v.LiteralSchema<"ord_getInscriptions", undefined>;
648
+ readonly params: v.ObjectSchema<{
649
+ readonly offset: v.NumberSchema<undefined>;
650
+ readonly limit: v.NumberSchema<undefined>;
651
+ }, undefined>;
652
+ readonly id: v.StringSchema<undefined>;
653
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
654
+ }, undefined>;
655
+ type GetInscriptionsRequestMessage = v.InferOutput<typeof getInscriptionsRequestMessageSchema>;
656
+ type GetInscriptions = MethodParamsAndResult<GetInscriptionsParams, GetInscriptionsResult>;
657
+ declare const sendInscriptionsMethodName = "ord_sendInscriptions";
658
+ declare const sendInscriptionsParamsSchema: v.ObjectSchema<{
659
+ readonly transfers: v.ArraySchema<v.ObjectSchema<{
660
+ readonly address: v.StringSchema<undefined>;
661
+ readonly inscriptionId: v.StringSchema<undefined>;
662
+ }, undefined>, undefined>;
663
+ }, undefined>;
664
+ type SendInscriptionsParams = v.InferOutput<typeof sendInscriptionsParamsSchema>;
665
+ declare const sendInscriptionsResultSchema: v.ObjectSchema<{
666
+ readonly txid: v.StringSchema<undefined>;
667
+ }, undefined>;
668
+ type SendInscriptionsResult = v.InferOutput<typeof sendInscriptionsResultSchema>;
669
+ declare const sendInscriptionsRequestMessageSchema: v.ObjectSchema<{
670
+ readonly method: v.LiteralSchema<"ord_sendInscriptions", undefined>;
671
+ readonly params: v.ObjectSchema<{
672
+ readonly transfers: v.ArraySchema<v.ObjectSchema<{
673
+ readonly address: v.StringSchema<undefined>;
674
+ readonly inscriptionId: v.StringSchema<undefined>;
675
+ }, undefined>, undefined>;
676
+ }, undefined>;
677
+ readonly id: v.StringSchema<undefined>;
678
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
679
+ }, undefined>;
680
+ type SendInscriptionsRequestMessage = v.InferOutput<typeof sendInscriptionsRequestMessageSchema>;
681
+ type SendInscriptions = MethodParamsAndResult<SendInscriptionsParams, SendInscriptionsResult>;
682
+
683
+ type CreateMintOrderRequest = {
684
+ runeName: string;
685
+ repeats: number;
686
+ refundAddress: string;
687
+ destinationAddress: string;
688
+ feeRate: number;
689
+ appServiceFee?: number;
690
+ appServiceFeeAddress?: string;
691
+ };
692
+ type EstimateMintOrderRequest = Omit<CreateMintOrderRequest, 'refundAddress'>;
693
+ type EstimateOrderResponse = {
694
+ totalSize: number;
695
+ totalCost: number;
696
+ costBreakdown: {
697
+ postage: number;
698
+ networkFee: number;
699
+ serviceFee: number;
700
+ appServiceFee: number;
701
+ };
702
+ };
703
+ type CreateEtchOrderRequest = {
704
+ runeName: string;
705
+ divisibility?: number;
706
+ symbol?: string;
707
+ premine?: string;
708
+ isMintable: boolean;
709
+ terms?: {
710
+ amount?: string;
711
+ cap?: string;
712
+ heightStart?: string;
713
+ heightEnd?: string;
714
+ offsetStart?: string;
715
+ offsetEnd?: string;
716
+ };
717
+ inscriptionDetails?: {
718
+ contentType: string;
719
+ contentBase64: string;
720
+ };
721
+ delegateInscriptionId?: string;
722
+ destinationAddress: string;
723
+ refundAddress: string;
724
+ feeRate: number;
725
+ appServiceFee?: number;
726
+ appServiceFeeAddress?: string;
727
+ };
728
+ type EstimateEtchOrderRequest = Omit<CreateEtchOrderRequest, 'refundAddress'>;
729
+ type GetOrderRequest = {
730
+ id: string;
731
+ };
732
+ type GetOrderResponse = {
733
+ id: string;
734
+ orderType: 'rune_mint' | 'rune_etch';
735
+ state: 'new' | 'pending' | 'executing' | 'complete' | 'failed' | 'refunded' | 'stale';
736
+ fundingAddress: string;
737
+ reason?: string;
738
+ createdAt: string;
739
+ };
740
+ type RBFOrderRequest = {
741
+ orderId: string;
742
+ newFeeRate: number;
743
+ };
744
+ type RBFOrderResponse = {
745
+ rbfCost: number;
746
+ fundingAddress: string;
747
+ };
748
+
749
+ interface RunesEstimateEtchParams extends EstimateEtchOrderRequest {
750
+ network?: BitcoinNetworkType;
751
+ }
752
+ type RunesEstimateEtchResult = EstimateOrderResponse;
753
+ type RunesEstimateEtch = MethodParamsAndResult<RunesEstimateEtchParams, RunesEstimateEtchResult>;
754
+
755
+ interface runesEstimateMintParams extends EstimateMintOrderRequest {
756
+ network?: BitcoinNetworkType;
757
+ }
758
+ type runesEstimateMintResult = EstimateOrderResponse;
759
+ type RunesEstimateMint = MethodParamsAndResult<runesEstimateMintParams, runesEstimateMintResult>;
760
+
761
+ interface RunesEstimateRbfOrderParams extends RBFOrderRequest {
762
+ network?: BitcoinNetworkType;
763
+ }
764
+ type RunesEstimateRbfOrder = MethodParamsAndResult<RunesEstimateRbfOrderParams, RBFOrderResponse>;
765
+
766
+ declare const runesEtchMethodName = "runes_etch";
767
+ declare const runesEtchParamsSchema: v.ObjectSchema<{
768
+ readonly runeName: v.StringSchema<undefined>;
769
+ readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>, never>;
770
+ readonly symbol: v.OptionalSchema<v.StringSchema<undefined>, never>;
771
+ readonly premine: v.OptionalSchema<v.StringSchema<undefined>, never>;
772
+ readonly isMintable: v.BooleanSchema<undefined>;
773
+ readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>, never>;
774
+ readonly destinationAddress: v.StringSchema<undefined>;
775
+ readonly refundAddress: v.StringSchema<undefined>;
776
+ readonly feeRate: v.NumberSchema<undefined>;
777
+ readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
778
+ readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
779
+ readonly terms: v.OptionalSchema<v.ObjectSchema<{
780
+ readonly amount: v.StringSchema<undefined>;
781
+ readonly cap: v.StringSchema<undefined>;
782
+ readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
783
+ readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
784
+ readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
785
+ readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
786
+ }, undefined>, never>;
787
+ readonly inscriptionDetails: v.OptionalSchema<v.ObjectSchema<{
788
+ readonly contentType: v.StringSchema<undefined>;
789
+ readonly contentBase64: v.StringSchema<undefined>;
790
+ }, undefined>, never>;
791
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
792
+ }, undefined>;
793
+ type RunesEtchParams = v.InferOutput<typeof runesEtchParamsSchema>;
794
+ declare const runesEtchResultSchema: v.ObjectSchema<{
795
+ readonly orderId: v.StringSchema<undefined>;
796
+ readonly fundTransactionId: v.StringSchema<undefined>;
797
+ readonly fundingAddress: v.StringSchema<undefined>;
798
+ }, undefined>;
799
+ type RunesEtchResult = v.InferOutput<typeof runesEtchResultSchema>;
800
+ declare const runesEtchRequestMessageSchema: v.ObjectSchema<{
801
+ readonly method: v.LiteralSchema<"runes_etch", undefined>;
802
+ readonly params: v.ObjectSchema<{
803
+ readonly runeName: v.StringSchema<undefined>;
804
+ readonly divisibility: v.OptionalSchema<v.NumberSchema<undefined>, never>;
805
+ readonly symbol: v.OptionalSchema<v.StringSchema<undefined>, never>;
806
+ readonly premine: v.OptionalSchema<v.StringSchema<undefined>, never>;
807
+ readonly isMintable: v.BooleanSchema<undefined>;
808
+ readonly delegateInscriptionId: v.OptionalSchema<v.StringSchema<undefined>, never>;
809
+ readonly destinationAddress: v.StringSchema<undefined>;
810
+ readonly refundAddress: v.StringSchema<undefined>;
811
+ readonly feeRate: v.NumberSchema<undefined>;
812
+ readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
813
+ readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
814
+ readonly terms: v.OptionalSchema<v.ObjectSchema<{
815
+ readonly amount: v.StringSchema<undefined>;
816
+ readonly cap: v.StringSchema<undefined>;
817
+ readonly heightStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
818
+ readonly heightEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
819
+ readonly offsetStart: v.OptionalSchema<v.StringSchema<undefined>, never>;
820
+ readonly offsetEnd: v.OptionalSchema<v.StringSchema<undefined>, never>;
821
+ }, undefined>, never>;
822
+ readonly inscriptionDetails: v.OptionalSchema<v.ObjectSchema<{
823
+ readonly contentType: v.StringSchema<undefined>;
824
+ readonly contentBase64: v.StringSchema<undefined>;
825
+ }, undefined>, never>;
826
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
827
+ }, undefined>;
828
+ readonly id: v.StringSchema<undefined>;
829
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
830
+ }, undefined>;
831
+ type RunesEtchRequestMessage = v.InferOutput<typeof runesEtchRequestMessageSchema>;
832
+ type RunesEtch = MethodParamsAndResult<v.InferOutput<typeof runesEtchParamsSchema>, v.InferOutput<typeof runesEtchResultSchema>>;
833
+
834
+ declare const runesGetBalanceMethodName = "runes_getBalance";
835
+ declare const runesGetBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
836
+ type RunesGetBalanceParams = v.InferOutput<typeof runesGetBalanceParamsSchema>;
837
+ declare const runesGetBalanceResultSchema: v.ObjectSchema<{
838
+ readonly balances: v.ArraySchema<v.ObjectSchema<{
839
+ readonly runeName: v.StringSchema<undefined>;
840
+ readonly amount: v.StringSchema<undefined>;
841
+ readonly divisibility: v.NumberSchema<undefined>;
842
+ readonly symbol: v.StringSchema<undefined>;
843
+ readonly inscriptionId: v.NullishSchema<v.StringSchema<undefined>, never>;
844
+ }, undefined>, undefined>;
845
+ }, undefined>;
846
+ type RunesGetBalanceResult = v.InferOutput<typeof runesGetBalanceResultSchema>;
847
+ declare const runesGetBalanceRequestMessageSchema: v.ObjectSchema<{
848
+ readonly method: v.LiteralSchema<"runes_getBalance", undefined>;
849
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
850
+ readonly id: v.StringSchema<undefined>;
851
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
852
+ }, undefined>;
853
+ type runesGetBalanceRequestMessage = v.InferOutput<typeof runesGetBalanceRequestMessageSchema>;
854
+ type RunesGetBalance = MethodParamsAndResult<RunesGetBalanceParams, RunesGetBalanceResult>;
855
+
856
+ interface RunesGetOrderParams extends GetOrderRequest {
857
+ network?: BitcoinNetworkType;
858
+ }
859
+ type RunesGetOrder = MethodParamsAndResult<RunesGetOrderParams, GetOrderResponse>;
860
+
861
+ declare const runesMintMethodName = "runes_mint";
862
+ declare const runesMintParamsSchema: v.ObjectSchema<{
863
+ readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
864
+ readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
865
+ readonly destinationAddress: v.StringSchema<undefined>;
866
+ readonly feeRate: v.NumberSchema<undefined>;
867
+ readonly refundAddress: v.StringSchema<undefined>;
868
+ readonly repeats: v.NumberSchema<undefined>;
869
+ readonly runeName: v.StringSchema<undefined>;
870
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
871
+ }, undefined>;
872
+ type RunesMintParams = v.InferOutput<typeof runesMintParamsSchema>;
873
+ declare const runesMintResultSchema: v.ObjectSchema<{
874
+ readonly orderId: v.StringSchema<undefined>;
875
+ readonly fundTransactionId: v.StringSchema<undefined>;
876
+ readonly fundingAddress: v.StringSchema<undefined>;
877
+ }, undefined>;
878
+ type RunesMintResult = v.InferOutput<typeof runesMintResultSchema>;
879
+ declare const runesMintRequestMessageSchema: v.ObjectSchema<{
880
+ readonly method: v.LiteralSchema<"runes_mint", undefined>;
881
+ readonly params: v.ObjectSchema<{
882
+ readonly appServiceFee: v.OptionalSchema<v.NumberSchema<undefined>, never>;
883
+ readonly appServiceFeeAddress: v.OptionalSchema<v.StringSchema<undefined>, never>;
884
+ readonly destinationAddress: v.StringSchema<undefined>;
885
+ readonly feeRate: v.NumberSchema<undefined>;
886
+ readonly refundAddress: v.StringSchema<undefined>;
887
+ readonly repeats: v.NumberSchema<undefined>;
888
+ readonly runeName: v.StringSchema<undefined>;
889
+ readonly network: v.OptionalSchema<v.EnumSchema<typeof BitcoinNetworkType, undefined>, never>;
890
+ }, undefined>;
891
+ readonly id: v.StringSchema<undefined>;
892
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
893
+ }, undefined>;
894
+ type RunesMintRequestMessage = v.InferOutput<typeof runesMintRequestMessageSchema>;
895
+ type RunesMint = MethodParamsAndResult<v.InferOutput<typeof runesMintParamsSchema>, v.InferOutput<typeof runesMintResultSchema>>;
896
+
897
+ interface RunesRbfOrderParams extends RBFOrderRequest {
898
+ network?: BitcoinNetworkType;
899
+ }
900
+ interface RunesRbfOrderResult {
901
+ orderId: string;
902
+ fundRBFTransactionId: string;
903
+ fundingAddress: string;
904
+ }
905
+ type RunesRbfOrder = MethodParamsAndResult<RunesRbfOrderParams, RunesRbfOrderResult>;
906
+
907
+ declare const runesTransferMethodName = "runes_transfer";
908
+ declare const runesTransferParamsSchema: v.ObjectSchema<{
909
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
910
+ readonly runeName: v.StringSchema<undefined>;
911
+ readonly amount: v.StringSchema<undefined>;
912
+ readonly address: v.StringSchema<undefined>;
913
+ }, undefined>, undefined>;
914
+ }, undefined>;
915
+ type TransferRunesParams = v.InferOutput<typeof runesTransferParamsSchema>;
916
+ declare const runesTransferResultSchema: v.ObjectSchema<{
917
+ readonly txid: v.StringSchema<undefined>;
918
+ }, undefined>;
919
+ type RunesTransferResult = v.InferOutput<typeof runesTransferResultSchema>;
920
+ declare const runesTransferRequestMessageSchema: v.ObjectSchema<{
921
+ readonly method: v.LiteralSchema<"runes_transfer", undefined>;
922
+ readonly params: v.ObjectSchema<{
923
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
924
+ readonly runeName: v.StringSchema<undefined>;
925
+ readonly amount: v.StringSchema<undefined>;
926
+ readonly address: v.StringSchema<undefined>;
927
+ }, undefined>, undefined>;
928
+ }, undefined>;
929
+ readonly id: v.StringSchema<undefined>;
930
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
931
+ }, undefined>;
932
+ type RunesTransferRequestMessage = v.InferOutput<typeof runesTransferRequestMessageSchema>;
933
+ type RunesTransfer = MethodParamsAndResult<TransferRunesParams, RunesTransferResult>;
934
+
935
+ declare const stxCallContractMethodName = "stx_callContract";
936
+ declare const stxCallContractParamsSchema: v.ObjectSchema<{
937
+ /**
938
+ * The contract principal.
939
+ *
940
+ * E.g. `"SPKE...GD5C.my-contract"`
941
+ */
942
+ readonly contract: v.StringSchema<undefined>;
943
+ /**
944
+ * The name of the function to call.
945
+ *
946
+ * Note: spec changes ongoing,
947
+ * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
948
+ */
949
+ readonly functionName: v.StringSchema<undefined>;
950
+ /**
951
+ * The function's arguments. The arguments are expected to be hex-encoded
952
+ * strings of Clarity values.
953
+ *
954
+ * To convert Clarity values to their hex representation, the `cvToString`
955
+ * helper from the `@stacks/transactions` package may be helpful.
956
+ *
957
+ * ```js
958
+ * import { cvToString } from '@stacks/transactions';
959
+ *
960
+ * const functionArgs = [someClarityValue1, someClarityValue2];
961
+ * const hexArgs = functionArgs.map(cvToString);
962
+ * ```
963
+ */
964
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
965
+ }, undefined>;
966
+ type StxCallContractParams = v.InferOutput<typeof stxCallContractParamsSchema>;
967
+ declare const stxCallContractResultSchema: v.ObjectSchema<{
968
+ /**
969
+ * The ID of the transaction.
970
+ */
971
+ readonly txid: v.StringSchema<undefined>;
972
+ /**
973
+ * A Stacks transaction as a hex-encoded string.
974
+ */
975
+ readonly transaction: v.StringSchema<undefined>;
976
+ }, undefined>;
977
+ type StxCallContractResult = v.InferOutput<typeof stxCallContractResultSchema>;
978
+ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
979
+ readonly method: v.LiteralSchema<"stx_callContract", undefined>;
980
+ readonly params: v.ObjectSchema<{
981
+ /**
982
+ * The contract principal.
983
+ *
984
+ * E.g. `"SPKE...GD5C.my-contract"`
985
+ */
986
+ readonly contract: v.StringSchema<undefined>;
987
+ /**
988
+ * The name of the function to call.
989
+ *
990
+ * Note: spec changes ongoing,
991
+ * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
992
+ */
993
+ readonly functionName: v.StringSchema<undefined>;
994
+ /**
995
+ * The function's arguments. The arguments are expected to be hex-encoded
996
+ * strings of Clarity values.
997
+ *
998
+ * To convert Clarity values to their hex representation, the `cvToString`
999
+ * helper from the `@stacks/transactions` package may be helpful.
1000
+ *
1001
+ * ```js
1002
+ * import { cvToString } from '@stacks/transactions';
1003
+ *
1004
+ * const functionArgs = [someClarityValue1, someClarityValue2];
1005
+ * const hexArgs = functionArgs.map(cvToString);
1006
+ * ```
1007
+ */
1008
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1009
+ }, undefined>;
1010
+ readonly id: v.StringSchema<undefined>;
1011
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1012
+ }, undefined>;
1013
+ type StxCallContractRequestMessage = v.InferOutput<typeof stxCallContractRequestMessageSchema>;
1014
+ type StxCallContract = MethodParamsAndResult<StxCallContractParams, StxCallContractResult>;
1015
+
1016
+ declare const stxDeployContractMethodName = "stx_deployContract";
1017
+ declare const stxDeployContractParamsSchema: v.ObjectSchema<{
1018
+ /**
1019
+ * Name of the contract.
1020
+ */
1021
+ readonly name: v.StringSchema<undefined>;
1022
+ /**
1023
+ * The source code of the Clarity contract.
1024
+ */
1025
+ readonly clarityCode: v.StringSchema<undefined>;
1026
+ /**
1027
+ * The version of the Clarity contract.
1028
+ */
1029
+ readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
1030
+ }, undefined>;
1031
+ type StxDeployContractParams = v.InferOutput<typeof stxDeployContractParamsSchema>;
1032
+ declare const stxDeployContractResultSchema: v.ObjectSchema<{
1033
+ /**
1034
+ * The ID of the transaction.
1035
+ */
1036
+ readonly txid: v.StringSchema<undefined>;
1037
+ /**
1038
+ * A Stacks transaction as a hex-encoded string.
1039
+ */
1040
+ readonly transaction: v.StringSchema<undefined>;
1041
+ }, undefined>;
1042
+ type StxDeployContractResult = v.InferOutput<typeof stxDeployContractResultSchema>;
1043
+ declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
1044
+ readonly method: v.LiteralSchema<"stx_deployContract", undefined>;
1045
+ readonly params: v.ObjectSchema<{
1046
+ /**
1047
+ * Name of the contract.
1048
+ */
1049
+ readonly name: v.StringSchema<undefined>;
1050
+ /**
1051
+ * The source code of the Clarity contract.
1052
+ */
1053
+ readonly clarityCode: v.StringSchema<undefined>;
1054
+ /**
1055
+ * The version of the Clarity contract.
1056
+ */
1057
+ readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
1058
+ }, undefined>;
1059
+ readonly id: v.StringSchema<undefined>;
1060
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1061
+ }, undefined>;
1062
+ type StxDeployContractRequestMessage = v.InferOutput<typeof stxDeployContractRequestMessageSchema>;
1063
+ type StxDeployContract = MethodParamsAndResult<StxDeployContractParams, StxDeployContractResult>;
1064
+
1065
+ declare const stxGetAccountsMethodName = "stx_getAccounts";
1066
+ declare const stxGetAccountsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1067
+ type StxGetAccountsParams = v.InferOutput<typeof stxGetAccountsParamsSchema>;
1068
+ declare const stxGetAccountsResultSchema: v.ObjectSchema<{
1069
+ /**
1070
+ * The addresses generated for the given purposes.
1071
+ */
1072
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1073
+ readonly address: v.StringSchema<undefined>;
1074
+ readonly publicKey: v.StringSchema<undefined>;
1075
+ readonly gaiaHubUrl: v.StringSchema<undefined>;
1076
+ readonly gaiaAppKey: v.StringSchema<undefined>;
1077
+ }, undefined>, undefined>;
1078
+ }, undefined>;
1079
+ type StxGetAccountsResult = v.InferOutput<typeof stxGetAccountsResultSchema>;
1080
+ declare const stxGetAccountsRequestMessageSchema: v.ObjectSchema<{
1081
+ readonly method: v.LiteralSchema<"stx_getAccounts", undefined>;
1082
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1083
+ readonly id: v.StringSchema<undefined>;
1084
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1085
+ }, undefined>;
1086
+ type StxGetAccountsRequestMessage = v.InferOutput<typeof stxGetAccountsRequestMessageSchema>;
1087
+ type StxGetAccounts = MethodParamsAndResult<StxGetAccountsParams, StxGetAccountsResult>;
1088
+
1089
+ declare const stxGetAddressesMethodName = "stx_getAddresses";
1090
+ declare const stxGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
1091
+ /**
1092
+ * A message to be displayed to the user in the request prompt.
1093
+ */
1094
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, never>;
1095
+ }, undefined>, never>;
1096
+ type StxGetAddressesParams = v.InferOutput<typeof stxGetAddressesParamsSchema>;
1097
+ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
1098
+ /**
1099
+ * The addresses generated for the given purposes.
1100
+ */
1101
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1102
+ readonly address: v.StringSchema<undefined>;
1103
+ readonly publicKey: v.StringSchema<undefined>;
1104
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1105
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1106
+ }, undefined>, undefined>;
1107
+ }, undefined>;
1108
+ type StxGetAddressesResult = v.InferOutput<typeof stxGetAddressesResultSchema>;
1109
+ declare const stxGetAddressesRequestMessageSchema: v.ObjectSchema<{
1110
+ readonly method: v.LiteralSchema<"stx_getAddresses", undefined>;
1111
+ readonly params: v.NullishSchema<v.ObjectSchema<{
1112
+ /**
1113
+ * A message to be displayed to the user in the request prompt.
1114
+ */
1115
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, never>;
1116
+ }, undefined>, never>;
1117
+ readonly id: v.StringSchema<undefined>;
1118
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1119
+ }, undefined>;
1120
+ type StxGetAddressesRequestMessage = v.InferOutput<typeof stxGetAddressesRequestMessageSchema>;
1121
+ type StxGetAddresses = MethodParamsAndResult<v.InferOutput<typeof stxGetAddressesParamsSchema>, v.InferOutput<typeof stxGetAddressesResultSchema>>;
1122
+
1123
+ declare const stxSignMessageMethodName = "stx_signMessage";
1124
+ declare const stxSignMessageParamsSchema: v.ObjectSchema<{
1125
+ /**
1126
+ * The message to sign.
1127
+ */
1128
+ readonly message: v.StringSchema<undefined>;
1129
+ /**
1130
+ * The public key to sign the message with.
1131
+ */
1132
+ readonly publicKey: v.StringSchema<undefined>;
1133
+ /**
1134
+ * The format version of the parameter.
1135
+ */
1136
+ readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
1137
+ }, undefined>;
1138
+ type StxSignMessageParams = v.InferOutput<typeof stxSignMessageParamsSchema>;
1139
+ declare const stxSignMessageResultSchema: v.ObjectSchema<{
1140
+ /**
1141
+ * The signature of the message.
1142
+ */
1143
+ readonly signature: v.StringSchema<undefined>;
1144
+ /**
1145
+ * The public key used to sign the message.
1146
+ */
1147
+ readonly publicKey: v.StringSchema<undefined>;
1148
+ }, undefined>;
1149
+ type StxSignMessageResult = v.InferOutput<typeof stxSignMessageResultSchema>;
1150
+ declare const stxSignMessageRequestMessageSchema: v.ObjectSchema<{
1151
+ readonly method: v.LiteralSchema<"stx_signMessage", undefined>;
1152
+ readonly params: v.ObjectSchema<{
1153
+ /**
1154
+ * The message to sign.
1155
+ */
1156
+ readonly message: v.StringSchema<undefined>;
1157
+ /**
1158
+ * The public key to sign the message with.
1159
+ */
1160
+ readonly publicKey: v.StringSchema<undefined>;
1161
+ /**
1162
+ * The format version of the parameter.
1163
+ */
1164
+ readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
1165
+ }, undefined>;
1166
+ readonly id: v.StringSchema<undefined>;
1167
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1168
+ }, undefined>;
1169
+ type StxSignMessageRequestMessage = v.InferOutput<typeof stxSignMessageRequestMessageSchema>;
1170
+ type StxSignMessage = MethodParamsAndResult<StxSignMessageParams, StxSignMessageResult>;
1171
+
1172
+ declare const stxSignStructuredMessageMethodName = "stx_signStructuredMessage";
1173
+ declare const stxSignStructuredMessageParamsSchema: v.ObjectSchema<{
1174
+ /**
1175
+ * The domain to be signed.
1176
+ */
1177
+ readonly domain: v.StringSchema<undefined>;
1178
+ /**
1179
+ * Message payload to be signed.
1180
+ */
1181
+ readonly message: v.StringSchema<undefined>;
1182
+ /**
1183
+ * The format version of the parameter.
1184
+ */
1185
+ readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
1186
+ /**
1187
+ * The public key to sign the message with.
1188
+ */
1189
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, never>;
1190
+ }, undefined>;
1191
+ type StxSignStructuredMessageParams = v.InferOutput<typeof stxSignStructuredMessageParamsSchema>;
1192
+ declare const stxSignStructuredMessageResultSchema: v.ObjectSchema<{
1193
+ /**
1194
+ * Signature of the message.
1195
+ */
1196
+ readonly signature: v.StringSchema<undefined>;
1197
+ /**
1198
+ * Public key as hex-encoded string.
1199
+ */
1200
+ readonly publicKey: v.StringSchema<undefined>;
1201
+ }, undefined>;
1202
+ type StxSignStructuredMessageResult = v.InferOutput<typeof stxSignStructuredMessageResultSchema>;
1203
+ declare const stxSignStructuredMessageRequestMessageSchema: v.ObjectSchema<{
1204
+ readonly method: v.LiteralSchema<"stx_signStructuredMessage", undefined>;
1205
+ readonly params: v.ObjectSchema<{
1206
+ /**
1207
+ * The domain to be signed.
1208
+ */
1209
+ readonly domain: v.StringSchema<undefined>;
1210
+ /**
1211
+ * Message payload to be signed.
1212
+ */
1213
+ readonly message: v.StringSchema<undefined>;
1214
+ /**
1215
+ * The format version of the parameter.
1216
+ */
1217
+ readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
1218
+ /**
1219
+ * The public key to sign the message with.
1220
+ */
1221
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, never>;
1222
+ }, undefined>;
1223
+ readonly id: v.StringSchema<undefined>;
1224
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1225
+ }, undefined>;
1226
+ type StxSignStructuredMessageRequestMessage = v.InferOutput<typeof stxSignStructuredMessageRequestMessageSchema>;
1227
+ type StxSignStructuredMessage = MethodParamsAndResult<StxSignStructuredMessageParams, StxSignStructuredMessageResult>;
1228
+
1229
+ declare const stxSignTransactionMethodName = "stx_signTransaction";
1230
+ declare const stxSignTransactionParamsSchema: v.ObjectSchema<{
1231
+ /**
1232
+ * The transaction to sign as a hex-encoded string.
1233
+ */
1234
+ readonly transaction: v.StringSchema<undefined>;
1235
+ /**
1236
+ * The public key to sign the transaction with. The wallet may use any key
1237
+ * when not provided.
1238
+ */
1239
+ readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
1240
+ /**
1241
+ * Whether to broadcast the transaction after signing. Defaults to `true`.
1242
+ */
1243
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1244
+ }, undefined>;
1245
+ type StxSignTransactionParams = v.InferOutput<typeof stxSignTransactionParamsSchema>;
1246
+ declare const stxSignTransactionResultSchema: v.ObjectSchema<{
1247
+ /**
1248
+ * The signed transaction as a hex-encoded string.
1249
+ */
1250
+ readonly transaction: v.StringSchema<undefined>;
1251
+ }, undefined>;
1252
+ type StxSignTransactionResult = v.InferOutput<typeof stxSignTransactionResultSchema>;
1253
+ declare const stxSignTransactionRequestMessageSchema: v.ObjectSchema<{
1254
+ readonly method: v.LiteralSchema<"stx_signTransaction", undefined>;
1255
+ readonly params: v.ObjectSchema<{
1256
+ /**
1257
+ * The transaction to sign as a hex-encoded string.
1258
+ */
1259
+ readonly transaction: v.StringSchema<undefined>;
1260
+ /**
1261
+ * The public key to sign the transaction with. The wallet may use any key
1262
+ * when not provided.
1263
+ */
1264
+ readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
1265
+ /**
1266
+ * Whether to broadcast the transaction after signing. Defaults to `true`.
1267
+ */
1268
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1269
+ }, undefined>;
1270
+ readonly id: v.StringSchema<undefined>;
1271
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1272
+ }, undefined>;
1273
+ type StxSignTransactionRequestMessage = v.InferOutput<typeof stxSignTransactionRequestMessageSchema>;
1274
+ type StxSignTransaction = MethodParamsAndResult<StxSignTransactionParams, StxSignTransactionResult>;
1275
+
1276
+ declare const stxTransferStxMethodName = "stx_transferStx";
1277
+ declare const stxTransferStxParamsSchema: v.ObjectSchema<{
1278
+ /**
1279
+ * Amount of STX tokens to transfer in microstacks as a string. Anything
1280
+ * parseable by `BigInt` is acceptable.
1281
+ *
1282
+ * Example,
1283
+ *
1284
+ * ```js
1285
+ * const amount1 = 1234;
1286
+ * const amount2 = 1234n;
1287
+ * const amount3 = '1234';
1288
+ * ```
1289
+ */
1290
+ readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1291
+ /**
1292
+ * The recipeint's principal.
1293
+ */
1294
+ readonly recipient: v.StringSchema<undefined>;
1295
+ /**
1296
+ * A string representing the memo.
1297
+ */
1298
+ readonly memo: v.OptionalSchema<v.StringSchema<undefined>, never>;
1299
+ /**
1300
+ * Version of parameter format.
1301
+ */
1302
+ readonly version: v.OptionalSchema<v.StringSchema<undefined>, never>;
1303
+ /**
1304
+ * The mode of the post conditions.
1305
+ */
1306
+ readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, never>;
1307
+ /**
1308
+ * A hex-encoded string representing the post conditions.
1309
+ *
1310
+ * A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
1311
+ *
1312
+ * ```js
1313
+ * import { serializePostCondition } from '@stacks/transactions';
1314
+ *
1315
+ * const postCondition = somePostCondition;
1316
+ * const hexPostCondition = serializePostCondition(postCondition).toString('hex');
1317
+ * ```
1318
+ */
1319
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1320
+ /**
1321
+ * The public key to sign the transaction with. The wallet may use any key
1322
+ * when not provided.
1323
+ */
1324
+ readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
1325
+ }, undefined>;
1326
+ type StxTransferStxParams = v.InferOutput<typeof stxTransferStxParamsSchema>;
1327
+ declare const stxTransferStxResultSchema: v.ObjectSchema<{
1328
+ /**
1329
+ * The ID of the transaction.
1330
+ */
1331
+ readonly txid: v.StringSchema<undefined>;
1332
+ /**
1333
+ * A Stacks transaction as a hex-encoded string.
1334
+ */
1335
+ readonly transaction: v.StringSchema<undefined>;
1336
+ }, undefined>;
1337
+ type StxTransferStxResult = v.InferOutput<typeof stxTransferStxResultSchema>;
1338
+ declare const stxTransferStxRequestMessageSchema: v.ObjectSchema<{
1339
+ readonly method: v.LiteralSchema<"stx_transferStx", undefined>;
1340
+ readonly params: v.ObjectSchema<{
1341
+ /**
1342
+ * Amount of STX tokens to transfer in microstacks as a string. Anything
1343
+ * parseable by `BigInt` is acceptable.
1344
+ *
1345
+ * Example,
1346
+ *
1347
+ * ```js
1348
+ * const amount1 = 1234;
1349
+ * const amount2 = 1234n;
1350
+ * const amount3 = '1234';
1351
+ * ```
1352
+ */
1353
+ readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1354
+ /**
1355
+ * The recipeint's principal.
1356
+ */
1357
+ readonly recipient: v.StringSchema<undefined>;
1358
+ /**
1359
+ * A string representing the memo.
1360
+ */
1361
+ readonly memo: v.OptionalSchema<v.StringSchema<undefined>, never>;
1362
+ /**
1363
+ * Version of parameter format.
1364
+ */
1365
+ readonly version: v.OptionalSchema<v.StringSchema<undefined>, never>;
1366
+ /**
1367
+ * The mode of the post conditions.
1368
+ */
1369
+ readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, never>;
1370
+ /**
1371
+ * A hex-encoded string representing the post conditions.
1372
+ *
1373
+ * A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
1374
+ *
1375
+ * ```js
1376
+ * import { serializePostCondition } from '@stacks/transactions';
1377
+ *
1378
+ * const postCondition = somePostCondition;
1379
+ * const hexPostCondition = serializePostCondition(postCondition).toString('hex');
1380
+ * ```
1381
+ */
1382
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1383
+ /**
1384
+ * The public key to sign the transaction with. The wallet may use any key
1385
+ * when not provided.
1386
+ */
1387
+ readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
1388
+ }, undefined>;
1389
+ readonly id: v.StringSchema<undefined>;
1390
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1391
+ }, undefined>;
1392
+ type StxTransferStxRequestMessage = v.InferOutput<typeof stxTransferStxRequestMessageSchema>;
1393
+ type StxTransferStx = MethodParamsAndResult<StxTransferStxParams, StxTransferStxResult>;
1394
+
1395
+ /**
1396
+ * Permissions with the clientId field omitted and optional actions. Used for
1397
+ * permission requests, since the wallet performs authentication based on the
1398
+ * client's tab origin and should not rely on the client authenticating
1399
+ * themselves.
1400
+ */
1401
+ declare const permissionTemplate: v.VariantSchema<"type", [v.ObjectSchema<{
1402
+ readonly type: v.LiteralSchema<"account", undefined>;
1403
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1404
+ readonly actions: v.ObjectSchema<{
1405
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1406
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1407
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1408
+ }, undefined>;
1409
+ }, undefined>, v.ObjectSchema<{
1410
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1411
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1412
+ readonly actions: v.ObjectSchema<{
1413
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1414
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1415
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1416
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1417
+ }, undefined>;
1418
+ }, undefined>], undefined>;
1419
+ type PermissionWithoutClientId = v.InferOutput<typeof permissionTemplate>;
1420
+ declare const requestPermissionsMethodName = "wallet_requestPermissions";
1421
+ declare const requestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1422
+ readonly type: v.LiteralSchema<"account", undefined>;
1423
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1424
+ readonly actions: v.ObjectSchema<{
1425
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1426
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1427
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1428
+ }, undefined>;
1429
+ }, undefined>, v.ObjectSchema<{
1430
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1431
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1432
+ readonly actions: v.ObjectSchema<{
1433
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1434
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1435
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1436
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1437
+ }, undefined>;
1438
+ }, undefined>], undefined>, undefined>, never>;
1439
+ type RequestPermissionsParams = v.InferOutput<typeof requestPermissionsParamsSchema>;
1440
+ declare const requestPermissionsResultSchema: v.LiteralSchema<true, undefined>;
1441
+ type RequestPermissionsResult = v.InferOutput<typeof requestPermissionsResultSchema>;
1442
+ declare const requestPermissionsRequestMessageSchema: v.ObjectSchema<{
1443
+ readonly method: v.LiteralSchema<"wallet_requestPermissions", undefined>;
1444
+ readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1445
+ readonly type: v.LiteralSchema<"account", undefined>;
1446
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1447
+ readonly actions: v.ObjectSchema<{
1448
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1449
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1450
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1451
+ }, undefined>;
1452
+ }, undefined>, v.ObjectSchema<{
1453
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1454
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1455
+ readonly actions: v.ObjectSchema<{
1456
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1457
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1458
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1459
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1460
+ }, undefined>;
1461
+ }, undefined>], undefined>, undefined>, never>;
1462
+ readonly id: v.StringSchema<undefined>;
1463
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1464
+ }, undefined>;
1465
+ type RequestPermissionsRequestMessage = v.InferOutput<typeof requestPermissionsRequestMessageSchema>;
1466
+ type RequestPermissions = MethodParamsAndResult<RequestPermissionsParams, RequestPermissionsResult>;
1467
+ declare const renouncePermissionsMethodName = "wallet_renouncePermissions";
1468
+ declare const renouncePermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1469
+ type RenouncePermissionsParams = v.InferOutput<typeof renouncePermissionsParamsSchema>;
1470
+ declare const renouncePermissionsResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1471
+ type RenouncePermissionsResult = v.InferOutput<typeof renouncePermissionsResultSchema>;
1472
+ declare const renouncePermissionsRequestMessageSchema: v.ObjectSchema<{
1473
+ readonly method: v.LiteralSchema<"wallet_renouncePermissions", undefined>;
1474
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1475
+ readonly id: v.StringSchema<undefined>;
1476
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1477
+ }, undefined>;
1478
+ type RenouncePermissionsRequestMessage = v.InferOutput<typeof renouncePermissionsRequestMessageSchema>;
1479
+ type RenouncePermissions = MethodParamsAndResult<RenouncePermissionsParams, RenouncePermissionsResult>;
1480
+ declare const disconnectMethodName = "wallet_disconnect";
1481
+ declare const disconnectParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1482
+ type DisconnectParams = v.InferOutput<typeof disconnectParamsSchema>;
1483
+ declare const disconnectResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1484
+ type DisconnectResult = v.InferOutput<typeof disconnectResultSchema>;
1485
+ declare const disconnectRequestMessageSchema: v.ObjectSchema<{
1486
+ readonly method: v.LiteralSchema<"wallet_disconnect", undefined>;
1487
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1488
+ readonly id: v.StringSchema<undefined>;
1489
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1490
+ }, undefined>;
1491
+ type DisconnectRequestMessage = v.InferOutput<typeof disconnectRequestMessageSchema>;
1492
+ type Disconnect = MethodParamsAndResult<DisconnectParams, DisconnectResult>;
1493
+ declare const getWalletTypeMethodName = "wallet_getWalletType";
1494
+ declare const getWalletTypeParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1495
+ type GetWalletTypeParams = v.InferOutput<typeof getWalletTypeParamsSchema>;
1496
+ declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1497
+ type GetWalletTypeResult = v.InferOutput<typeof getWalletTypeResultSchema>;
1498
+ declare const getWalletTypeRequestMessageSchema: v.ObjectSchema<{
1499
+ readonly method: v.LiteralSchema<"wallet_getWalletType", undefined>;
1500
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1501
+ readonly id: v.StringSchema<undefined>;
1502
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1503
+ }, undefined>;
1504
+ type GetWalletTypeRequestMessage = v.InferOutput<typeof getWalletTypeRequestMessageSchema>;
1505
+ type GetWalletType = MethodParamsAndResult<GetWalletTypeParams, GetWalletTypeResult>;
1506
+ declare const getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
1507
+ declare const getCurrentPermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1508
+ type GetCurrentPermissionsParams = v.InferOutput<typeof getCurrentPermissionsParamsSchema>;
1509
+ declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1510
+ readonly type: v.LiteralSchema<"account", undefined>;
1511
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1512
+ readonly clientId: v.StringSchema<undefined>;
1513
+ readonly actions: v.ObjectSchema<{
1514
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1515
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1516
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1517
+ }, undefined>;
1518
+ }, undefined>, v.ObjectSchema<{
1519
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1520
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1521
+ readonly clientId: v.StringSchema<undefined>;
1522
+ readonly actions: v.ObjectSchema<{
1523
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1524
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1525
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1526
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1527
+ }, undefined>;
1528
+ }, undefined>], undefined>, undefined>;
1529
+ type GetCurrentPermissionsResult = v.InferOutput<typeof getCurrentPermissionsResultSchema>;
1530
+ declare const getCurrentPermissionsRequestMessageSchema: v.ObjectSchema<{
1531
+ readonly method: v.LiteralSchema<"wallet_getCurrentPermissions", undefined>;
1532
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1533
+ readonly id: v.StringSchema<undefined>;
1534
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1535
+ }, undefined>;
1536
+ type GetCurrentPermissionsRequestMessage = v.InferOutput<typeof getCurrentPermissionsRequestMessageSchema>;
1537
+ type GetCurrentPermissions = MethodParamsAndResult<GetCurrentPermissionsParams, GetCurrentPermissionsResult>;
1538
+ declare const getAccountMethodName = "wallet_getAccount";
1539
+ declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1540
+ type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
1541
+ declare const getAccountResultSchema: v.ObjectSchema<{
1542
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
1543
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1544
+ readonly address: v.StringSchema<undefined>;
1545
+ readonly publicKey: v.StringSchema<undefined>;
1546
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1547
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1548
+ }, undefined>, undefined>;
1549
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1550
+ }, undefined>;
1551
+ type GetAccountResult = v.InferOutput<typeof getAccountResultSchema>;
1552
+ declare const getAccountRequestMessageSchema: v.ObjectSchema<{
1553
+ readonly method: v.LiteralSchema<"wallet_getAccount", undefined>;
1554
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1555
+ readonly id: v.StringSchema<undefined>;
1556
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1557
+ }, undefined>;
1558
+ type GetAccountRequestMessage = v.InferOutput<typeof getAccountRequestMessageSchema>;
1559
+ type GetAccount = MethodParamsAndResult<GetAccountParams, GetAccountResult>;
1560
+ declare const connectMethodName = "wallet_connect";
1561
+ declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
1562
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1563
+ readonly type: v.LiteralSchema<"account", undefined>;
1564
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1565
+ readonly actions: v.ObjectSchema<{
1566
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1567
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1568
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1569
+ }, undefined>;
1570
+ }, undefined>, v.ObjectSchema<{
1571
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1572
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1573
+ readonly actions: v.ObjectSchema<{
1574
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1575
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1576
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1577
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1578
+ }, undefined>;
1579
+ }, undefined>], undefined>, undefined>, never>;
1580
+ }, undefined>, never>;
1581
+ type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
1582
+ declare const connectResultSchema: v.ObjectSchema<{
1583
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
1584
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1585
+ readonly address: v.StringSchema<undefined>;
1586
+ readonly publicKey: v.StringSchema<undefined>;
1587
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1588
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1589
+ }, undefined>, undefined>;
1590
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1591
+ }, undefined>;
1592
+ type ConnectResult = v.InferOutput<typeof connectResultSchema>;
1593
+ declare const connectRequestMessageSchema: v.ObjectSchema<{
1594
+ readonly method: v.LiteralSchema<"wallet_connect", undefined>;
1595
+ readonly params: v.NullishSchema<v.ObjectSchema<{
1596
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1597
+ readonly type: v.LiteralSchema<"account", undefined>;
1598
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1599
+ readonly actions: v.ObjectSchema<{
1600
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1601
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1602
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1603
+ }, undefined>;
1604
+ }, undefined>, v.ObjectSchema<{
1605
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1606
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1607
+ readonly actions: v.ObjectSchema<{
1608
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1609
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1610
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1611
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1612
+ }, undefined>;
1613
+ }, undefined>], undefined>, undefined>, never>;
1614
+ }, undefined>, never>;
1615
+ readonly id: v.StringSchema<undefined>;
1616
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1617
+ }, undefined>;
1618
+ type ConnectRequestMessage = v.InferOutput<typeof connectRequestMessageSchema>;
1619
+ type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
1620
+
1621
+ declare const walletTypes: readonly ["software", "ledger"];
1622
+ declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1623
+ type WalletType = v.InferOutput<typeof walletTypeSchema>;
1624
+
1625
+ interface StxRequests {
1626
+ stx_callContract: StxCallContract;
1627
+ stx_deployContract: StxDeployContract;
1628
+ stx_getAccounts: StxGetAccounts;
1629
+ stx_getAddresses: StxGetAddresses;
1630
+ stx_signMessage: StxSignMessage;
1631
+ stx_signStructuredMessage: StxSignStructuredMessage;
1632
+ stx_signTransaction: StxSignTransaction;
1633
+ stx_transferStx: StxTransferStx;
1634
+ }
1635
+ type StxRequestMethod = keyof StxRequests;
1636
+ interface BtcRequests {
1637
+ getInfo: GetInfo;
1638
+ getAddresses: GetAddresses;
1639
+ getAccounts: GetAccounts;
1640
+ getBalance: GetBalance;
1641
+ signMessage: SignMessage;
1642
+ sendTransfer: SendTransfer;
1643
+ signPsbt: SignPsbt;
1644
+ }
1645
+ type BtcRequestMethod = keyof BtcRequests;
1646
+ interface RunesRequests {
1647
+ runes_estimateEtch: RunesEstimateEtch;
1648
+ runes_estimateMint: RunesEstimateMint;
1649
+ runes_estimateRbfOrder: RunesEstimateRbfOrder;
1650
+ runes_etch: RunesEtch;
1651
+ runes_getBalance: RunesGetBalance;
1652
+ runes_getOrder: RunesGetOrder;
1653
+ runes_mint: RunesMint;
1654
+ runes_rbfOrder: RunesRbfOrder;
1655
+ runes_transfer: RunesTransfer;
1656
+ }
1657
+ type RunesRequestMethod = keyof RunesRequests;
1658
+ interface OrdinalsRequests {
1659
+ ord_getInscriptions: GetInscriptions;
1660
+ ord_sendInscriptions: SendInscriptions;
1661
+ }
1662
+ type OrdinalsRequestMethod = keyof OrdinalsRequests;
1663
+ interface WalletRequests {
1664
+ wallet_requestPermissions: RequestPermissions;
1665
+ wallet_renouncePermissions: RenouncePermissions;
1666
+ wallet_getWalletType: GetWalletType;
1667
+ wallet_getCurrentPermissions: GetCurrentPermissions;
1668
+ }
1669
+ type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & OrdinalsRequests;
1670
+ type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
1671
+ type Params<Method> = Method extends keyof Requests ? Requests[Method]['params'] : never;
1672
+
1673
+ declare const request: <Method extends keyof BtcRequests | keyof StxRequests | keyof RunesRequests | keyof WalletRequests | keyof OrdinalsRequests>(method: Method, params: Params<Method>, providerId?: string) => Promise<RpcResult<Method>>;
1674
+ declare const addListener: (event: Parameters<AddListener>[0], cb: Parameters<AddListener>[1], providerId?: string) => ReturnType<AddListener>;
1675
+
1676
+ declare abstract class SatsConnectAdapter {
1677
+ abstract readonly id: string;
1678
+ private mintRunes;
1679
+ private etchRunes;
1680
+ private estimateMint;
1681
+ private estimateEtch;
1682
+ private getOrder;
1683
+ private estimateRbfOrder;
1684
+ private rbfOrder;
1685
+ request<Method extends keyof Requests>(method: Method, params: Params<Method>): Promise<RpcResult<Method>>;
1686
+ abstract addListener: AddListener;
1687
+ protected abstract requestInternal<Method extends keyof Requests>(method: Method, params: Params<Method>): Promise<RpcResult<Method>>;
1688
+ }
1689
+
1690
+ declare class BaseAdapter extends SatsConnectAdapter {
1691
+ id: string;
1692
+ constructor(providerId: string);
1693
+ requestInternal: <Method extends keyof BtcRequests | keyof StxRequests | keyof RunesRequests | keyof WalletRequests | keyof OrdinalsRequests>(method: Method, params: Params<Method>) => Promise<RpcResult<Method>>;
1694
+ addListener: AddListener;
1695
+ }
1696
+
1697
+ declare const DefaultAdaptersInfo: Record<string, Provider>;
1698
+ declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
1699
+
1700
+ export { type AccountChangeEvent, type AddListener, type Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type Capability, type Connect, type ConnectParams, type ConnectRequestMessage, type ConnectResult, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type Disconnect, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type GetAccount, type GetAccountParams, type GetAccountRequestMessage, type GetAccountResult, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetBalanceParams, type GetBalanceRequestMessage, type GetBalanceResult, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetCurrentPermissions, type GetCurrentPermissionsParams, type GetCurrentPermissionsRequestMessage, type GetCurrentPermissionsResult, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetInscriptionsParams, type GetInscriptionsRequestMessage, type GetInscriptionsResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, type PermissionWithoutClientId, type Provider, type PsbtPayload, type Recipient, type RenouncePermissions, type RenouncePermissionsParams, type RenouncePermissionsRequestMessage, type RenouncePermissionsResult, type RequestOptions, type RequestPayload, type RequestPermissions, type RequestPermissionsParams, type RequestPermissionsRequestMessage, type RequestPermissionsResult, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcErrorResponseMessage, type RpcId, RpcIdSchema, type RpcRequest, type RpcRequestMessage, type RpcResponse, type RpcResponseMessage, type RpcResult, type RpcSuccessResponse, type RpcSuccessResponseMessage, type RunesEstimateEtch, type RunesEstimateEtchParams, type RunesEstimateEtchResult, type RunesEstimateMint, type RunesEstimateRbfOrder, type RunesEtch, type RunesEtchParams, type RunesEtchRequestMessage, type RunesEtchResult, type RunesGetBalance, type RunesGetBalanceParams, type RunesGetBalanceResult, type RunesGetOrder, type RunesMint, type RunesMintParams, type RunesMintRequestMessage, type RunesMintResult, type RunesRbfOrder, type RunesRequestMethod, type RunesRequests, type RunesTransfer, type RunesTransferRequestMessage, type RunesTransferResult, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendInscriptionsParams, type SendInscriptionsRequestMessage, type SendInscriptionsResult, type SendTransfer, type SendTransferParams, type SendTransferRequestMessage, type SendTransferResult, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtRequestMessage, type SignPsbtResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, type StxCallContract, type StxCallContractParams, type StxCallContractRequestMessage, type StxCallContractResult, type StxDeployContract, type StxDeployContractParams, type StxDeployContractRequestMessage, type StxDeployContractResult, type StxGetAccounts, type StxGetAccountsParams, type StxGetAccountsRequestMessage, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignMessage, type StxSignMessageParams, type StxSignMessageRequestMessage, type StxSignMessageResult, type StxSignStructuredMessage, type StxSignStructuredMessageParams, type StxSignStructuredMessageRequestMessage, type StxSignStructuredMessageResult, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxTransferStx, type StxTransferStxParams, type StxTransferStxRequestMessage, type StxTransferStxResult, type SupportedWallet, type TransferRunesParams, type WalletEvent, type WalletRequests, type WalletType, accountChangeEventName, accountChangeSchema, addListener, addressSchema, connectMethodName, connectParamsSchema, connectRequestMessageSchema, connectResultSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectMethodName, disconnectParamsSchema, disconnectRequestMessageSchema, disconnectResultSchema, disconnectSchema, getAccountMethodName, getAccountParamsSchema, getAccountRequestMessageSchema, getAccountResultSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getCurrentPermissionsMethodName, getCurrentPermissionsParamsSchema, getCurrentPermissionsRequestMessageSchema, getCurrentPermissionsResultSchema, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsRequestMessageSchema, getInscriptionsResultSchema, getProviderById, getProviderOrThrow, getProviders, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permissionTemplate, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, type runesEstimateMintParams, type runesEstimateMintResult, runesEtchMethodName, runesEtchParamsSchema, runesEtchRequestMessageSchema, runesEtchResultSchema, runesGetBalanceMethodName, runesGetBalanceParamsSchema, type runesGetBalanceRequestMessage, runesGetBalanceRequestMessageSchema, runesGetBalanceResultSchema, runesMintMethodName, runesMintParamsSchema, runesMintRequestMessageSchema, runesMintResultSchema, runesTransferMethodName, runesTransferParamsSchema, runesTransferRequestMessageSchema, runesTransferResultSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsRequestMessageSchema, sendInscriptionsResultSchema, sendTransferMethodName, sendTransferParamsSchema, sendTransferRequestMessageSchema, sendTransferResultSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signPsbtMethodName, signPsbtParamsSchema, signPsbtRequestMessageSchema, signPsbtResultSchema, signTransaction, stxCallContractMethodName, stxCallContractParamsSchema, stxCallContractRequestMessageSchema, stxCallContractResultSchema, stxDeployContractMethodName, stxDeployContractParamsSchema, stxDeployContractRequestMessageSchema, stxDeployContractResultSchema, stxGetAccountsMethodName, stxGetAccountsParamsSchema, stxGetAccountsRequestMessageSchema, stxGetAccountsResultSchema, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignMessageMethodName, stxSignMessageParamsSchema, stxSignMessageRequestMessageSchema, stxSignMessageResultSchema, stxSignStructuredMessageMethodName, stxSignStructuredMessageParamsSchema, stxSignStructuredMessageRequestMessageSchema, stxSignStructuredMessageResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, stxTransferStxMethodName, stxTransferStxParamsSchema, stxTransferStxRequestMessageSchema, stxTransferStxResultSchema, walletEventSchema, walletTypeSchema, walletTypes };