@matterlabs/token-library
TypeScript icon, indicating that this package has built-in type declarations

2.9.1 • Public • Published

Token Library

Token library is a source of truth for the non-custom token collection on zkSync Portal which is the main resource to move assets between Layer 1 and Layer 2.

Token Interface

export type Token = {
  name: string;
  symbol: string;
  l1Address: string;
  l2Address: string;
  decimals: number;
  imageUrl: string;
};

Usage

npm install @matterlabs/token-library
import { getTokenCollection } from "@matterlabs/token-library"

console.log(await getTokenCollection())

/@matterlabs/token-library/

    Package Sidebar

    Install

    npm i @matterlabs/token-library

    Weekly Downloads

    6

    Version

    2.9.1

    License

    ISC

    Unpacked Size

    3.19 kB

    Total Files

    4

    Last publish

    Collaborators

    • ramonzksync
    • hatemosphere-matterlabs
    • gluk64
    • popzxc
    • npm-matterlabs