Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.07 KB

README.md

File metadata and controls

67 lines (46 loc) · 1.07 KB

@elytro/assets / Modules

@elytro/assets

A database of token

CodeDocumentation

Table of Contents

Installing

Using npm:

$ npm install @elytro/assets

Using yarn:

$ yarn add @elytro/assets

Using pnpm:

$ pnpm add @elytro/assets

Once the package is installed, you can import the library using import approach:

import { getAsset } from "@elytro/assets";

Example

import { getAsset } from "@elytro/assets";

async function main(chainId: number, address: string) {
    const ret = await getAsset(chainId, address);
    if (ret.isOk()) {
        console.log(ret.OK);
    }
}

License

ISC