A database of token
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";
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);
}
}
ISC