pec-eth-ens
v1.0.5
Published
ENS support for web3.
Downloads
14
Readme
pec-eth-ens
[![NPM Package][npm-image]][npm-url] [![Dependency Status][deps-image]][deps-url] [![Dev Dependency Status][deps-dev-image]][deps-dev-url]
This is a sub-package of [pec.js][repo].
This is the contract package to be used in the pec-eth
package.
Please read the [documentation][docs] for more.
Installation
Node.js
npm install pec-eth-ens
Usage
const eth = new Web3Eth(web3.currentProvider);
const 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.