xdc3-eth-ens

ENS support for web3.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
xdc3-eth-ens
1.3.134163 years ago5 years agoMinified + gzip package size for xdc3-eth-ens in KB

Readme

xdc3-eth-ens
!NPM Packagenpm-imagenpm-url !Dependency Statusdeps-imagedeps-url !Dev Dependency Statusdeps-dev-imagedeps-dev-url
This is a sub-package of xdc3repo.
This is the contract package to be used in the web3-eth package.
Please read the documentationdocs for more.

Installation

Node.js

npm install xdc3-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.