# eth-ear

> Ethereum blockchain event and transaction listener.

Latest version **1.0.6** (published 2019-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install eth-ear
pnpm add eth-ear
yarn add eth-ear
bun add eth-ear
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2019-05-28 |
| First published | 2019-04-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yaneshcode |
| Maintainers | yanesh |
| Keywords | ethereum, blockchain, event, transaction, listener, ear, eth, eth-ear |

## Links

- npm: https://www.npmjs.com/package/eth-ear
- Repository: https://github.com/yaneshcode/eth-ear
- Homepage: https://github.com/yaneshcode/eth-ear#readme
- Issues: https://github.com/yaneshcode/eth-ear/issues
- npm.io page: https://npm.io/package/eth-ear

## Dependencies (1)

- [ethers](https://npm.io/package/ethers.md) ^4.0.27

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.0.6 (latest) — 2019-05-28
- 1.0.5 — 2019-05-28
- 1.0.4 — 2019-04-19
- 1.0.3 — 2019-04-12
- 1.0.1 — 2019-04-12
- 1.0.0 — 2019-04-12

## README

# eth-ear
NPM module for an ethereum blockchain event and transaction listener.

### Installation

```
npm i eth-ear
```

### Usage

```
// Import
const ear = require('eth-ear');

// Call Methods
ear.transferListener("0x0", [{abi...}], "kovan")
```

### Methods

ERC-20 Events:
- transferListener(contractAddress, contractABI, networkName)
- approvalListener(contractAddress, contractABI, networkName)


Transactions:
- transactionListener(transactionHash, networkName)

### Tests

Listening to DAI token transfer event on the Main network:
```
npm test
```

Additional Tests:
```
// DAI token transfer event on Mainnet
npm run testDAI

// 0x token transfer event on Kovan
npm run testZRX

// Tether token approval event on Mainnet
npm run testUSDT

// Transaction hash listener on Kovan
npm run testTx
```

### Dependencies
- [ethers](https://www.npmjs.com/package/ethers)

### License

MIT

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