@sats-connect/core 0.4.0-e7d3e8d → 0.4.0-e8e6a66

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,1651 @@
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$1 {
46
+ address: string;
47
+ amountSats: bigint;
48
+ }
49
+ type SerializedRecipient = Omit<Recipient$1, 'amountSats'> & {
50
+ amountSats: string;
51
+ };
52
+ interface SendBtcTransactionPayload extends RequestPayload {
53
+ recipients: Recipient$1[];
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.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, never>;
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$1 = v.InferOutput<typeof addressSchema>;
317
+ interface GetAddressResponse {
318
+ addresses: Address$1[];
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
+ /**
506
+ * Whether to broadcast the transaction after signing.
507
+ **/
508
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
509
+ }, undefined>;
510
+ type SignPsbtParams = v.InferOutput<typeof signPsbtParamsSchema>;
511
+ declare const signPsbtResultSchema: v.ObjectSchema<{
512
+ /**
513
+ * The base64 encoded PSBT after signing.
514
+ */
515
+ readonly psbt: v.StringSchema<undefined>;
516
+ /**
517
+ * The transaction id as a hex-encoded string.
518
+ * This is only returned if the transaction was broadcast.
519
+ **/
520
+ readonly txid: v.OptionalSchema<v.StringSchema<undefined>, never>;
521
+ }, undefined>;
522
+ type SignPsbtResult = v.InferOutput<typeof signPsbtResultSchema>;
523
+ declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
524
+ readonly method: v.LiteralSchema<"signPsbt", undefined>;
525
+ readonly params: v.ObjectSchema<{
526
+ /**
527
+ * The base64 encoded PSBT to sign.
528
+ */
529
+ readonly psbt: v.StringSchema<undefined>;
530
+ /**
531
+ * The inputs to sign.
532
+ * The key is the address and the value is an array of indexes of the inputs to sign.
533
+ */
534
+ readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
535
+ /**
536
+ * Whether to broadcast the transaction after signing.
537
+ **/
538
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
539
+ }, undefined>;
540
+ readonly id: v.StringSchema<undefined>;
541
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
542
+ }, undefined>;
543
+ type SignPsbtRequestMessage = v.InferOutput<typeof signPsbtRequestMessageSchema>;
544
+ type SignPsbt = MethodParamsAndResult<SignPsbtParams, SignPsbtResult>;
545
+ declare const getAccountsMethodName = "getAccounts";
546
+ declare const getAccountsParamsSchema: v.ObjectSchema<{
547
+ /**
548
+ * The purposes for which to generate addresses. See
549
+ * {@linkcode AddressPurpose} for available purposes.
550
+ */
551
+ readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
552
+ /**
553
+ * A message to be displayed to the user in the request prompt.
554
+ */
555
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, never>;
556
+ }, undefined>;
557
+ type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
558
+ declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
559
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
560
+ readonly address: v.StringSchema<undefined>;
561
+ readonly publicKey: v.StringSchema<undefined>;
562
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>; /**
563
+ * [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
564
+ */
565
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
566
+ }, undefined>, undefined>;
567
+ type GetAccountsResult = v.InferOutput<typeof getAccountsResultSchema>;
568
+ declare const getAccountsRequestMessageSchema: v.ObjectSchema<{
569
+ readonly method: v.LiteralSchema<"getAccounts", undefined>;
570
+ readonly params: v.ObjectSchema<{
571
+ /**
572
+ * The purposes for which to generate addresses. See
573
+ * {@linkcode AddressPurpose} for available purposes.
574
+ */
575
+ readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
576
+ /**
577
+ * A message to be displayed to the user in the request prompt.
578
+ */
579
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, never>;
580
+ }, undefined>;
581
+ readonly id: v.StringSchema<undefined>;
582
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
583
+ }, undefined>;
584
+ type GetAccountsRequestMessage = v.InferOutput<typeof getAccountsRequestMessageSchema>;
585
+ type GetAccounts = MethodParamsAndResult<v.InferOutput<typeof getAccountsParamsSchema>, v.InferOutput<typeof getAccountsResultSchema>>;
586
+ declare const getBalanceMethodName = "getBalance";
587
+ declare const getBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
588
+ type GetBalanceParams = v.InferOutput<typeof getBalanceParamsSchema>;
589
+ declare const getBalanceResultSchema: v.ObjectSchema<{
590
+ /**
591
+ * The confirmed balance of the wallet in sats. Using a string due to chrome
592
+ * messages not supporting bigint
593
+ * (https://issues.chromium.org/issues/40116184).
594
+ */
595
+ readonly confirmed: v.StringSchema<undefined>;
596
+ /**
597
+ * The unconfirmed balance of the wallet in sats. Using a string due to chrome
598
+ * messages not supporting bigint
599
+ * (https://issues.chromium.org/issues/40116184).
600
+ */
601
+ readonly unconfirmed: v.StringSchema<undefined>;
602
+ /**
603
+ * The total balance (both confirmed and unconfrimed UTXOs) of the wallet in
604
+ * sats. Using a string due to chrome messages not supporting bigint
605
+ * (https://issues.chromium.org/issues/40116184).
606
+ */
607
+ readonly total: v.StringSchema<undefined>;
608
+ }, undefined>;
609
+ type GetBalanceResult = v.InferOutput<typeof getBalanceResultSchema>;
610
+ declare const getBalanceRequestMessageSchema: v.ObjectSchema<{
611
+ readonly method: v.LiteralSchema<"getBalance", undefined>;
612
+ readonly id: v.StringSchema<undefined>;
613
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
614
+ readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
615
+ }, undefined>;
616
+ type GetBalanceRequestMessage = v.InferOutput<typeof getBalanceRequestMessageSchema>;
617
+ type GetBalance = MethodParamsAndResult<GetBalanceParams, GetBalanceResult>;
618
+
619
+ declare const getInscriptionsMethodName = "ord_getInscriptions";
620
+ declare const getInscriptionsParamsSchema: v.ObjectSchema<{
621
+ readonly offset: v.NumberSchema<undefined>;
622
+ readonly limit: v.NumberSchema<undefined>;
623
+ }, undefined>;
624
+ declare const getInscriptionsResultSchema: v.ObjectSchema<{
625
+ readonly total: v.NumberSchema<undefined>;
626
+ readonly limit: v.NumberSchema<undefined>;
627
+ readonly offset: v.NumberSchema<undefined>;
628
+ readonly inscriptions: v.ArraySchema<v.ObjectSchema<{
629
+ readonly inscriptionId: v.StringSchema<undefined>;
630
+ readonly inscriptionNumber: v.StringSchema<undefined>;
631
+ readonly address: v.StringSchema<undefined>;
632
+ readonly collectionName: v.OptionalSchema<v.StringSchema<undefined>, never>;
633
+ readonly postage: v.StringSchema<undefined>;
634
+ readonly contentLength: v.StringSchema<undefined>;
635
+ readonly contentType: v.StringSchema<undefined>;
636
+ readonly timestamp: v.NumberSchema<undefined>;
637
+ readonly offset: v.NumberSchema<undefined>;
638
+ readonly genesisTransaction: v.StringSchema<undefined>;
639
+ readonly output: v.StringSchema<undefined>;
640
+ }, undefined>, undefined>;
641
+ }, undefined>;
642
+ declare const getInscriptionsSchema: v.ObjectSchema<{
643
+ readonly method: v.LiteralSchema<"ord_getInscriptions", undefined>;
644
+ readonly params: v.ObjectSchema<{
645
+ readonly offset: v.NumberSchema<undefined>;
646
+ readonly limit: v.NumberSchema<undefined>;
647
+ }, undefined>;
648
+ readonly id: v.StringSchema<undefined>;
649
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
650
+ }, undefined>;
651
+ type GetInscriptions = MethodParamsAndResult<v.InferOutput<typeof getInscriptionsParamsSchema>, v.InferOutput<typeof getInscriptionsResultSchema>>;
652
+ declare const sendInscriptionsMethodName = "ord_sendInscriptions";
653
+ declare const sendInscriptionsParamsSchema: v.ObjectSchema<{
654
+ readonly transfers: v.ArraySchema<v.ObjectSchema<{
655
+ readonly address: v.StringSchema<undefined>;
656
+ readonly inscriptionId: v.StringSchema<undefined>;
657
+ }, undefined>, undefined>;
658
+ }, undefined>;
659
+ declare const sendInscriptionsResultSchema: v.ObjectSchema<{
660
+ readonly txid: v.StringSchema<undefined>;
661
+ }, undefined>;
662
+ declare const sendInscriptionsSchema: v.ObjectSchema<{
663
+ readonly method: v.LiteralSchema<"ord_sendInscriptions", undefined>;
664
+ readonly params: v.ObjectSchema<{
665
+ readonly transfers: v.ArraySchema<v.ObjectSchema<{
666
+ readonly address: v.StringSchema<undefined>;
667
+ readonly inscriptionId: v.StringSchema<undefined>;
668
+ }, undefined>, undefined>;
669
+ }, undefined>;
670
+ readonly id: v.StringSchema<undefined>;
671
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
672
+ }, undefined>;
673
+ type SendInscriptions = MethodParamsAndResult<v.InferOutput<typeof sendInscriptionsParamsSchema>, v.InferOutput<typeof sendInscriptionsResultSchema>>;
674
+
675
+ type CreateMintOrderRequest = {
676
+ runeName: string;
677
+ repeats: number;
678
+ refundAddress: string;
679
+ destinationAddress: string;
680
+ feeRate: number;
681
+ appServiceFee?: number;
682
+ appServiceFeeAddress?: string;
683
+ };
684
+ type EstimateMintOrderRequest = Omit<CreateMintOrderRequest, 'refundAddress'>;
685
+ type EstimateOrderResponse = {
686
+ totalSize: number;
687
+ totalCost: number;
688
+ costBreakdown: {
689
+ postage: number;
690
+ networkFee: number;
691
+ serviceFee: number;
692
+ appServiceFee: number;
693
+ };
694
+ };
695
+ type CreateEtchOrderRequest = {
696
+ runeName: string;
697
+ divisibility?: number;
698
+ symbol?: string;
699
+ premine?: string;
700
+ isMintable: boolean;
701
+ terms?: {
702
+ amount?: string;
703
+ cap?: string;
704
+ heightStart?: string;
705
+ heightEnd?: string;
706
+ offsetStart?: string;
707
+ offsetEnd?: string;
708
+ };
709
+ inscriptionDetails?: {
710
+ contentType: string;
711
+ contentBase64: string;
712
+ };
713
+ delegateInscriptionId?: string;
714
+ destinationAddress: string;
715
+ refundAddress: string;
716
+ feeRate: number;
717
+ appServiceFee?: number;
718
+ appServiceFeeAddress?: string;
719
+ };
720
+ type EstimateEtchOrderRequest = Omit<CreateEtchOrderRequest, 'refundAddress'>;
721
+ type GetOrderRequest = {
722
+ id: string;
723
+ };
724
+ type GetOrderResponse = {
725
+ id: string;
726
+ orderType: 'rune_mint' | 'rune_etch';
727
+ state: 'new' | 'pending' | 'executing' | 'complete' | 'failed' | 'refunded' | 'stale';
728
+ fundingAddress: string;
729
+ reason?: string;
730
+ createdAt: string;
731
+ };
732
+ type RBFOrderRequest = {
733
+ orderId: string;
734
+ newFeeRate: number;
735
+ };
736
+ type RBFOrderResponse = {
737
+ rbfCost: number;
738
+ fundingAddress: string;
739
+ };
740
+
741
+ interface EstimateRunesMintParams extends EstimateMintOrderRequest {
742
+ network?: BitcoinNetworkType;
743
+ }
744
+ type EstimateRunesMintResult = EstimateOrderResponse;
745
+ type EstimateRunesMint = MethodParamsAndResult<EstimateRunesMintParams, EstimateRunesMintResult>;
746
+ interface MintRunesParams extends CreateMintOrderRequest {
747
+ network?: BitcoinNetworkType;
748
+ }
749
+ type MintRunesResult = {
750
+ orderId: string;
751
+ fundTransactionId: string;
752
+ fundingAddress: string;
753
+ };
754
+ type MintRunes = MethodParamsAndResult<MintRunesParams, MintRunesResult>;
755
+ interface EstimateRunesEtchParams extends EstimateEtchOrderRequest {
756
+ network?: BitcoinNetworkType;
757
+ }
758
+ type EstimateRunesEtchResult = EstimateOrderResponse;
759
+ type EstimateRunesEtch = MethodParamsAndResult<EstimateRunesEtchParams, EstimateRunesEtchResult>;
760
+ interface EtchRunesParams extends CreateEtchOrderRequest {
761
+ network?: BitcoinNetworkType;
762
+ }
763
+ type EtchRunesResult = {
764
+ orderId: string;
765
+ fundTransactionId: string;
766
+ fundingAddress: string;
767
+ };
768
+ type EtchRunes = MethodParamsAndResult<EtchRunesParams, EtchRunesResult>;
769
+ interface GetOrderParams extends GetOrderRequest {
770
+ network?: BitcoinNetworkType;
771
+ }
772
+ type GetOrder = MethodParamsAndResult<GetOrderParams, GetOrderResponse>;
773
+ interface EstimateRbfOrderParams extends RBFOrderRequest {
774
+ network?: BitcoinNetworkType;
775
+ }
776
+ type EstimateRbfOrder = MethodParamsAndResult<EstimateRbfOrderParams, RBFOrderResponse>;
777
+ interface RbfOrderParams extends RBFOrderRequest {
778
+ network?: BitcoinNetworkType;
779
+ }
780
+ interface RbfOrderResult {
781
+ orderId: string;
782
+ fundRBFTransactionId: string;
783
+ fundingAddress: string;
784
+ }
785
+ type RbfOrder = MethodParamsAndResult<RbfOrderParams, RbfOrderResult>;
786
+ declare const getRunesBalanceMethodName = "runes_getBalance";
787
+ declare const getRunesBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
788
+ type GetRunesBalanceParams = v.InferOutput<typeof getRunesBalanceParamsSchema>;
789
+ declare const getRunesBalanceResultSchema: v.ObjectSchema<{
790
+ readonly balances: v.ArraySchema<v.ObjectSchema<{
791
+ readonly runeName: v.StringSchema<undefined>;
792
+ readonly amount: v.StringSchema<undefined>;
793
+ readonly divisibility: v.NumberSchema<undefined>;
794
+ readonly symbol: v.StringSchema<undefined>;
795
+ readonly inscriptionId: v.NullishSchema<v.StringSchema<undefined>, never>;
796
+ }, undefined>, undefined>;
797
+ }, undefined>;
798
+ type GetRunesBalanceResult = v.InferOutput<typeof getRunesBalanceResultSchema>;
799
+ declare const getRunesBalanceRequestMessageSchema: v.ObjectSchema<{
800
+ readonly method: v.LiteralSchema<"runes_getBalance", undefined>;
801
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
802
+ readonly id: v.StringSchema<undefined>;
803
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
804
+ }, undefined>;
805
+ type GetRunesBalanceRequestMessage = v.InferOutput<typeof getRunesBalanceRequestMessageSchema>;
806
+ type GetRunesBalance = MethodParamsAndResult<v.InferOutput<typeof getRunesBalanceParamsSchema>, v.InferOutput<typeof getRunesBalanceResultSchema>>;
807
+ declare const transferRunesMethodName = "runes_transfer";
808
+ declare const transferRunesParamsSchema: v.ObjectSchema<{
809
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
810
+ readonly runeName: v.StringSchema<undefined>;
811
+ readonly amount: v.StringSchema<undefined>;
812
+ readonly address: v.StringSchema<undefined>;
813
+ }, undefined>, undefined>;
814
+ }, undefined>;
815
+ type TransferRunesParams = v.InferOutput<typeof transferRunesParamsSchema>;
816
+ declare const transferRunesRequestSchema: v.ObjectSchema<{
817
+ readonly method: v.LiteralSchema<"runes_transfer", undefined>;
818
+ readonly params: v.ObjectSchema<{
819
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
820
+ readonly runeName: v.StringSchema<undefined>;
821
+ readonly amount: v.StringSchema<undefined>;
822
+ readonly address: v.StringSchema<undefined>;
823
+ }, undefined>, undefined>;
824
+ }, undefined>;
825
+ readonly id: v.StringSchema<undefined>;
826
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
827
+ }, undefined>;
828
+ type TransferRunesRequest = v.InferOutput<typeof transferRunesRequestSchema>;
829
+ declare const TransferRunesResultSchema: v.ObjectSchema<{
830
+ readonly txid: v.StringSchema<undefined>;
831
+ }, undefined>;
832
+ type TransferRunesResult = v.InferOutput<typeof TransferRunesResultSchema>;
833
+ type TransferRunes = MethodParamsAndResult<TransferRunesParams, TransferRunesResult>;
834
+
835
+ interface Pubkey {
836
+ /**
837
+ * When sending a transfer STX request to a wallet, users can generally
838
+ * choose from which accout they want to send the STX tokens from. In
839
+ * cases where applications want the transfer to be made from a specific
840
+ * account, they can provide the `pubkey` of the address they'd like the
841
+ * transfer to be made from. It is up to wallet providers to handle this
842
+ * field as they see fit.
843
+ */
844
+ pubkey: string;
845
+ }
846
+ interface Address {
847
+ /**
848
+ * A Crockford base-32 encoded Stacks address.
849
+ */
850
+ address: string;
851
+ }
852
+ interface PostConditions {
853
+ /**
854
+ * A hex-encoded string representing the post conditions.
855
+ *
856
+ * A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
857
+ *
858
+ * ```js
859
+ * import { serializePostCondition } from '@stacks/transactions';
860
+ *
861
+ * const postCondition = somePostCondition;
862
+ * const hexPostCondition = serializePostCondition(postCondition).toString('hex');
863
+ * ```
864
+ */
865
+ postConditions: Array<string>;
866
+ }
867
+ interface PostConditionMode {
868
+ /**
869
+ * The mode of the post conditions.
870
+ */
871
+ postConditionMode: number;
872
+ }
873
+ interface ParameterFormatVersion {
874
+ /**
875
+ * Version of parameter format.
876
+ */
877
+ version: string;
878
+ }
879
+ interface Recipient {
880
+ /**
881
+ * The recipeint's Crockford base-32 encoded Stacks address.
882
+ */
883
+ recipient: string;
884
+ }
885
+ interface Amount {
886
+ /**
887
+ * Amount of STX tokens to transfer in microstacks as a string. Anything
888
+ * parseable by `BigInt` is acceptable.
889
+ *
890
+ * Example,
891
+ *
892
+ * ```js
893
+ * const amount1 = 1234;
894
+ * const amount2 = 1234n;
895
+ * const amount3 = '1234';
896
+ * ```
897
+ */
898
+ amount: number | string;
899
+ }
900
+ interface Memo {
901
+ /**
902
+ * A string representing the memo.
903
+ */
904
+ memo: string;
905
+ }
906
+ interface TxId {
907
+ /**
908
+ * The ID of the transaction.
909
+ */
910
+ txid: string;
911
+ }
912
+ interface Transaction {
913
+ /**
914
+ * A Stacks transaction as a hex-encoded string.
915
+ */
916
+ transaction: string;
917
+ }
918
+ interface Message {
919
+ /**
920
+ * Message payload to be signed.
921
+ */
922
+ message: string;
923
+ }
924
+ interface Signature {
925
+ /**
926
+ * Signature of the message.
927
+ */
928
+ signature: string;
929
+ }
930
+ interface PublicKey {
931
+ /**
932
+ * Public key as hex-encoded string.
933
+ */
934
+ publicKey: string;
935
+ }
936
+ interface Domain {
937
+ /**
938
+ * The domain to be signed.
939
+ */
940
+ domain: string;
941
+ }
942
+ interface CallContractParams {
943
+ /**
944
+ * The contract's Crockford base-32 encoded Stacks address and name.
945
+ *
946
+ * E.g. `"SPKE...GD5C.my-contract"`
947
+ */
948
+ contract: string;
949
+ /**
950
+ * The name of the function to call.
951
+ *
952
+ * Note: spec changes ongoing,
953
+ * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
954
+ */
955
+ functionName: string;
956
+ /**
957
+ * The function's arguments. The arguments are expected to be hex-encoded
958
+ * strings of Clarity values.
959
+ *
960
+ * To convert Clarity values to their hex representation, the `cvToString`
961
+ * helper from the `@stacks/transactions` package may be helpful.
962
+ *
963
+ * ```js
964
+ * import { cvToString } from '@stacks/transactions';
965
+ *
966
+ * const functionArgs = [someClarityValue1, someClarityValue2];
967
+ * const hexArgs = functionArgs.map(cvToString);
968
+ * ```
969
+ */
970
+ arguments?: Array<string>;
971
+ }
972
+ type CallContractResult = TxId & Transaction;
973
+ type StxCallContract = MethodParamsAndResult<CallContractParams, CallContractResult>;
974
+ type TransferStxParams = Amount & Recipient & Partial<Memo> & Partial<ParameterFormatVersion> & Partial<PostConditionMode> & Partial<PostConditions> & Partial<Pubkey>;
975
+ type TransferStxResult = TxId & Transaction;
976
+ type StxTransferStx = MethodParamsAndResult<TransferStxParams, TransferStxResult>;
977
+ type SignStxMessageParams = Message & Partial<Pubkey> & Partial<ParameterFormatVersion>;
978
+ type SignStxMessageResult = Signature & PublicKey;
979
+ type StxSignStxMessage = MethodParamsAndResult<SignStxMessageParams, SignStxMessageResult>;
980
+ type SignStructuredMessageParams = Domain & Message & Partial<ParameterFormatVersion> & Partial<Pubkey>;
981
+ type SignStructuredMessageResult = Signature & PublicKey;
982
+ type StxSignStructuredMessage = MethodParamsAndResult<SignStructuredMessageParams, SignStructuredMessageResult>;
983
+ interface DeployContractParams {
984
+ /**
985
+ * Name of the contract.
986
+ */
987
+ name: string;
988
+ /**
989
+ * The code of the Clarity contract.
990
+ */
991
+ clarityCode: string;
992
+ /**
993
+ * The version of the Clarity contract.
994
+ */
995
+ clarityVersion?: string;
996
+ }
997
+ type DeployContractResult = TxId & Transaction;
998
+ type StxDeployContract = MethodParamsAndResult<DeployContractParams, DeployContractResult>;
999
+ type StxGetAccountsResult = {
1000
+ addresses: Array<Address & PublicKey & {
1001
+ gaiaHubUrl: string;
1002
+ gaiaAppKey: string;
1003
+ }>;
1004
+ };
1005
+ type StxGetAccounts = MethodParamsAndResult<{}, StxGetAccountsResult>;
1006
+ declare const stxGetAddressesMethodName = "stx_getAddresses";
1007
+ declare const stxGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
1008
+ /**
1009
+ * A message to be displayed to the user in the request prompt.
1010
+ */
1011
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, never>;
1012
+ }, undefined>, never>;
1013
+ type StxGetAddressesParams = v.InferOutput<typeof stxGetAddressesParamsSchema>;
1014
+ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
1015
+ /**
1016
+ * The addresses generated for the given purposes.
1017
+ */
1018
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1019
+ readonly address: v.StringSchema<undefined>;
1020
+ readonly publicKey: v.StringSchema<undefined>;
1021
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1022
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1023
+ }, undefined>, undefined>;
1024
+ }, undefined>;
1025
+ type StxGetAddressesResult = v.InferOutput<typeof stxGetAddressesResultSchema>;
1026
+ declare const stxGetAddressesRequestMessageSchema: v.ObjectSchema<{
1027
+ readonly method: v.LiteralSchema<"stx_getAddresses", undefined>;
1028
+ readonly params: v.NullishSchema<v.ObjectSchema<{
1029
+ /**
1030
+ * A message to be displayed to the user in the request prompt.
1031
+ */
1032
+ readonly message: v.OptionalSchema<v.StringSchema<undefined>, never>;
1033
+ }, undefined>, never>;
1034
+ readonly id: v.StringSchema<undefined>;
1035
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1036
+ }, undefined>;
1037
+ type StxGetAddressesRequestMessage = v.InferOutput<typeof stxGetAddressesRequestMessageSchema>;
1038
+ type StxGetAddresses = MethodParamsAndResult<v.InferOutput<typeof stxGetAddressesParamsSchema>, v.InferOutput<typeof stxGetAddressesResultSchema>>;
1039
+ declare const stxSignTransactionMethodName = "stx_signTransaction";
1040
+ declare const stxSignTransactionParamsSchema: v.ObjectSchema<{
1041
+ /**
1042
+ * The transaction to sign as a hex-encoded string.
1043
+ */
1044
+ readonly transaction: v.StringSchema<undefined>;
1045
+ /**
1046
+ * The public key to sign the transaction with. The wallet may use any key
1047
+ * when not provided.
1048
+ */
1049
+ readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
1050
+ /**
1051
+ * Whether to broadcast the transaction after signing. Defaults to `true`.
1052
+ */
1053
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1054
+ }, undefined>;
1055
+ type StxSignTransactionParams = v.InferOutput<typeof stxSignTransactionParamsSchema>;
1056
+ declare const stxSignTransactionResultSchema: v.ObjectSchema<{
1057
+ /**
1058
+ * The signed transaction as a hex-encoded string.
1059
+ */
1060
+ readonly transaction: v.StringSchema<undefined>;
1061
+ }, undefined>;
1062
+ type StxSignTransactionResult = v.InferOutput<typeof stxSignTransactionResultSchema>;
1063
+ declare const stxSignTransactionRequestMessageSchema: v.ObjectSchema<{
1064
+ readonly method: v.LiteralSchema<"stx_signTransaction", undefined>;
1065
+ readonly params: v.ObjectSchema<{
1066
+ /**
1067
+ * The transaction to sign as a hex-encoded string.
1068
+ */
1069
+ readonly transaction: v.StringSchema<undefined>;
1070
+ /**
1071
+ * The public key to sign the transaction with. The wallet may use any key
1072
+ * when not provided.
1073
+ */
1074
+ readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
1075
+ /**
1076
+ * Whether to broadcast the transaction after signing. Defaults to `true`.
1077
+ */
1078
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1079
+ }, undefined>;
1080
+ readonly id: v.StringSchema<undefined>;
1081
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1082
+ }, undefined>;
1083
+ type StxSignTransactionRequestMessage = v.InferOutput<typeof stxSignTransactionRequestMessageSchema>;
1084
+ type StxSignTransaction = MethodParamsAndResult<StxSignTransactionParams, StxSignTransactionResult>;
1085
+
1086
+ /**
1087
+ * Permissions with the clientId field omitted and optional actions. Used for
1088
+ * permission requests, since the wallet performs authentication based on the
1089
+ * client's tab origin and should not rely on the client authenticating
1090
+ * themselves.
1091
+ */
1092
+ declare const permissionTemplate: v.VariantSchema<"type", [v.ObjectSchema<{
1093
+ readonly actions: Omit<v.ObjectSchema<{
1094
+ readonly read: v.BooleanSchema<undefined>;
1095
+ readonly autoSign: v.BooleanSchema<undefined>;
1096
+ readonly rename: v.BooleanSchema<undefined>;
1097
+ }, undefined>, "_types" | "_run" | "entries"> & {
1098
+ readonly entries: {
1099
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1100
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1101
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1102
+ };
1103
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1104
+ read?: boolean | undefined;
1105
+ autoSign?: boolean | undefined;
1106
+ rename?: boolean | undefined;
1107
+ }, v.ObjectIssue | v.BooleanIssue>;
1108
+ readonly _types?: {
1109
+ readonly input: {
1110
+ read?: boolean | undefined;
1111
+ autoSign?: boolean | undefined;
1112
+ rename?: boolean | undefined;
1113
+ };
1114
+ readonly output: {
1115
+ read?: boolean | undefined;
1116
+ autoSign?: boolean | undefined;
1117
+ rename?: boolean | undefined;
1118
+ };
1119
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1120
+ } | undefined;
1121
+ };
1122
+ readonly type: v.LiteralSchema<"account", undefined>;
1123
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1124
+ }, undefined>, v.ObjectSchema<{
1125
+ readonly actions: Omit<v.ObjectSchema<{
1126
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1127
+ readonly openPopup: v.BooleanSchema<undefined>;
1128
+ readonly openFullPage: v.BooleanSchema<undefined>;
1129
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1130
+ }, undefined>, "_types" | "_run" | "entries"> & {
1131
+ readonly entries: {
1132
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1133
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1134
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1135
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1136
+ };
1137
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1138
+ addPrivateKey?: boolean | undefined;
1139
+ openPopup?: boolean | undefined;
1140
+ openFullPage?: boolean | undefined;
1141
+ readAllAccounts?: boolean | undefined;
1142
+ }, v.ObjectIssue | v.BooleanIssue>;
1143
+ readonly _types?: {
1144
+ readonly input: {
1145
+ addPrivateKey?: boolean | undefined;
1146
+ openPopup?: boolean | undefined;
1147
+ openFullPage?: boolean | undefined;
1148
+ readAllAccounts?: boolean | undefined;
1149
+ };
1150
+ readonly output: {
1151
+ addPrivateKey?: boolean | undefined;
1152
+ openPopup?: boolean | undefined;
1153
+ openFullPage?: boolean | undefined;
1154
+ readAllAccounts?: boolean | undefined;
1155
+ };
1156
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1157
+ } | undefined;
1158
+ };
1159
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1160
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1161
+ }, undefined>], undefined>;
1162
+ type PermissionWithoutClientId = v.InferOutput<typeof permissionTemplate>;
1163
+ declare const requestPermissionsMethodName = "wallet_requestPermissions";
1164
+ declare const requestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1165
+ readonly actions: Omit<v.ObjectSchema<{
1166
+ readonly read: v.BooleanSchema<undefined>;
1167
+ readonly autoSign: v.BooleanSchema<undefined>;
1168
+ readonly rename: v.BooleanSchema<undefined>;
1169
+ }, undefined>, "_types" | "_run" | "entries"> & {
1170
+ readonly entries: {
1171
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1172
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1173
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1174
+ };
1175
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1176
+ read?: boolean | undefined;
1177
+ autoSign?: boolean | undefined;
1178
+ rename?: boolean | undefined;
1179
+ }, v.ObjectIssue | v.BooleanIssue>;
1180
+ readonly _types?: {
1181
+ readonly input: {
1182
+ read?: boolean | undefined;
1183
+ autoSign?: boolean | undefined;
1184
+ rename?: boolean | undefined;
1185
+ };
1186
+ readonly output: {
1187
+ read?: boolean | undefined;
1188
+ autoSign?: boolean | undefined;
1189
+ rename?: boolean | undefined;
1190
+ };
1191
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1192
+ } | undefined;
1193
+ };
1194
+ readonly type: v.LiteralSchema<"account", undefined>;
1195
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1196
+ }, undefined>, v.ObjectSchema<{
1197
+ readonly actions: Omit<v.ObjectSchema<{
1198
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1199
+ readonly openPopup: v.BooleanSchema<undefined>;
1200
+ readonly openFullPage: v.BooleanSchema<undefined>;
1201
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1202
+ }, undefined>, "_types" | "_run" | "entries"> & {
1203
+ readonly entries: {
1204
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1205
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1206
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1207
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1208
+ };
1209
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1210
+ addPrivateKey?: boolean | undefined;
1211
+ openPopup?: boolean | undefined;
1212
+ openFullPage?: boolean | undefined;
1213
+ readAllAccounts?: boolean | undefined;
1214
+ }, v.ObjectIssue | v.BooleanIssue>;
1215
+ readonly _types?: {
1216
+ readonly input: {
1217
+ addPrivateKey?: boolean | undefined;
1218
+ openPopup?: boolean | undefined;
1219
+ openFullPage?: boolean | undefined;
1220
+ readAllAccounts?: boolean | undefined;
1221
+ };
1222
+ readonly output: {
1223
+ addPrivateKey?: boolean | undefined;
1224
+ openPopup?: boolean | undefined;
1225
+ openFullPage?: boolean | undefined;
1226
+ readAllAccounts?: boolean | undefined;
1227
+ };
1228
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1229
+ } | undefined;
1230
+ };
1231
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1232
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1233
+ }, undefined>], undefined>, undefined>, never>;
1234
+ type RequestPermissionsParams = v.InferOutput<typeof requestPermissionsParamsSchema>;
1235
+ declare const requestPermissionsResultSchema: v.LiteralSchema<true, undefined>;
1236
+ type RequestPermissionsResult = v.InferOutput<typeof requestPermissionsResultSchema>;
1237
+ declare const requestPermissionsRequestMessageSchema: v.ObjectSchema<{
1238
+ readonly method: v.LiteralSchema<"wallet_requestPermissions", undefined>;
1239
+ readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1240
+ readonly actions: Omit<v.ObjectSchema<{
1241
+ readonly read: v.BooleanSchema<undefined>;
1242
+ readonly autoSign: v.BooleanSchema<undefined>;
1243
+ readonly rename: v.BooleanSchema<undefined>;
1244
+ }, undefined>, "_types" | "_run" | "entries"> & {
1245
+ readonly entries: {
1246
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1247
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1248
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1249
+ };
1250
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1251
+ read?: boolean | undefined;
1252
+ autoSign?: boolean | undefined;
1253
+ rename?: boolean | undefined;
1254
+ }, v.ObjectIssue | v.BooleanIssue>;
1255
+ readonly _types?: {
1256
+ readonly input: {
1257
+ read?: boolean | undefined;
1258
+ autoSign?: boolean | undefined;
1259
+ rename?: boolean | undefined;
1260
+ };
1261
+ readonly output: {
1262
+ read?: boolean | undefined;
1263
+ autoSign?: boolean | undefined;
1264
+ rename?: boolean | undefined;
1265
+ };
1266
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1267
+ } | undefined;
1268
+ };
1269
+ readonly type: v.LiteralSchema<"account", undefined>;
1270
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1271
+ }, undefined>, v.ObjectSchema<{
1272
+ readonly actions: Omit<v.ObjectSchema<{
1273
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1274
+ readonly openPopup: v.BooleanSchema<undefined>;
1275
+ readonly openFullPage: v.BooleanSchema<undefined>;
1276
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1277
+ }, undefined>, "_types" | "_run" | "entries"> & {
1278
+ readonly entries: {
1279
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1280
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1281
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1282
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1283
+ };
1284
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1285
+ addPrivateKey?: boolean | undefined;
1286
+ openPopup?: boolean | undefined;
1287
+ openFullPage?: boolean | undefined;
1288
+ readAllAccounts?: boolean | undefined;
1289
+ }, v.ObjectIssue | v.BooleanIssue>;
1290
+ readonly _types?: {
1291
+ readonly input: {
1292
+ addPrivateKey?: boolean | undefined;
1293
+ openPopup?: boolean | undefined;
1294
+ openFullPage?: boolean | undefined;
1295
+ readAllAccounts?: boolean | undefined;
1296
+ };
1297
+ readonly output: {
1298
+ addPrivateKey?: boolean | undefined;
1299
+ openPopup?: boolean | undefined;
1300
+ openFullPage?: boolean | undefined;
1301
+ readAllAccounts?: boolean | undefined;
1302
+ };
1303
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1304
+ } | undefined;
1305
+ };
1306
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1307
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1308
+ }, undefined>], undefined>, undefined>, never>;
1309
+ readonly id: v.StringSchema<undefined>;
1310
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1311
+ }, undefined>;
1312
+ type RequestPermissionsRequestMessage = v.InferOutput<typeof requestPermissionsRequestMessageSchema>;
1313
+ type RequestPermissions = MethodParamsAndResult<RequestPermissionsParams, RequestPermissionsResult>;
1314
+ declare const renouncePermissionsMethodName = "wallet_renouncePermissions";
1315
+ declare const renouncePermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1316
+ type RenouncePermissionsParams = v.InferOutput<typeof renouncePermissionsParamsSchema>;
1317
+ declare const renouncePermissionsResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1318
+ type RenouncePermissionsResult = v.InferOutput<typeof renouncePermissionsResultSchema>;
1319
+ declare const renouncePermissionsRequestMessageSchema: v.ObjectSchema<{
1320
+ readonly method: v.LiteralSchema<"wallet_renouncePermissions", undefined>;
1321
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1322
+ readonly id: v.StringSchema<undefined>;
1323
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1324
+ }, undefined>;
1325
+ type RenouncePermissionsRequestMessage = v.InferOutput<typeof renouncePermissionsRequestMessageSchema>;
1326
+ type RenouncePermissions = MethodParamsAndResult<RenouncePermissionsParams, RenouncePermissionsResult>;
1327
+ declare const disconnectMethodName = "wallet_disconnect";
1328
+ declare const disconnectParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1329
+ type DisconnectParams = v.InferOutput<typeof disconnectParamsSchema>;
1330
+ declare const disconnectResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1331
+ type DisconnectResult = v.InferOutput<typeof disconnectResultSchema>;
1332
+ declare const disconnectRequestMessageSchema: v.ObjectSchema<{
1333
+ readonly method: v.LiteralSchema<"wallet_disconnect", undefined>;
1334
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1335
+ readonly id: v.StringSchema<undefined>;
1336
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1337
+ }, undefined>;
1338
+ type DisconnectRequestMessage = v.InferOutput<typeof disconnectRequestMessageSchema>;
1339
+ type Disconnect = MethodParamsAndResult<DisconnectParams, DisconnectResult>;
1340
+ declare const getWalletTypeMethodName = "wallet_getWalletType";
1341
+ declare const getWalletTypeParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1342
+ type GetWalletTypeParams = v.InferOutput<typeof getWalletTypeParamsSchema>;
1343
+ declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1344
+ type GetWalletTypeResult = v.InferOutput<typeof getWalletTypeResultSchema>;
1345
+ declare const getWalletTypeRequestMessageSchema: v.ObjectSchema<{
1346
+ readonly method: v.LiteralSchema<"wallet_getWalletType", undefined>;
1347
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1348
+ readonly id: v.StringSchema<undefined>;
1349
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1350
+ }, undefined>;
1351
+ type GetWalletTypeRequestMessage = v.InferOutput<typeof getWalletTypeRequestMessageSchema>;
1352
+ type GetWalletType = MethodParamsAndResult<GetWalletTypeParams, GetWalletTypeResult>;
1353
+ declare const getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
1354
+ declare const getCurrentPermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1355
+ type GetCurrentPermissionsParams = v.InferOutput<typeof getCurrentPermissionsParamsSchema>;
1356
+ declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1357
+ readonly type: v.LiteralSchema<"account", undefined>;
1358
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1359
+ readonly clientId: v.StringSchema<undefined>;
1360
+ readonly actions: v.ObjectSchema<{
1361
+ readonly read: v.BooleanSchema<undefined>;
1362
+ readonly autoSign: v.BooleanSchema<undefined>;
1363
+ readonly rename: v.BooleanSchema<undefined>;
1364
+ }, undefined>;
1365
+ }, undefined>, v.ObjectSchema<{
1366
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1367
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1368
+ readonly clientId: v.StringSchema<undefined>;
1369
+ readonly actions: v.ObjectSchema<{
1370
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1371
+ readonly openPopup: v.BooleanSchema<undefined>;
1372
+ readonly openFullPage: v.BooleanSchema<undefined>;
1373
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1374
+ }, undefined>;
1375
+ }, undefined>], undefined>, undefined>;
1376
+ type GetCurrentPermissionsResult = v.InferOutput<typeof getCurrentPermissionsResultSchema>;
1377
+ declare const getCurrentPermissionsRequestMessageSchema: v.ObjectSchema<{
1378
+ readonly method: v.LiteralSchema<"wallet_getCurrentPermissions", undefined>;
1379
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1380
+ readonly id: v.StringSchema<undefined>;
1381
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1382
+ }, undefined>;
1383
+ type GetCurrentPermissionsRequestMessage = v.InferOutput<typeof getCurrentPermissionsRequestMessageSchema>;
1384
+ type GetCurrentPermissions = MethodParamsAndResult<GetCurrentPermissionsParams, GetCurrentPermissionsResult>;
1385
+ declare const getAccountMethodName = "wallet_getAccount";
1386
+ declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1387
+ type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
1388
+ declare const getAccountResultSchema: v.ObjectSchema<{
1389
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
1390
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1391
+ readonly address: v.StringSchema<undefined>;
1392
+ readonly publicKey: v.StringSchema<undefined>;
1393
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1394
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1395
+ }, undefined>, undefined>;
1396
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1397
+ }, undefined>;
1398
+ type GetAccountResult = v.InferOutput<typeof getAccountResultSchema>;
1399
+ declare const getAccountRequestMessageSchema: v.ObjectSchema<{
1400
+ readonly method: v.LiteralSchema<"wallet_getAccount", undefined>;
1401
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1402
+ readonly id: v.StringSchema<undefined>;
1403
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1404
+ }, undefined>;
1405
+ type GetAccountRequestMessage = v.InferOutput<typeof getAccountRequestMessageSchema>;
1406
+ type GetAccount = MethodParamsAndResult<GetAccountParams, GetAccountResult>;
1407
+ declare const connectMethodName = "wallet_connect";
1408
+ declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
1409
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1410
+ readonly actions: Omit<v.ObjectSchema<{
1411
+ readonly read: v.BooleanSchema<undefined>;
1412
+ readonly autoSign: v.BooleanSchema<undefined>;
1413
+ readonly rename: v.BooleanSchema<undefined>;
1414
+ }, undefined>, "_types" | "_run" | "entries"> & {
1415
+ readonly entries: {
1416
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1417
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1418
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1419
+ };
1420
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1421
+ read?: boolean | undefined;
1422
+ autoSign?: boolean | undefined;
1423
+ rename?: boolean | undefined;
1424
+ }, v.ObjectIssue | v.BooleanIssue>;
1425
+ readonly _types?: {
1426
+ readonly input: {
1427
+ read?: boolean | undefined;
1428
+ autoSign?: boolean | undefined;
1429
+ rename?: boolean | undefined;
1430
+ };
1431
+ readonly output: {
1432
+ read?: boolean | undefined;
1433
+ autoSign?: boolean | undefined;
1434
+ rename?: boolean | undefined;
1435
+ };
1436
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1437
+ } | undefined;
1438
+ };
1439
+ readonly type: v.LiteralSchema<"account", undefined>;
1440
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1441
+ }, undefined>, v.ObjectSchema<{
1442
+ readonly actions: Omit<v.ObjectSchema<{
1443
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1444
+ readonly openPopup: v.BooleanSchema<undefined>;
1445
+ readonly openFullPage: v.BooleanSchema<undefined>;
1446
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1447
+ }, undefined>, "_types" | "_run" | "entries"> & {
1448
+ readonly entries: {
1449
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1450
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1451
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1452
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1453
+ };
1454
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1455
+ addPrivateKey?: boolean | undefined;
1456
+ openPopup?: boolean | undefined;
1457
+ openFullPage?: boolean | undefined;
1458
+ readAllAccounts?: boolean | undefined;
1459
+ }, v.ObjectIssue | v.BooleanIssue>;
1460
+ readonly _types?: {
1461
+ readonly input: {
1462
+ addPrivateKey?: boolean | undefined;
1463
+ openPopup?: boolean | undefined;
1464
+ openFullPage?: boolean | undefined;
1465
+ readAllAccounts?: boolean | undefined;
1466
+ };
1467
+ readonly output: {
1468
+ addPrivateKey?: boolean | undefined;
1469
+ openPopup?: boolean | undefined;
1470
+ openFullPage?: boolean | undefined;
1471
+ readAllAccounts?: boolean | undefined;
1472
+ };
1473
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1474
+ } | undefined;
1475
+ };
1476
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1477
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1478
+ }, undefined>], undefined>, undefined>, never>;
1479
+ }, undefined>, never>;
1480
+ type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
1481
+ declare const connectResultSchema: v.ObjectSchema<{
1482
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
1483
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
1484
+ readonly address: v.StringSchema<undefined>;
1485
+ readonly publicKey: v.StringSchema<undefined>;
1486
+ readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1487
+ readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1488
+ }, undefined>, undefined>;
1489
+ readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1490
+ }, undefined>;
1491
+ type ConnectResult = v.InferOutput<typeof connectResultSchema>;
1492
+ declare const connectRequestMessageSchema: v.ObjectSchema<{
1493
+ readonly method: v.LiteralSchema<"wallet_connect", undefined>;
1494
+ readonly params: v.NullishSchema<v.ObjectSchema<{
1495
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1496
+ readonly actions: Omit<v.ObjectSchema<{
1497
+ readonly read: v.BooleanSchema<undefined>;
1498
+ readonly autoSign: v.BooleanSchema<undefined>;
1499
+ readonly rename: v.BooleanSchema<undefined>;
1500
+ }, undefined>, "_types" | "_run" | "entries"> & {
1501
+ readonly entries: {
1502
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1503
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1504
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1505
+ };
1506
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1507
+ read?: boolean | undefined;
1508
+ autoSign?: boolean | undefined;
1509
+ rename?: boolean | undefined;
1510
+ }, v.ObjectIssue | v.BooleanIssue>;
1511
+ readonly _types?: {
1512
+ readonly input: {
1513
+ read?: boolean | undefined;
1514
+ autoSign?: boolean | undefined;
1515
+ rename?: boolean | undefined;
1516
+ };
1517
+ readonly output: {
1518
+ read?: boolean | undefined;
1519
+ autoSign?: boolean | undefined;
1520
+ rename?: boolean | undefined;
1521
+ };
1522
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1523
+ } | undefined;
1524
+ };
1525
+ readonly type: v.LiteralSchema<"account", undefined>;
1526
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1527
+ }, undefined>, v.ObjectSchema<{
1528
+ readonly actions: Omit<v.ObjectSchema<{
1529
+ readonly addPrivateKey: v.BooleanSchema<undefined>;
1530
+ readonly openPopup: v.BooleanSchema<undefined>;
1531
+ readonly openFullPage: v.BooleanSchema<undefined>;
1532
+ readonly readAllAccounts: v.BooleanSchema<undefined>;
1533
+ }, undefined>, "_types" | "_run" | "entries"> & {
1534
+ readonly entries: {
1535
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1536
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1537
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1538
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1539
+ };
1540
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1541
+ addPrivateKey?: boolean | undefined;
1542
+ openPopup?: boolean | undefined;
1543
+ openFullPage?: boolean | undefined;
1544
+ readAllAccounts?: boolean | undefined;
1545
+ }, v.ObjectIssue | v.BooleanIssue>;
1546
+ readonly _types?: {
1547
+ readonly input: {
1548
+ addPrivateKey?: boolean | undefined;
1549
+ openPopup?: boolean | undefined;
1550
+ openFullPage?: boolean | undefined;
1551
+ readAllAccounts?: boolean | undefined;
1552
+ };
1553
+ readonly output: {
1554
+ addPrivateKey?: boolean | undefined;
1555
+ openPopup?: boolean | undefined;
1556
+ openFullPage?: boolean | undefined;
1557
+ readAllAccounts?: boolean | undefined;
1558
+ };
1559
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1560
+ } | undefined;
1561
+ };
1562
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1563
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1564
+ }, undefined>], undefined>, undefined>, never>;
1565
+ }, undefined>, never>;
1566
+ readonly id: v.StringSchema<undefined>;
1567
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1568
+ }, undefined>;
1569
+ type ConnectRequestMessage = v.InferOutput<typeof connectRequestMessageSchema>;
1570
+ type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
1571
+
1572
+ declare const walletTypes: readonly ["software", "ledger"];
1573
+ declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1574
+ type WalletType = v.InferOutput<typeof walletTypeSchema>;
1575
+
1576
+ interface StxRequests {
1577
+ stx_callContract: StxCallContract;
1578
+ stx_deployContract: StxDeployContract;
1579
+ stx_getAccounts: StxGetAccounts;
1580
+ stx_getAddresses: StxGetAddresses;
1581
+ stx_signMessage: StxSignStxMessage;
1582
+ stx_signStructuredMessage: StxSignStructuredMessage;
1583
+ stx_signTransaction: StxSignTransaction;
1584
+ stx_transferStx: StxTransferStx;
1585
+ }
1586
+ type StxRequestMethod = keyof StxRequests;
1587
+ interface BtcRequests {
1588
+ getInfo: GetInfo;
1589
+ getAddresses: GetAddresses;
1590
+ getAccounts: GetAccounts;
1591
+ getBalance: GetBalance;
1592
+ signMessage: SignMessage;
1593
+ sendTransfer: SendTransfer;
1594
+ signPsbt: SignPsbt;
1595
+ }
1596
+ type BtcRequestMethod = keyof BtcRequests;
1597
+ interface RunesRequests {
1598
+ runes_estimateMint: EstimateRunesMint;
1599
+ runes_mint: MintRunes;
1600
+ runes_estimateEtch: EstimateRunesEtch;
1601
+ runes_etch: EtchRunes;
1602
+ runes_getOrder: GetOrder;
1603
+ runes_estimateRbfOrder: EstimateRbfOrder;
1604
+ runes_rbfOrder: RbfOrder;
1605
+ runes_getBalance: GetRunesBalance;
1606
+ runes_transfer: TransferRunes;
1607
+ }
1608
+ type RunesRequestMethod = keyof RunesRequests;
1609
+ interface OrdinalsRequests {
1610
+ ord_getInscriptions: GetInscriptions;
1611
+ ord_sendInscriptions: SendInscriptions;
1612
+ }
1613
+ type OrdinalsRequestMethod = keyof OrdinalsRequests;
1614
+ interface WalletRequests {
1615
+ wallet_requestPermissions: RequestPermissions;
1616
+ wallet_renouncePermissions: RenouncePermissions;
1617
+ wallet_getWalletType: GetWalletType;
1618
+ wallet_getCurrentPermissions: GetCurrentPermissions;
1619
+ }
1620
+ type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & OrdinalsRequests;
1621
+ type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
1622
+ type Params<Method> = Method extends keyof Requests ? Requests[Method]['params'] : never;
1623
+
1624
+ 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>>;
1625
+ declare const addListener: (event: Parameters<AddListener>[0], cb: Parameters<AddListener>[1], providerId?: string) => ReturnType<AddListener>;
1626
+
1627
+ declare abstract class SatsConnectAdapter {
1628
+ abstract readonly id: string;
1629
+ private mintRunes;
1630
+ private etchRunes;
1631
+ private estimateMint;
1632
+ private estimateEtch;
1633
+ private getOrder;
1634
+ private estimateRbfOrder;
1635
+ private rbfOrder;
1636
+ request<Method extends keyof Requests>(method: Method, params: Params<Method>): Promise<RpcResult<Method>>;
1637
+ abstract addListener: AddListener;
1638
+ protected abstract requestInternal<Method extends keyof Requests>(method: Method, params: Params<Method>): Promise<RpcResult<Method>>;
1639
+ }
1640
+
1641
+ declare class BaseAdapter extends SatsConnectAdapter {
1642
+ id: string;
1643
+ constructor(providerId: string);
1644
+ requestInternal: <Method extends keyof BtcRequests | keyof StxRequests | keyof RunesRequests | keyof WalletRequests | keyof OrdinalsRequests>(method: Method, params: Params<Method>) => Promise<RpcResult<Method>>;
1645
+ addListener: AddListener;
1646
+ }
1647
+
1648
+ declare const DefaultAdaptersInfo: Record<string, Provider>;
1649
+ declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
1650
+
1651
+ export { type AccountChangeEvent, type AddListener, type Address$1 as Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type CallContractParams, type CallContractResult, type Capability, type Connect, type ConnectParams, type ConnectRequestMessage, type ConnectResult, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type DeployContractParams, type DeployContractResult, type Disconnect, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type EstimateRbfOrder, type EstimateRunesEtch, type EstimateRunesEtchParams, type EstimateRunesEtchResult, type EstimateRunesMint, type EstimateRunesMintParams, type EstimateRunesMintResult, type EtchRunes, type EtchRunesParams, type EtchRunesResult, 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 GetOrder, type GetRunesBalance, type GetRunesBalanceParams, type GetRunesBalanceRequestMessage, type GetRunesBalanceResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type MintRunes, type MintRunesParams, type MintRunesResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, type PermissionWithoutClientId, type Provider, type PsbtPayload, type RbfOrder, type Recipient$1 as 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 RunesRequestMethod, type RunesRequests, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, 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 SignStructuredMessageResult, type SignStxMessageParams, type SignStxMessageResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, type StxCallContract, type StxDeployContract, type StxGetAccounts, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignStructuredMessage, type StxSignStxMessage, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxTransferStx, type SupportedWallet, type TransferRunes, type TransferRunesParams, type TransferRunesRequest, type TransferRunesResult, TransferRunesResultSchema, type TransferStxParams, type TransferStxResult, 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, getInscriptionsResultSchema, getInscriptionsSchema, getProviderById, getProviderOrThrow, getProviders, getRunesBalanceMethodName, getRunesBalanceParamsSchema, getRunesBalanceRequestMessageSchema, getRunesBalanceResultSchema, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permissionTemplate, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsResultSchema, sendInscriptionsSchema, sendTransferMethodName, sendTransferParamsSchema, sendTransferRequestMessageSchema, sendTransferResultSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signPsbtMethodName, signPsbtParamsSchema, signPsbtRequestMessageSchema, signPsbtResultSchema, signTransaction, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, transferRunesMethodName, transferRunesParamsSchema, transferRunesRequestSchema, walletEventSchema, walletTypeSchema, walletTypes };