@moraswap/token-lists
v1.0.0
Published
📚 The Token Lists specification
Downloads
4
Readme
@moraswap/token-lists (beta)
This package includes a JSON schema for token lists, and TypeScript utilities for working with token lists.
The JSON schema represents the technical specification for a token list which can be used in a dApp interface, such as the Moraswap Interface.
What are token lists?
Moraswap Token Lists is a specification for lists of token metadata (e.g. address, decimals, ...) that can be used by any dApp interfaces that needs one or more lists of tokens.
Anyone can create and maintain a token list, as long as they follow the specification.
Specifically an instance of a token list is a JSON blob that contains a list of ERC20 token metadata for use in dApp user interfaces. Token list JSON must validate against the JSON schema in order to be used in the Moraswap Interface. Tokens on token lists, and token lists themselves, are tagged so that users can easily find tokens.
JSON Schema $id
The JSON schema ID is https://moraswap.com/tokenlist.schema.json