# erc20-token-list

> List of all ERC20 tokens.

Latest version **0.0.3** (published 2021-07-12) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install erc20-token-list
pnpm add erc20-token-list
yarn add erc20-token-list
bun add erc20-token-list
```

Provides the command `erc20-token-list`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2021-07-12 |
| First published | 2020-03-07 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 1.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | soulmachine |
| Maintainers | soulmachine |
| Keywords | cryptocurrency, blockchain |

## Links

- npm: https://www.npmjs.com/package/erc20-token-list
- Repository: https://github.com/soulmachine/erc20-token-list
- Issues: https://github.com/soulmachine/erc20-token-list/issues
- npm.io page: https://npm.io/package/erc20-token-list

## Dependencies (1)

- [yargs](https://npm.io/package/yargs.md) ^17.0.1

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2021-07-12
- 0.0.2 — 2020-03-07
- 0.0.1 — 2020-03-07

## README

# erc20-token-list

List of all ERC20 tokens. This library is forked from [ethereum-lists/src/tokens/eth/](https://github.com/MyEtherWallet/ethereum-lists/tree/master/src/tokens/eth)

## How to use

```javascript
/* eslint-disable import/no-unresolved,no-console */
const { getTokenInfo } = require('erc20-token-list');

console.info(getTokenInfo('USDT'));
```

## API Manual

There is only one API in this library:

```typescript
/**
 * Get the token info.
 *
 * @param symbol The token symbol, e.g., USDT, BNB, LINK, etc.
 * @returns The TokenInfo, undefined if not exists
 */
export declare function getTokenInfo(symbol: string): TokenInfo;
```

Which returns an `TokenInfo`:

```typescript
export interface TokenInfo {
  symbol: string;
  name: string;
  type: string;
  address: string;
  decimals: number;
}
```

## Quick Start

```bash
npx erc20-token-list USDT
```

---
_Source: https://npm.io/package/erc20-token-list · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
