Skip to content

Latest commit

 

History

History
72 lines (45 loc) · 1.07 KB

File metadata and controls

72 lines (45 loc) · 1.07 KB

@soulwallet/assets

A database of token

CodeDocumentation

Table of Contents

Installing

Using npm:

$ npm install @soulwallet/assets

Using yarn:

$ yarn add @soulwallet/assets

Using pnpm:

$ pnpm add @soulwallet/assets

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

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

Example

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

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

License

ISC