Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@metamask/assets-controllers

Package Overview
Dependencies
Maintainers
12
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/assets-controllers

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

  • 23.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.7K
decreased by-1.1%
Maintainers
12
Weekly downloads
 
Created
Source

@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.

Keywords

FAQs

Package last updated on 04 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc