UNPKG

@krobinalpha/dotarb-interface

Version:

A javascript library for generating Ethereum Name Service (ENS) namehashes per [spec](https://github.com/ethereum/EIPs/issues/137).

33 lines (26 loc) 688 B
# Dotarb Interface A javascript library for generating Ethereum Name Service (ENS) namehashes per [spec](https://github.com/ethereum/EIPs/issues/137). ## Installation ```shell yarn add @krobinalpha/dotarb-interface ``` or ```shell npm install @krobinalpha/dotarb-interface -S ``` ## Usage ```javascript const dotarb = require("@krobinalpha/dotarb-interface"); const domain = "robin.arb"; dotarb.getAddressFromEns(domain).then(address => { console.log(domain, address); }); ``` - typescript ```typescript import {getAddressFromEns} from '@krobinalpha/dotarb-interface' const domain = "robin.arb" getAddressFromEns(domain).then(address=>{ console.log(domain, address) }) ```