@metamask-previews/assets-controllers
TypeScript icon, indicating that this package has built-in type declarations

11.0.1-preview.d32a7cc • Public • Published

@metamask/assets-controllers

Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs).

Installation

yarn add @metamask/assets-controllers

or

npm install @metamask/assets-controllers

Controllers

This package features the following controllers:

  • AccountTrackerController keeps a updated list of the accounts in the currently selected keychain which is updated automatically on a schedule or on demand.
  • AssetsContractController provides a set of convenience methods that use contracts to retrieve information about tokens, read token balances, and transfer tokens.
  • CollectibleDetectionController keeps a periodically updated list of ERC-721 tokens assigned to the currently selected address.
  • CollectiblesController tracks ERC-721 and ERC-1155 tokens assigned to the currently selected address, using OpenSea to retrieve token information.
  • CurrencyRateController keeps a periodically updated value of the exchange rate from the currently selected "native" currency to another (handling testnet tokens specially).
  • TokenBalancesController keeps a periodically updated set of balances for the current set of ERC-20 tokens.
  • TokenDetectionController keeps a periodically updated list of ERC-20 tokens assigned to the currently selected address.
  • TokenListController uses the MetaSwap API to keep a periodically updated list of known ERC-20 tokens along with their metadata.
  • TokenRatesController keeps a periodically updated list of exchange rates for known ERC-20 tokens relative to the currently selected native currency.
  • TokensController stores the ERC-20 and ERC-721 tokens, along with their metadata, that are listed in the wallet under the currently selected address on the currently selected chain.

Contributing

This package is part of a monorepo. Instructions for contributing can be found in the monorepo README.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
11.0.1-preview.d32a7cc39latest
45.1.2-preview-e218ba3336preview

Version History

