# platon-web3-eth-ens

> ENS support for web3.

Latest version **1.2.4** (published 2021-12-28) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install platon-web3-eth-ens
pnpm add platon-web3-eth-ens
yarn add platon-web3-eth-ens
bun add platon-web3-eth-ens
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2021-12-28 |
| First published | 2021-12-28 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 8 |
| Unpacked size | 36.2 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | rileyge |

## Links

- npm: https://www.npmjs.com/package/platon-web3-eth-ens
- Repository: https://github.com/ethereum/web3.js/tree/1.x/packages/web3-eth-ens
- npm.io page: https://npm.io/package/platon-web3-eth-ens

## Dependencies (8)

- [underscore](https://npm.io/package/underscore.md) 1.9.1
- [eth-ens-namehash](https://npm.io/package/eth-ens-namehash.md) 2.0.8
- [platon-web3-core](https://npm.io/package/platon-web3-core.md) 1.2.4
- [platon-web3-utils](https://npm.io/package/platon-web3-utils.md) 1.2.5
- [platon-web3-eth-abi](https://npm.io/package/platon-web3-eth-abi.md) 1.2.4
- [platon-web3-core-helpers](https://npm.io/package/platon-web3-core-helpers.md) 1.2.4
- [platon-web3-eth-contract](https://npm.io/package/platon-web3-eth-contract.md) 1.2.4
- [platon-web3-core-promievent](https://npm.io/package/platon-web3-core-promievent.md) 1.2.4

## Recent versions

- 1.2.4 (latest) — 2021-12-28
- 1.2.7-beta.0 (beta) — 2021-12-29

## README

# web3-eth-ens

This is a sub package of [web3.js][repo]

This is the contract package to be used in the `web3-eth` package.
Please read the [documentation][docs] for more.

## Installation

### Node.js

```bash
npm install web3-eth-ens
```

### In the Browser

Build running the following in the [web3.js][repo] repository:

```bash
npm run-script build-all
```

Then include `dist/web3-eth-ens.js` and `dist/web3-eth.js` in your html file.
This will expose the `EthEns` object on the window object.

## Usage

```js
var eth = new Web3Eth(web3.currentProvider);
var ens = new EthEns(eth);

ens.getAddress('ethereum.eth').then(function(result) {
    console.log(result);
});
```

## Types

All the typescript typings are placed in the types folder.

[docs]: http://web3js.readthedocs.io/en/1.0/
[repo]: https://github.com/ethereum/web3.js

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