@0xcert/ens
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

ENS

ENS module for ens domain management on the Ethereum blockchain. The ENS module enables a secure and decentralized ENS domain management on the Ethereum blockchain. It maps human-readable names to machine-readable identifiers such as Ethereum addresses and vice versa. Read more about about the Etherum Name Service.

Usage

Init

// Provider is an instance of 0xcert framework provider.
const ens = new Ens(provider, NetworkKind.ROPSTEN);

Resolve domain into address

const address = await ens.getAddress('domain.eth');

Get domain from address

const domain = await ens.getDomain('address');

Live example

Live example is available for ropsten network on codesandbox: https://codesandbox.io/s/github/0xcert/ens-example?module=%2FREADME.md

Package Sidebar

Install

npm i @0xcert/ens

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

35.4 kB

Total Files

42

Last publish

Collaborators

  • moman
  • xpepermint