@metamask-previews/keyring-api 21.5.0-25e4b24 → 21.5.0-cd75414

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +0 -1
  2. package/dist/api/account-options.cjs +4 -0
  3. package/dist/api/account-options.cjs.map +1 -1
  4. package/dist/api/account-options.d.cts +4 -0
  5. package/dist/api/account-options.d.cts.map +1 -1
  6. package/dist/api/account-options.d.mts +4 -0
  7. package/dist/api/account-options.d.mts.map +1 -1
  8. package/dist/api/account-options.mjs +4 -0
  9. package/dist/api/account-options.mjs.map +1 -1
  10. package/dist/api/account.d.cts +2 -2
  11. package/dist/api/account.d.mts +2 -2
  12. package/dist/api/asset.d.cts +2 -2
  13. package/dist/api/asset.d.mts +2 -2
  14. package/dist/api/request.d.cts +3 -3
  15. package/dist/api/request.d.mts +3 -3
  16. package/dist/api/response.d.cts +1 -1
  17. package/dist/api/response.d.mts +1 -1
  18. package/dist/api/transaction.d.cts +71 -71
  19. package/dist/api/transaction.d.mts +71 -71
  20. package/dist/api/v2/create-account/bip44.d.cts +1 -1
  21. package/dist/api/v2/create-account/bip44.d.mts +1 -1
  22. package/dist/api/v2/create-account/index.d.cts +1 -1
  23. package/dist/api/v2/create-account/index.d.mts +1 -1
  24. package/dist/api/v2/keyring-type.cjs +0 -4
  25. package/dist/api/v2/keyring-type.cjs.map +1 -1
  26. package/dist/api/v2/keyring-type.d.cts +1 -5
  27. package/dist/api/v2/keyring-type.d.cts.map +1 -1
  28. package/dist/api/v2/keyring-type.d.mts +1 -5
  29. package/dist/api/v2/keyring-type.d.mts.map +1 -1
  30. package/dist/api/v2/keyring-type.mjs +0 -4
  31. package/dist/api/v2/keyring-type.mjs.map +1 -1
  32. package/dist/btc/types.d.cts +8 -8
  33. package/dist/btc/types.d.mts +8 -8
  34. package/dist/eth/erc4337/types.d.cts +3 -3
  35. package/dist/eth/erc4337/types.d.mts +3 -3
  36. package/dist/eth/rpc/params.d.cts +29 -29
  37. package/dist/eth/rpc/params.d.mts +29 -29
  38. package/dist/eth/types.d.cts +4 -4
  39. package/dist/eth/types.d.mts +4 -4
  40. package/dist/events.d.cts +50 -50
  41. package/dist/events.d.mts +50 -50
  42. package/dist/rpc.d.cts +133 -133
  43. package/dist/rpc.d.mts +133 -133
  44. package/dist/sol/types.d.cts +2 -2
  45. package/dist/sol/types.d.mts +2 -2
  46. package/dist/trx/types.d.cts +2 -2
  47. package/dist/trx/types.d.mts +2 -2
  48. package/package.json +1 -1