VersionDownloads (Last 7 Days)Published
45.1.2-preview-e218ba3336
45.1.2-preview-209dbcc41
45.1.2-preview-579728ba40
45.1.2-preview-2a983d2740
45.1.2-preview-19e52ec038
45.1.2-preview-cb80b96638
45.1.2-preview-80f4288948
45.1.2-preview-59d85cb49
45.1.2-preview-28a975345
45.1.2-preview-cdf3e01b24
45.1.1-preview-953c11ad8
45.1.1-preview-5db6a4247
45.1.1-preview-470d2e314
45.1.1-preview-a9d278255
45.1.1-preview-8b3486904
45.1.1-preview-afdccab25
45.1.1-preview-1d772cc7
45.1.1-preview-ef8b0f5770
45.1.0-preview-e58ce4ab5
45.1.1-preview-e335bd174
45.1.1-preview-a283708e3
45.1.1-preview-5eef594d2
45.1.1-preview-16ba2ba2
45.1.1-preview-9e6771630
45.1.1-preview-00ea290f1
45.1.1-preview-73fa7bfb0
45.1.1-preview-9cfbf21f0
45.1.1-preview-3178c25e1
45.1.1-preview-9c296dcb0
45.1.1-preview-a1e11fbb0
45.1.1-preview-3280bd30
45.1.1-preview-23fc04cd0
45.1.1-preview-50473330
45.1.1-preview-e644b4f0
45.1.1-preview-e1a582c93
45.1.1-preview-175f4f5d1
45.1.1-preview-9e30e90a0
45.1.0-preview-a0b32c130
45.1.1-preview-977dd3f90
45.1.0-preview-57e6ab5d1
45.1.0-preview-315645660
45.1.0-preview-fcaebe2b0
45.1.0-preview-b8323ae41
45.1.0-preview-8bf187290
45.1.0-preview-890d317c1
45.1.0-preview-a82fd890
45.1.0-preview-1c8fd6331
45.1.0-preview-9b7b95ec0
45.1.0-preview-4fc4dc871
45.1.0-preview-f06d03460
45.1.0-preview-ad39b13e0
45.1.0-preview-8a04affb0
45.1.0-preview-5544fdb20
45.1.0-preview-7f2622940
45.1.0-preview-944be5340
45.1.0-preview-2eec965c0
45.1.0-preview-d1104b690
45.1.0-preview-aef155f60
45.1.0-preview-09dff6fd0
45.1.0-preview-76d529360
45.1.0-preview-2b9717c0
45.1.0-preview-50bb1e2c0
45.1.0-preview-f4bb67191
45.1.0-preview-8a7e499b0
45.1.0-preview-6879d4ce1
45.1.0-preview-ebca69670
45.1.0-preview-9959ebb61
45.1.0-preview-aefb09ff1
45.1.0-preview-9d476a50
45.1.0-preview-6732cd9a1
45.1.0-preview-b5d0cd701
45.0.0-preview-439ef9ba0
44.1.0-preview-6f3061d20
44.1.0-preview-690da12e1
45.0.0-preview-62975b620
45.0.0-preview-c58e39462
45.0.0-preview-0d167a3d0
45.0.0-preview-e67226250
44.1.0-preview-fd7ad7de1
44.1.0-preview-608079df2
44.1.0-preview-dc7114cb1
44.1.0-preview-61d7fc251
42.0.0-preview-de5d2fda1
44.1.0-preview-3487bcdd0
44.1.0-preview-bc072ca42
44.0.1-preview-261187131
44.0.1-preview-fcc71a01
44.0.1-preview-ff9209e1
44.0.0-preview-913143f2
44.0.0-preview-fc955bd02
44.0.0-preview-335c46441
44.0.0-preview-3d44b9651
43.0.0-preview-14d3599e1
44.0.0-preview-bb2f1fdd1
44.0.0-preview-af3925060
43.0.0-preview-913113cf1
43.0.0-preview-49553b361
42.0.0-preview-c10c81172
44.0.0-preview-e23a91fa2
44.0.0-preview-846d28f31
44.0.0-preview-eb8164800
44.0.0-preview-98c8c660
44.0.0-preview-f68393e1
42.0.0-preview-7692db0d0
43.0.0-preview-e6757fdb0
43.0.0-preview-fefbd3250
42.0.0-preview-3f52b8141
42.0.0-preview-1b536ac1
42.0.0-preview-03271630
42.0.0-preview-66b0cbe0
42.0.0-preview-5c7c2bc50
42.0.0-preview-35c9c850
42.0.0-preview-3399c81f0
42.0.0-preview-651fe3660
42.0.0-preview-ec72890e0
41.0.0-preview-db2c53b0
41.0.0-preview-699c6b6a0
40.0.0-preview-39249b01
40.0.0-preview-1152bfb0
40.0.0-preview-fa7d96bb0
40.0.0-preview-c6d939c90
39.0.0-preview-1e2accee1
39.0.0-preview-374ec2c30
39.0.0-preview-6bb6f5530
39.0.0-preview-9e22b9bb0
39.0.0-preview-f504f91d0
39.0.0-preview-3806a69c1
39.0.0-preview-f6c3e03d0
39.0.0-preview-c3543e680
39.0.0-preview-f9d641750
39.0.0-preview-d823fc291
39.0.0-preview-491997260
39.0.0-preview-b4526f730
39.0.0-preview-e9ee650e1
39.0.0-preview-e7f13cec0
39.0.0-preview-5b0b6ae70
39.0.0-preview-5c5345700
39.0.0-preview-8518e6171
38.3.0-preview-3c1aabe61
39.0.0-preview-c77aebdb0
39.0.0-preview-7d32a0b20
39.0.0-preview-1800a1700
39.0.0-preview-e34032be1
39.0.0-preview-ead2f4391
39.0.0-preview-257618a80
39.0.0-preview-b7ea5d520
38.3.0-preview-557a8fcb0
38.3.0-preview-b673f62a0
38.3.0-preview-dae4f73d0
38.3.0-preview-ba210ac40
38.3.0-preview-afb2e2c00
38.3.0-preview-71085a041
38.3.0-preview-378c1be1
38.3.0-preview-00a41cb80
38.3.0-preview-ada451da0
38.3.0-preview-2c5a4f930
38.3.0-preview-54f7c4970
38.3.0-preview-8c68b2ec0
38.3.0-preview-597e83771
38.3.0-preview-200beb790
38.3.0-preview-5fcf6d0c0
38.3.0-preview-1159a55d0
38.3.0-preview-afe5cb930
38.3.0-preview-a13b9c750
38.3.0-preview-42134f7e0
38.3.0-preview-3fec6ed0
38.3.0-preview-a66fa61a1
38.3.0-preview-c636def0
38.3.0-preview-1cd8ef20
38.3.0-preview-a0bb2780
38.3.0-preview-85a723e0
38.3.0-preview-2f4bcaa90
38.2.0-preview-2ccc49000
38.2.0-preview-e46fca9e0
38.2.0-preview-b81ac8410
38.2.0-preview-d33a5c020
38.1.0-preview-9d54fee1
38.1.0-preview-a796ac70
38.1.0-preview-2b91ea10
38.1.0-preview-13318eb0
38.1.0-preview-3940b6ca0
38.1.0-preview-c55c3a390
38.1.0-preview-f576f940
38.1.0-preview-1510ded60
38.0.0-preview-09a2ffd50
38.0.1-preview-113f7cb1
38.0.1-preview-f6589ba60
38.0.1-preview-09a04b280
38.0.1-preview-8c523450
38.0.1-preview-88fd50e0
38.0.1-preview-7e35ac61
38.0.1-preview-9735ac70
38.0.1-preview-4968a251
38.0.1-preview-cf2e5691
38.0.1-preview-7ccbf591
38.0.1-preview-bff78ca0
38.0.1-preview-067f2f060
38.0.1-preview-9c79590a0
38.0.1-preview-e34879fb0
38.0.0-preview-9d3106880
38.0.0-preview-cf09c0a0
38.0.0-preview-9edcf0e01
38.0.0-preview-367cb1da0
38.0.0-preview-883957570
38.0.0-preview-105f97831
38.0.0-preview-a2f95970
38.0.0-preview-c1e764d0
38.0.0-preview-f0541270
38.0.0-preview-53d228a0
38.0.0-preview-3e4b13400
38.0.0-preview-0e3283a0
38.0.0-preview-39802fe20
38.0.0-preview-374504160
38.0.0-preview-6ea311ff1
38.0.0-preview-473880a10
37.0.0-preview-02e7ff990
37.0.0-preview-046571530
37.0.0-preview-3b4ca9580
37.0.0-preview-b59ee0c80
37.0.0-preview-b5937ee40
37.0.0-preview-4c8f928a0
37.0.0-preview-5dfbc0bb1
37.0.0-preview-c17fb7e41
37.0.0-preview-55ed7a460
37.0.0-preview-5481b7091
37.0.0-preview-c1b77f050
37.0.0-preview-4f1ca72a0
37.0.0-preview-e8f9512d0
37.0.0-preview-63249efd0
37.0.0-preview-72c39e390
37.0.0-preview-aa054ee61
37.0.0-preview-04d601b1
37.0.0-preview-5a93d6550
37.0.0-preview-21d139ea1
37.0.0-preview-1e843261
37.0.0-preview-12fc043b0
37.0.0-preview-55328a60
37.0.0-preview-7f2b73071
37.0.0-preview-401e73190
37.0.0-preview-a90bc7170
37.0.0-preview-2ca90380
37.0.0-preview-b42590f1
37.0.0-preview-1f291510
37.0.0-preview-f59de5e0
37.0.0-preview-c081c5031
37.0.0-preview-89bd4430
37.0.0-preview-b3934e0e0
37.0.0-preview-1d51fda50
37.0.0-preview-c50d4e850
37.0.0-preview-aaea6b50
37.0.0-preview-ea7e75d50
36.0.0-preview-0e332651
36.0.0-preview-5492a3a0
36.0.0-preview-16e6df40
36.0.0-preview-a637f1331
36.0.0-preview-b0e8a440
36.0.0-preview-276db0380
36.0.0-preview-e9effc960
36.0.0-preview-ee06f3050
35.0.0-preview-150994380
35.0.0-preview-e4ec85f0
35.0.0-preview-5ba43a241
35.0.0-preview-4f2229350
35.0.0-preview-0338bfe0
34.0.0-preview-f776a3950
34.0.0-preview-3ee9d02a0
34.0.0-preview-a6b313541
34.0.0-preview-80f6e800
34.0.0-preview-ab3ae740
34.0.0-preview-f76f3001
34.0.0-preview-6c18bc61
34.0.0-preview-ece76bc1
34.0.0-preview-ca4ed28f0
34.0.0-preview-28c655661
34.0.0-preview-1c4ca62e0
34.0.0-preview-2079df50
33.0.0-preview-4ca728480
33.0.0-preview-ab5de0250
33.0.0-preview-30646c8e1
33.0.0-preview-1f998a491
33.0.0-preview-83ca56e0
33.0.0-preview-ed5d02230
33.0.0-preview-129e011c0
33.0.0-preview-caf274f81
33.0.0-preview-bc4ac8fa0
33.0.0-preview-509f79520
33.0.0-preview-950893670
33.0.0-preview-7ff4bd7f0
33.0.0-preview-e7518590
33.0.0-preview-23a96ae0
33.0.0-preview-98d4c2a00
33.0.0-preview-707aca20
33.0.0-preview-8ab89f220
33.0.0-preview-db28cc440
33.0.0-preview-0ee2e0a70
33.0.0-preview-b09c2ed0
32.0.0-preview-24c396ed0
31.0.0-preview-fbd816b50
32.0.0-preview-0f65e9e0
32.0.0-preview-06438f41
32.0.0-preview-5dd046d0
32.0.0-preview-e2529f00
32.0.0-preview-d47204930
32.0.0-preview-c439acc50
32.0.0-preview-8e7089690
30.0.0-preview-4a95e5f1
29.0.0-preview-ff0abae0
29.0.0-preview-20081740
29.0.0-preview-9668d770
29.0.0-preview-4f42b7470
29.0.0-preview-4e7f4930
29.0.0-preview-f541860b1
29.0.0-preview-73f66baf0
29.0.0-preview-eb2b18751
29.0.0-preview-a6633f220
29.0.0-preview-699063fc0
29.0.0-preview-a1db07141
29.0.0-preview-0985d480
29.0.0-preview-3301ad90
29.0.0-preview-a52bc220
28.0.0-preview-0e5df3330
29.0.0-preview-16b57110
29.0.0-preview-4a029d80
28.0.0-preview-96ea89dc0
28.0.0-preview-02d970ca0
28.0.0-preview-cb17e990
28.0.0-preview-aedc51030
28.0.0-preview-61ace68c0
28.0.0-preview-2036edd10
28.0.0-preview-f6e87830
28.0.0-preview-fb52b9eb0
28.0.0-preview-11ae5130
27.2.0-preview-f04be62f0
27.2.0-preview-e24bcd2e0
27.2.0-preview-92860b3f0
27.2.0-preview-eec1f900
27.2.0-preview-a8ffe8e0
27.2.0-preview-14be4d00
27.2.0-preview-07ab4241
27.2.0-preview-59bf6d5d0
27.2.0-preview-97731c30
27.1.0-preview-68beceb00
27.0.1-preview-450169270
27.0.1-preview-4851cbc91
27.0.1-preview-a35008730
27.0.1-preview-da8ff5ef0
27.0.1-preview-d4ae7970
26.0.0-preview.eb2135e0
26.0.0-preview.d78968a20
26.0.0-preview.051e57420
26.0.0-preview.98e0baef0
26.0.0-preview.53232c550
26.0.0-preview.e5c396b0
26.0.0-preview.6dad4030
25.0.0-preview.867b00ee1
25.0.0-preview.303e5090
25.0.0-preview.48a1e390
25.0.0-preview.591564030
25.0.0-preview.0a7589e71
25.0.0-preview.bf56dac0
25.0.0-preview.6772b110
25.0.0-preview.0dea691a0
25.0.0-preview.c0e7b340
25.0.0-preview.498e9e10
25.0.0-preview.6fdee420
25.0.0-preview.c5f6cb40
25.0.0-preview.3b3808ff1
25.0.0-preview.1a0f39340
25.0.0-preview.280e51c70
25.0.0-preview.b9f6d860
25.0.0-preview.91dd28a0
25.0.0-preview.a3a31210
25.0.0-preview.3905f510
25.0.0-preview.bc4dd9410
25.0.0-preview.08978bf0
25.0.0-preview.7fd401b0
25.0.0-preview.83a88a40
25.0.0-preview.769ba8c0
24.0.0-preview.ba1259730
25.0.0-preview.dad68d40
25.0.0-preview.d392f460
25.0.0-preview.cbe2fbb70
25.0.0-preview.56c809810
25.0.0-preview.8cdddaf0
25.0.0-preview.24316020
24.0.0-preview.57d41d40
23.1.0-preview.228ccaca0
24.0.0-preview.d3578890
24.0.0-preview.1ef189c0
23.1.0-preview.5937ab1d1
23.1.0-preview.fa5298840
23.1.0-preview.353ee83b0
23.0.0-preview.c9a5f6a50
20.0.0-preview.3fbb6b410
19.0.0-preview.eb58a590
19.0.0-preview.5736db00
18.0.0-preview.4ae7d841
18.0.0-preview.80566a61
17.0.0-preview.0a6dab60
17.0.0-preview.7f750b20
17.0.0-preview.08312b70
16.0.0-preview.578eb390
16.0.0-preview.e3b05ea0
16.0.0-preview.33157811
16.0.0-preview.85b17450
16.0.0-preview.017f5c11
16.0.0-preview.0c0cc640
16.0.0-preview.72e94e90
15.0.0-preview.885fefd0
15.0.0-preview.26b130a0
15.0.0-preview.7cc54540
15.0.0-preview.ce064561
13.0.0-preview.1b842470
11.1.0-preview.dbee2e40
12.0.0-preview.56ca1730
11.1.0-preview.d5e3b8e0
11.1.0-preview.76bc0ab1
11.1.0-preview.c5136a40
11.1.0-preview.f0f357a0
11.1.0-preview.8ca81bb0
11.1.0-preview.2f7e7930
11.1.0-preview.82c28880
11.1.0-preview.9c9148f0
11.1.0-preview.0f6a2fb0
11.1.0-preview.dd5d5780
11.1.0-preview.f71e42f0
11.1.0-preview.a8d97a10
11.1.0-preview.c3382448
11.1.0-preview.b9638218
11.1.0-preview.04c2e628
11.0.1-preview.3dbf14f8
11.0.1-preview.d32a7cc39

Package Sidebar

Install

npm i @metamask-previews/assets-controllers

Weekly Downloads

705

Version

11.0.1-preview.d32a7cc

License

MIT

Unpacked Size

635 kB

Total Files

80

Last publish

Collaborators

  • metamaskbot
  • mcmire