erctokenlist
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

ERC TokenList

ERC TokenList is an npm package consisting of list of popular token details based on the EVM Network.

👇 Prerequisites

  • NodeJs (Works with Node LTS version v16.17.0)

🛠 How to Install

  • Run the command npm init to Initialize a NPM Project.

  • Run the command npm i erctokenlist to install the erctokenlist package to your project.

💻 Example usage

```ts
import { tokens } from "erctokenlist";
const usdc = tokens.homestead.USDC;

console.log(usdc); // Returns
// {
//     name: "USD Coin",
//     symbol: "USDC",
//     address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
// }

const wmatic = tokens[137].WMATIC; // Also chainId(s) are accepted and not just the name

console.log(wmatic); // Returns
// {
//     name: "Wrapped Matic",
//     symbol: "WMATIC",
//     address: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"
// }

```

Readme

Keywords

none

Package Sidebar

Install

npm i erctokenlist

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

51.9 kB

Total Files

16

Last publish

Collaborators

  • hitz_dev