package/dist/rpc.d.mts CHANGED
@@ -31,8 +31,8 @@ export declare enum KeyringRpcMethod {
31
31
  */
32
32
  export declare function isKeyringRpcMethod(method: string): boolean;
33
33
  export declare const ListAccountsRequestStruct: import("@metamask/superstruct").Struct<{
34
- method: "keyring_listAccounts";
35
34
  id: string | number | null;
35
+ method: "keyring_listAccounts";
36
36
  jsonrpc: "2.0";
37
37
  }, {
38
38
  method: import("@metamask/superstruct").Struct<"keyring_listAccounts", "keyring_listAccounts">;
@@ -43,6 +43,8 @@ export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
43
43
  export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
44
44
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
45
45
  id: string;
46
+ address: string;
47
+ scopes: `${string}:${string}`[];
46
48
  options: Record<string, import("@metamask/utils").Json> & {
47
49
  entropy?: {
48
50
  type: "mnemonic";
@@ -56,12 +58,12 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
56
58
  };
57
59
  exportable?: boolean;
58
60
  };
59
- address: string;
60
- scopes: `${string}:${string}`[];
61
61
  methods: string[];
62
62
  }[], import("@metamask/superstruct").Struct<{
63
63
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
64
64
  id: string;
65
+ address: string;
66
+ scopes: `${string}:${string}`[];
65
67
  options: Record<string, import("@metamask/utils").Json> & {
66
68
  entropy?: {
67
69
  type: "mnemonic";
@@ -75,8 +77,6 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
75
77
  };
76
78
  exportable?: boolean;
77
79
  };
78
- address: string;
79
- scopes: `${string}:${string}`[];
80
80
  methods: string[];
81
81
  }, {
82
82
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -110,12 +110,12 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
110
110
  }>>;
111
111
  export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
112
112
  export declare const GetAccountRequestStruct: import("@metamask/superstruct").Struct<{
113
- method: "keyring_getAccount";
114
113
  id: string | number | null;
115
- jsonrpc: "2.0";
114
+ method: "keyring_getAccount";
116
115
  params: {
117
116
  id: string;
118
117
  };
118
+ jsonrpc: "2.0";
119
119
  }, {
120
120
  method: import("@metamask/superstruct").Struct<"keyring_getAccount", "keyring_getAccount">;
121
121
  params: import("@metamask/superstruct").Struct<{
@@ -130,6 +130,8 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
130
130
  export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
131
131
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
132
132
  id: string;
133
+ address: string;
134
+ scopes: `${string}:${string}`[];
133
135
  options: Record<string, import("@metamask/utils").Json> & {
134
136
  entropy?: {
135
137
  type: "mnemonic";
@@ -143,8 +145,6 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
143
145
  };
144
146
  exportable?: boolean;
145
147
  };
146
- address: string;
147
- scopes: `${string}:${string}`[];
148
148
  methods: string[];
149
149
  }, {
150
150
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -178,12 +178,12 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
178
178
  }>;
179
179
  export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
180
180
  export declare const CreateAccountRequestStruct: import("@metamask/superstruct").Struct<{
181
- method: "keyring_createAccount";
182
181
  id: string | number | null;
183
- jsonrpc: "2.0";
182
+ method: "keyring_createAccount";
184
183
  params: {
185
184
  options: Record<string, import("@metamask/utils").Json>;
186
185
  };
186
+ jsonrpc: "2.0";
187
187
  }, {
188
188
  method: import("@metamask/superstruct").Struct<"keyring_createAccount", "keyring_createAccount">;
189
189
  params: import("@metamask/superstruct").Struct<{
@@ -198,6 +198,8 @@ export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
198
198
  export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
199
199
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
200
200
  id: string;
201
+ address: string;
202
+ scopes: `${string}:${string}`[];
201
203
  options: Record<string, import("@metamask/utils").Json> & {
202
204
  entropy?: {
203
205
  type: "mnemonic";
@@ -211,8 +213,6 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
211
213
  };
212
214
  exportable?: boolean;
213
215
  };
214
- address: string;
215
- scopes: `${string}:${string}`[];
216
216
  methods: string[];
217
217
  }, {
218
218
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -246,9 +246,8 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
246
246
  }>;
247
247
  export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
248
248
  export declare const CreateAccountsRequestStruct: import("@metamask/superstruct").Struct<{
249
- method: "keyring_createAccounts";
250
249
  id: string | number | null;
251
- jsonrpc: "2.0";
250
+ method: "keyring_createAccounts";
252
251
  params: {
253
252
  options: {
254
253
  type: "bip44:derive-path";
@@ -264,11 +263,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
264
263
  entropySource: string;
265
264
  } | {
266
265
  type: "bip44:derive-index-range";
266
+ entropySource: string;
267
267
  range: {
268
268
  from: number;
269
269
  to: number;
270
270
  };
271
- entropySource: string;
272
271
  } | {
273
272
  type: "custom";
274
273
  } | {
@@ -278,6 +277,7 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
278
277
  accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
279
278
  };
280
279
  };
280
+ jsonrpc: "2.0";
281
281
  }, {
282
282
  method: import("@metamask/superstruct").Struct<"keyring_createAccounts", "keyring_createAccounts">;
283
283
  params: import("@metamask/superstruct").Struct<{
@@ -295,11 +295,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
295
295
  entropySource: string;
296
296
  } | {
297
297
  type: "bip44:derive-index-range";
298
+ entropySource: string;
298
299
  range: {
299
300
  from: number;
300
301
  to: number;
301
302
  };
302
- entropySource: string;
303
303
  } | {
304
304
  type: "custom";
305
305
  } | {
@@ -323,11 +323,11 @@ export declare const CreateAccountsRequestStruct: import("@metamask/superstruct"
323
323
  entropySource: string;
324
324
  } | {
325
325
  type: "bip44:derive-index-range";
326
+ entropySource: string;
326
327
  range: {
327
328
  from: number;
328
329
  to: number;
329
330
  };
330
- entropySource: string;
331
331
  } | {
332
332
  type: "custom";
333
333
  } | {
@@ -344,6 +344,8 @@ export type CreateAccountsRequest = Infer<typeof CreateAccountsRequestStruct>;
344
344
  export declare const CreateAccountsResponseStruct: import("@metamask/superstruct").Struct<{
345
345
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
346
346
  id: string;
347
+ address: string;
348
+ scopes: `${string}:${string}`[];
347
349
  options: Record<string, import("@metamask/utils").Json> & {
348
350
  entropy?: {
349
351
  type: "mnemonic";
@@ -357,12 +359,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
357
359
  };
358
360
  exportable?: boolean;
359
361
  };
360
- address: string;
361
- scopes: `${string}:${string}`[];
362
362
  methods: string[];
363
363
  }[], import("@metamask/superstruct").Struct<{
364
364
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
365
365
  id: string;
366
+ address: string;
367
+ scopes: `${string}:${string}`[];
366
368
  options: Record<string, import("@metamask/utils").Json> & {
367
369
  entropy?: {
368
370
  type: "mnemonic";
@@ -376,8 +378,6 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
376
378
  };
377
379
  exportable?: boolean;
378
380
  };
379
- address: string;
380
- scopes: `${string}:${string}`[];
381
381
  methods: string[];
382
382
  }, {
383
383
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -411,12 +411,12 @@ export declare const CreateAccountsResponseStruct: import("@metamask/superstruct
411
411
  }>>;
412
412
  export type CreateAccountsResponse = Infer<typeof CreateAccountsResponseStruct>;
413
413
  export declare const SetSelectedAccountsRequestStruct: import("@metamask/superstruct").Struct<{
414
- method: "keyring_setSelectedAccounts";
415
414
  id: string | number | null;
416
- jsonrpc: "2.0";
415
+ method: "keyring_setSelectedAccounts";
417
416
  params: {
418
417
  accounts: string[];
419
418
  };
419
+ jsonrpc: "2.0";
420
420
  }, {
421
421
  method: import("@metamask/superstruct").Struct<"keyring_setSelectedAccounts", "keyring_setSelectedAccounts">;
422
422
  params: import("@metamask/superstruct").Struct<{
@@ -431,14 +431,14 @@ export type SetSelectedAccountsRequest = Infer<typeof SetSelectedAccountsRequest
431
431
  export declare const SetSelectedAccountsResponseStruct: import("@metamask/superstruct").Struct<null, null>;
432
432
  export type SetSelectedAccountsResponse = Infer<typeof SetSelectedAccountsResponseStruct>;
433
433
  export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruct").Struct<{
434
- method: "keyring_discoverAccounts";
435
434
  id: string | number | null;
436
- jsonrpc: "2.0";
435
+ method: "keyring_discoverAccounts";
437
436
  params: {
438
437
  groupIndex: number;
439
438
  scopes: `${string}:${string}`[];
440
439
  entropySource: string;
441
440
  };
441
+ jsonrpc: "2.0";
442
442
  }, {
443
443
  method: import("@metamask/superstruct").Struct<"keyring_discoverAccounts", "keyring_discoverAccounts">;
444
444
  params: import("@metamask/superstruct").Struct<{
@@ -469,9 +469,8 @@ export declare const DiscoverAccountsResponseStruct: import("@metamask/superstru
469
469
  }>>;
470
470
  export type DiscoverAccountsResponse = Infer<typeof DiscoverAccountsResponseStruct>;
471
471
  export declare const ListAccountTransactionsRequestStruct: import("@metamask/superstruct").Struct<{
472
- method: "keyring_listAccountTransactions";
473
472
  id: string | number | null;
474
- jsonrpc: "2.0";
473
+ method: "keyring_listAccountTransactions";
475
474
  params: {
476
475
  id: string;
477
476
  pagination: {
@@ -479,6 +478,7 @@ export declare const ListAccountTransactionsRequestStruct: import("@metamask/sup
479
478
  next?: string | null;
480
479
  };
481
480
  };
481
+ jsonrpc: "2.0";
482
482
  }, {
483
483
  method: import("@metamask/superstruct").Struct<"keyring_listAccountTransactions", "keyring_listAccountTransactions">;
484
484
  params: import("@metamask/superstruct").Struct<{
@@ -502,14 +502,19 @@ export declare const ListAccountTransactionsRequestStruct: import("@metamask/sup
502
502
  }>;
503
503
  export type ListAccountTransactionsRequest = Infer<typeof ListAccountTransactionsRequestStruct>;
504
504
  export declare const ListAccountTransactionsResponseStruct: import("@metamask/superstruct").Struct<{
505
+ next: string | null;
505
506
  data: {
506
- type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
507
+ type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "unknown";
507
508
  id: string;
509
+ account: string;
510
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
511
+ timestamp: number | null;
512
+ chain: `${string}:${string}`;
508
513
  from: {
509
514
  address: string;
510
515
  asset: {
511
- unit: string;
512
516
  type: `${string}:${string}/${string}:${string}`;
517
+ unit: string;
513
518
  amount: string;
514
519
  fungible: true;
515
520
  } | {
@@ -517,19 +522,11 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
517
522
  fungible: false;
518
523
  } | null;
519
524
  }[];
520
- events: {
521
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
522
- timestamp: number | null;
523
- }[];
524
- chain: `${string}:${string}`;
525
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
526
- account: string;
527
- timestamp: number | null;
528
525
  to: {
529
526
  address: string;
530
527
  asset: {
531
- unit: string;
532
528
  type: `${string}:${string}/${string}:${string}`;
529
+ unit: string;
533
530
  amount: string;
534
531
  fungible: true;
535
532
  } | {
@@ -540,8 +537,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
540
537
  fees: {
541
538
  type: "base" | "priority";
542
539
  asset: {
543
- unit: string;
544
540
  type: `${string}:${string}/${string}:${string}`;
541
+ unit: string;
545
542
  amount: string;
546
543
  fungible: true;
547
544
  } | {
@@ -549,21 +546,28 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
549
546
  fungible: false;
550
547
  };
551
548
  }[];
549
+ events: {
550
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
551
+ timestamp: number | null;
552
+ }[];
552
553
  details?: {
553
554
  origin?: string;
554
555
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
555
556
  };
556
557
  }[];
557
- next: string | null;
558
558
  }, {
559
559
  data: import("@metamask/superstruct").Struct<{
560
- type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
560
+ type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "unknown";
561
561
  id: string;
562
+ account: string;
563
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
564
+ timestamp: number | null;
565
+ chain: `${string}:${string}`;
562
566
  from: {
563
567
  address: string;
564
568
  asset: {
565
- unit: string;
566
569
  type: `${string}:${string}/${string}:${string}`;
570
+ unit: string;
567
571
  amount: string;
568
572
  fungible: true;
569
573
  } | {
@@ -571,19 +575,11 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
571
575
  fungible: false;
572
576
  } | null;
573
577
  }[];
574
- events: {
575
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
576
- timestamp: number | null;
577
- }[];
578
- chain: `${string}:${string}`;
579
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
580
- account: string;
581
- timestamp: number | null;
582
578
  to: {
583
579
  address: string;
584
580
  asset: {
585
- unit: string;
586
581
  type: `${string}:${string}/${string}:${string}`;
582
+ unit: string;
587
583
  amount: string;
588
584
  fungible: true;
589
585
  } | {
@@ -594,8 +590,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
594
590
  fees: {
595
591
  type: "base" | "priority";
596
592
  asset: {
597
- unit: string;
598
593
  type: `${string}:${string}/${string}:${string}`;
594
+ unit: string;
599
595
  amount: string;
600
596
  fungible: true;
601
597
  } | {
@@ -603,18 +599,26 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
603
599
  fungible: false;
604
600
  };
605
601
  }[];
602
+ events: {
603
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
604
+ timestamp: number | null;
605
+ }[];
606
606
  details?: {
607
607
  origin?: string;
608
608
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
609
609
  };
610
610
  }[], import("@metamask/superstruct").Struct<{
611
- type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
611
+ type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "unknown";
612
612
  id: string;
613
+ account: string;
614
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
615
+ timestamp: number | null;
616
+ chain: `${string}:${string}`;
613
617
  from: {
614
618
  address: string;
615
619
  asset: {
616
- unit: string;
617
620
  type: `${string}:${string}/${string}:${string}`;
621
+ unit: string;
618
622
  amount: string;
619
623
  fungible: true;
620
624
  } | {
@@ -622,19 +626,11 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
622
626
  fungible: false;
623
627
  } | null;
624
628
  }[];
625
- events: {
626
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
627
- timestamp: number | null;
628
- }[];
629
- chain: `${string}:${string}`;
630
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
631
- account: string;
632
- timestamp: number | null;
633
629
  to: {
634
630
  address: string;
635
631
  asset: {
636
- unit: string;
637
632
  type: `${string}:${string}/${string}:${string}`;
633
+ unit: string;
638
634
  amount: string;
639
635
  fungible: true;
640
636
  } | {
@@ -645,8 +641,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
645
641
  fees: {
646
642
  type: "base" | "priority";
647
643
  asset: {
648
- unit: string;
649
644
  type: `${string}:${string}/${string}:${string}`;
645
+ unit: string;
650
646
  amount: string;
651
647
  fungible: true;
652
648
  } | {
@@ -654,6 +650,10 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
654
650
  fungible: false;
655
651
  };
656
652
  }[];
653
+ events: {
654
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
655
+ timestamp: number | null;
656
+ }[];
657
657
  details?: {
658
658
  origin?: string;
659
659
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
@@ -669,8 +669,7 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
669
669
  failed: "failed";
670
670
  }>;
671
671
  timestamp: import("@metamask/superstruct").Struct<number | null, null>;
672
- type: import("@metamask/superstruct").Struct<"unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw", {
673
- unknown: "unknown";
672
+ type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "unknown", {
674
673
  send: "send";
675
674
  receive: "receive";
676
675
  swap: "swap";
@@ -678,12 +677,13 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
678
677
  "bridge:receive": "bridge:receive";
679
678
  "stake:deposit": "stake:deposit";
680
679
  "stake:withdraw": "stake:withdraw";
680
+ unknown: "unknown";
681
681
  }>;
682
682
  from: import("@metamask/superstruct").Struct<{
683
683
  address: string;
684
684
  asset: {
685
- unit: string;
686
685
  type: `${string}:${string}/${string}:${string}`;
686
+ unit: string;
687
687
  amount: string;
688
688
  fungible: true;
689
689
  } | {
@@ -693,8 +693,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
693
693
  }[], import("@metamask/superstruct").Struct<{
694
694
  address: string;
695
695
  asset: {
696
- unit: string;
697
696
  type: `${string}:${string}/${string}:${string}`;
697
+ unit: string;
698
698
  amount: string;
699
699
  fungible: true;
700
700
  } | {
@@ -704,8 +704,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
704
704
  }, {
705
705
  address: import("@metamask/superstruct").Struct<string, null>;
706
706
  asset: import("@metamask/superstruct").Struct<{
707
- unit: string;
708
707
  type: `${string}:${string}/${string}:${string}`;
708
+ unit: string;
709
709
  amount: string;
710
710
  fungible: true;
711
711
  } | {
@@ -716,8 +716,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
716
716
  to: import("@metamask/superstruct").Struct<{
717
717
  address: string;
718
718
  asset: {
719
- unit: string;
720
719
  type: `${string}:${string}/${string}:${string}`;
720
+ unit: string;
721
721
  amount: string;
722
722
  fungible: true;
723
723
  } | {
@@ -727,8 +727,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
727
727
  }[], import("@metamask/superstruct").Struct<{
728
728
  address: string;
729
729
  asset: {
730
- unit: string;
731
730
  type: `${string}:${string}/${string}:${string}`;
731
+ unit: string;
732
732
  amount: string;
733
733
  fungible: true;
734
734
  } | {
@@ -738,8 +738,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
738
738
  }, {
739
739
  address: import("@metamask/superstruct").Struct<string, null>;
740
740
  asset: import("@metamask/superstruct").Struct<{
741
- unit: string;
742
741
  type: `${string}:${string}/${string}:${string}`;
742
+ unit: string;
743
743
  amount: string;
744
744
  fungible: true;
745
745
  } | {
@@ -750,8 +750,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
750
750
  fees: import("@metamask/superstruct").Struct<{
751
751
  type: "base" | "priority";
752
752
  asset: {
753
- unit: string;
754
753
  type: `${string}:${string}/${string}:${string}`;
754
+ unit: string;
755
755
  amount: string;
756
756
  fungible: true;
757
757
  } | {
@@ -761,8 +761,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
761
761
  }[], import("@metamask/superstruct").Struct<{
762
762
  type: "base" | "priority";
763
763
  asset: {
764
- unit: string;
765
764
  type: `${string}:${string}/${string}:${string}`;
765
+ unit: string;
766
766
  amount: string;
767
767
  fungible: true;
768
768
  } | {
@@ -775,8 +775,8 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
775
775
  priority: "priority";
776
776
  }>;
777
777
  asset: import("@metamask/superstruct").Struct<{
778
- unit: string;
779
778
  type: `${string}:${string}/${string}:${string}`;
779
+ unit: string;
780
780
  amount: string;
781
781
  fungible: true;
782
782
  } | {
@@ -815,12 +815,12 @@ export declare const ListAccountTransactionsResponseStruct: import("@metamask/su
815
815
  }>;
816
816
  export type ListAccountTransactionsResponse = Infer<typeof ListAccountTransactionsResponseStruct>;
817
817
  export declare const ListAccountAssetsRequestStruct: import("@metamask/superstruct").Struct<{
818
- method: "keyring_listAccountAssets";
819
818
  id: string | number | null;
820
- jsonrpc: "2.0";
819
+ method: "keyring_listAccountAssets";
821
820
  params: {
822
821
  id: string;
823
822
  };
823
+ jsonrpc: "2.0";
824
824
  }, {
825
825
  method: import("@metamask/superstruct").Struct<"keyring_listAccountAssets", "keyring_listAccountAssets">;
826
826
  params: import("@metamask/superstruct").Struct<{
@@ -835,13 +835,13 @@ export type ListAccountAssetsRequest = Infer<typeof ListAccountAssetsRequestStru
835
835
  export declare const ListAccountAssetsResponseStruct: import("@metamask/superstruct").Struct<(`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`)[], import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}` | `${string}:${string}/${string}:${string}/${string}`, null>>;
836
836
  export type ListAccountAssetsResponse = Infer<typeof ListAccountAssetsResponseStruct>;
837
837
  export declare const GetAccountBalancesRequestStruct: import("@metamask/superstruct").Struct<{
838
- method: "keyring_getAccountBalances";
839
838
  id: string | number | null;
840
- jsonrpc: "2.0";
839
+ method: "keyring_getAccountBalances";
841
840
  params: {
842
841
  id: string;
843
842
  assets: `${string}:${string}/${string}:${string}`[];
844
843
  };
844
+ jsonrpc: "2.0";
845
845
  }, {
846
846
  method: import("@metamask/superstruct").Struct<"keyring_getAccountBalances", "keyring_getAccountBalances">;
847
847
  params: import("@metamask/superstruct").Struct<{
@@ -861,40 +861,40 @@ export declare const GetAccountBalancesResponseStruct: import("@metamask/superst
861
861
  }>, null>;
862
862
  export type GetAccountBalancesResponse = Infer<typeof GetAccountBalancesResponseStruct>;
863
863
  export declare const ResolveAccountAddressRequestStruct: import("@metamask/superstruct").Struct<{
864
- method: "keyring_resolveAccountAddress";
865
864
  id: string | number | null;
866
- jsonrpc: "2.0";
865
+ method: "keyring_resolveAccountAddress";
867
866
  params: {
867
+ scope: `${string}:${string}`;
868
868
  request: {
869
- method: string;
870
- id: string | number | null;
871
869
  jsonrpc: "2.0";
872
- params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
870
+ id: string | number | null;
871
+ method: string;
872
+ params?: import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>;
873
873
  };
874
- scope: `${string}:${string}`;
875
874
  };
875
+ jsonrpc: "2.0";
876
876
  }, {
877
877
  method: import("@metamask/superstruct").Struct<"keyring_resolveAccountAddress", "keyring_resolveAccountAddress">;
878
878
  params: import("@metamask/superstruct").Struct<{
879
+ scope: `${string}:${string}`;
879
880
  request: {
880
- method: string;
881
- id: string | number | null;
882
881
  jsonrpc: "2.0";
883
- params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
882
+ id: string | number | null;
883
+ method: string;
884
+ params?: import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>;
884
885
  };
885
- scope: `${string}:${string}`;
886
886
  }, {
887
887
  scope: import("@metamask/superstruct").Struct<`${string}:${string}`, null>;
888
888
  request: import("@metamask/superstruct").Struct<{
889
- method: string;
890
- id: string | number | null;
891
889
  jsonrpc: "2.0";
892
- params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
890
+ id: string | number | null;
891
+ method: string;
892
+ params?: import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>;
893
893
  }, {
894
894
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
895
895
  id: import("@metamask/superstruct").Struct<string | number | null, null>;
896
896
  method: import("@metamask/superstruct").Struct<string, null>;
897
- params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
897
+ params: import("@metamask/superstruct").Struct<import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[] | Record<string, import("@metamask/utils").Json>, null>;
898
898
  }>;
899
899
  }>;
900
900
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
@@ -908,13 +908,13 @@ export declare const ResolveAccountAddressResponseStruct: import("@metamask/supe
908
908
  }>;
909
909
  export type ResolveAccountAddressResponse = Infer<typeof ResolveAccountAddressResponseStruct>;
910
910
  export declare const FilterAccountChainsStruct: import("@metamask/superstruct").Struct<{
911
- method: "keyring_filterAccountChains";
912
911
  id: string | number | null;
913
- jsonrpc: "2.0";
912
+ method: "keyring_filterAccountChains";
914
913
  params: {
915
914
  id: string;
916
915
  chains: string[];
917
916
  };
917
+ jsonrpc: "2.0";
918
918
  }, {
919
919
  method: import("@metamask/superstruct").Struct<"keyring_filterAccountChains", "keyring_filterAccountChains">;
920
920
  params: import("@metamask/superstruct").Struct<{
@@ -931,13 +931,14 @@ export type FilterAccountChainsRequest = Infer<typeof FilterAccountChainsStruct>
931
931
  export declare const FilterAccountChainsResponseStruct: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
932
932
  export type FilterAccountChainsResponse = Infer<typeof FilterAccountChainsResponseStruct>;
933
933
  export declare const UpdateAccountRequestStruct: import("@metamask/superstruct").Struct<{
934
- method: "keyring_updateAccount";
935
934
  id: string | number | null;
936
- jsonrpc: "2.0";
935
+ method: "keyring_updateAccount";
937
936
  params: {
938
937
  account: {
939
938
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
940
939
  id: string;
940
+ address: string;
941
+ scopes: `${string}:${string}`[];
941
942
  options: Record<string, import("@metamask/utils").Json> & {
942
943
  entropy?: {
943
944
  type: "mnemonic";
@@ -951,17 +952,18 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
951
952
  };
952
953
  exportable?: boolean;
953
954
  };
954
- address: string;
955
- scopes: `${string}:${string}`[];
956
955
  methods: string[];
957
956
  };
958
957
  };
958
+ jsonrpc: "2.0";
959
959
  }, {
960
960
  method: import("@metamask/superstruct").Struct<"keyring_updateAccount", "keyring_updateAccount">;
961
961
  params: import("@metamask/superstruct").Struct<{
962
962
  account: {
963
963
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
964
964
  id: string;
965
+ address: string;
966
+ scopes: `${string}:${string}`[];
965
967
  options: Record<string, import("@metamask/utils").Json> & {
966
968
  entropy?: {
967
969
  type: "mnemonic";
@@ -975,14 +977,14 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
975
977
  };
976
978
  exportable?: boolean;
977
979
  };
978
- address: string;
979
- scopes: `${string}:${string}`[];
980
980
  methods: string[];
981
981
  };
982
982
  }, {
983
983
  account: import("@metamask/superstruct").Struct<{
984
984
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
985
985
  id: string;
986
+ address: string;
987
+ scopes: `${string}:${string}`[];
986
988
  options: Record<string, import("@metamask/utils").Json> & {
987
989
  entropy?: {
988
990
  type: "mnemonic";
@@ -996,8 +998,6 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
996
998
  };
997
999
  exportable?: boolean;
998
1000
  };
999
- address: string;
1000
- scopes: `${string}:${string}`[];
1001
1001
  methods: string[];
1002
1002
  }, {
1003
1003
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -1037,12 +1037,12 @@ export type UpdateAccountRequest = Infer<typeof UpdateAccountRequestStruct>;
1037
1037
  export declare const UpdateAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
1038
1038
  export type UpdateAccountResponse = Infer<typeof UpdateAccountResponseStruct>;
1039
1039
  export declare const DeleteAccountRequestStruct: import("@metamask/superstruct").Struct<{
1040
- method: "keyring_deleteAccount";
1041
1040
  id: string | number | null;
1042
- jsonrpc: "2.0";
1041
+ method: "keyring_deleteAccount";
1043
1042
  params: {
1044
1043
  id: string;
1045
1044
  };
1045
+ jsonrpc: "2.0";
1046
1046
  }, {
1047
1047
  method: import("@metamask/superstruct").Struct<"keyring_deleteAccount", "keyring_deleteAccount">;
1048
1048
  params: import("@metamask/superstruct").Struct<{
@@ -1057,12 +1057,12 @@ export type DeleteAccountRequest = Infer<typeof DeleteAccountRequestStruct>;
1057
1057
  export declare const DeleteAccountResponseStruct: import("@metamask/superstruct").Struct<null, null>;
1058
1058
  export type DeleteAccountResponse = Infer<typeof DeleteAccountResponseStruct>;
1059
1059
  export declare const ExportAccountRequestStruct: import("@metamask/superstruct").Struct<{
1060
- method: "keyring_exportAccount";
1061
1060
  id: string | number | null;
1062
- jsonrpc: "2.0";
1061
+ method: "keyring_exportAccount";
1063
1062
  params: {
1064
1063
  id: string;
1065
1064
  };
1065
+ jsonrpc: "2.0";
1066
1066
  }, {
1067
1067
  method: import("@metamask/superstruct").Struct<"keyring_exportAccount", "keyring_exportAccount">;
1068
1068
  params: import("@metamask/superstruct").Struct<{
@@ -1077,8 +1077,8 @@ export type ExportAccountRequest = Infer<typeof ExportAccountRequestStruct>;
1077
1077
  export declare const ExportAccountResponseStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
1078
1078
  export type ExportAccountResponse = Infer<typeof ExportAccountResponseStruct>;
1079
1079
  export declare const ListRequestsRequestStruct: import("@metamask/superstruct").Struct<{
1080
- method: "keyring_listRequests";
1081
1080
  id: string | number | null;
1081
+ method: "keyring_listRequests";
1082
1082
  jsonrpc: "2.0";
1083
1083
  }, {
1084
1084
  method: import("@metamask/superstruct").Struct<"keyring_listRequests", "keyring_listRequests">;
@@ -1088,22 +1088,22 @@ export declare const ListRequestsRequestStruct: import("@metamask/superstruct").
1088
1088
  export type ListRequestsRequest = Infer<typeof ListRequestsRequestStruct>;
1089
1089
  export declare const ListRequestsResponseStruct: import("@metamask/superstruct").Struct<{
1090
1090
  id: string;
1091
+ scope: string;
1092
+ account: string;
1091
1093
  origin: string;
1092
1094
  request: {
1093
1095
  method: string;
1094
1096
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1095
1097
  };
1096
- scope: string;
1097
- account: string;
1098
1098
  }[], import("@metamask/superstruct").Struct<{
1099
1099
  id: string;
1100
+ scope: string;
1101
+ account: string;
1100
1102
  origin: string;
1101
1103
  request: {
1102
1104
  method: string;
1103
1105
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1104
1106
  };
1105
- scope: string;
1106
- account: string;
1107
1107
  }, {
1108
1108
  id: import("@metamask/superstruct").Struct<string, null>;
1109
1109
  scope: import("@metamask/superstruct").Struct<string, null>;
@@ -1114,17 +1114,17 @@ export declare const ListRequestsResponseStruct: import("@metamask/superstruct")
1114
1114
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1115
1115
  }, {
1116
1116
  method: import("@metamask/superstruct").Struct<string, null>;
1117
- params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
1117
+ params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
1118
1118
  }>;
1119
1119
  }>>;
1120
1120
  export type ListRequestsResponse = Infer<typeof ListRequestsResponseStruct>;
1121
1121
  export declare const GetRequestRequestStruct: import("@metamask/superstruct").Struct<{
1122
- method: "keyring_getRequest";
1123
1122
  id: string | number | null;
1124
- jsonrpc: "2.0";
1123
+ method: "keyring_getRequest";
1125
1124
  params: {
1126
1125
  id: string;
1127
1126
  };
1127
+ jsonrpc: "2.0";
1128
1128
  }, {
1129
1129
  method: import("@metamask/superstruct").Struct<"keyring_getRequest", "keyring_getRequest">;
1130
1130
  params: import("@metamask/superstruct").Struct<{
@@ -1138,13 +1138,13 @@ export declare const GetRequestRequestStruct: import("@metamask/superstruct").St
1138
1138
  export type GetRequestRequest = Infer<typeof GetRequestRequestStruct>;
1139
1139
  export declare const GetRequestResponseStruct: import("@metamask/superstruct").Struct<{
1140
1140
  id: string;
1141
+ scope: string;
1142
+ account: string;
1141
1143
  origin: string;
1142
1144
  request: {
1143
1145
  method: string;
1144
1146
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1145
1147
  };
1146
- scope: string;
1147
- account: string;
1148
1148
  }, {
1149
1149
  id: import("@metamask/superstruct").Struct<string, null>;
1150
1150
  scope: import("@metamask/superstruct").Struct<string, null>;
@@ -1155,35 +1155,35 @@ export declare const GetRequestResponseStruct: import("@metamask/superstruct").S
1155
1155
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1156
1156
  }, {
1157
1157
  method: import("@metamask/superstruct").Struct<string, null>;
1158
- params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
1158
+ params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
1159
1159
  }>;
1160
1160
  }>;
1161
1161
  export type GetRequestResponse = Infer<typeof GetRequestResponseStruct>;
1162
1162
  export declare const SubmitRequestRequestStruct: import("@metamask/superstruct").Struct<{
1163
- method: "keyring_submitRequest";
1164
1163
  id: string | number | null;
1165
- jsonrpc: "2.0";
1164
+ method: "keyring_submitRequest";
1166
1165
  params: {
1167
1166
  id: string;
1167
+ scope: string;
1168
+ account: string;
1168
1169
  origin: string;
1169
1170
  request: {
1170
1171
  method: string;
1171
1172
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1172
1173
  };
1173
- scope: string;
1174
- account: string;
1175
1174
  };
1175
+ jsonrpc: "2.0";
1176
1176
  }, {
1177
1177
  method: import("@metamask/superstruct").Struct<"keyring_submitRequest", "keyring_submitRequest">;
1178
1178
  params: import("@metamask/superstruct").Struct<{
1179
1179
  id: string;
1180
+ scope: string;
1181
+ account: string;
1180
1182
  origin: string;
1181
1183
  request: {
1182
1184
  method: string;
1183
1185
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1184
1186
  };
1185
- scope: string;
1186
- account: string;
1187
1187
  }, {
1188
1188
  id: import("@metamask/superstruct").Struct<string, null>;
1189
1189
  scope: import("@metamask/superstruct").Struct<string, null>;
@@ -1194,7 +1194,7 @@ export declare const SubmitRequestRequestStruct: import("@metamask/superstruct")
1194
1194
  params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
1195
1195
  }, {
1196
1196
  method: import("@metamask/superstruct").Struct<string, null>;
1197
- params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
1197
+ params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
1198
1198
  }>;
1199
1199
  }>;
1200
1200
  jsonrpc: import("@metamask/superstruct").Struct<"2.0", "2.0">;
@@ -1208,23 +1208,23 @@ export declare const SubmitRequestResponseStruct: import("@metamask/superstruct"
1208
1208
  url?: string;
1209
1209
  };
1210
1210
  } | {
1211
- result: import("@metamask/utils").Json;
1212
1211
  pending: false;
1212
+ result: import("@metamask/utils").Json;
1213
1213
  }, null>;
1214
1214
  export type SubmitRequestResponse = Infer<typeof SubmitRequestResponseStruct>;
1215
1215
  export declare const ApproveRequestRequestStruct: import("@metamask/superstruct").Struct<{
1216
- method: "keyring_approveRequest";
1217
1216
  id: string | number | null;
1218
- jsonrpc: "2.0";
1217
+ method: "keyring_approveRequest";
1219
1218
  params: {
1220
- data: Record<string, import("@metamask/utils").Json>;
1221
1219
  id: string;
1220
+ data: Record<string, import("@metamask/utils").Json>;
1222
1221
  };
1222
+ jsonrpc: "2.0";
1223
1223
  }, {
1224
1224
  method: import("@metamask/superstruct").Struct<"keyring_approveRequest", "keyring_approveRequest">;
1225
1225
  params: import("@metamask/superstruct").Struct<{
1226
- data: Record<string, import("@metamask/utils").Json>;
1227
1226
  id: string;
1227
+ data: Record<string, import("@metamask/utils").Json>;
1228
1228
  }, {
1229
1229
  id: import("@metamask/superstruct").Struct<string, null>;
1230
1230
  data: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
@@ -1236,12 +1236,12 @@ export type ApproveRequestRequest = Infer<typeof ApproveRequestRequestStruct>;
1236
1236
  export declare const ApproveRequestResponseStruct: import("@metamask/superstruct").Struct<null, null>;
1237
1237
  export type ApproveRequestResponse = Infer<typeof ApproveRequestResponseStruct>;
1238
1238
  export declare const RejectRequestRequestStruct: import("@metamask/superstruct").Struct<{
1239
- method: "keyring_rejectRequest";
1240
1239
  id: string | number | null;
1241
- jsonrpc: "2.0";
1240
+ method: "keyring_rejectRequest";
1242
1241
  params: {
1243
1242
  id: string;
1244
1243
  };
1244
+ jsonrpc: "2.0";
1245
1245
  }, {
1246
1246
  method: import("@metamask/superstruct").Struct<"keyring_rejectRequest", "keyring_rejectRequest">;
1247
1247
  params: import("@metamask/superstruct").Struct<{