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

1.0.3 • Public • Published

ENS Lookup

This is a library for looking up ENS domain for address or reverse lookup by crawling the Etherscan website.

Install

npm install @yukaii/ens-lookup

Usage

import { lookup } from "@yukaii/ens-lookup";

lookup("vitalik.eth").then(console.log);

// =>
// {
//   found: true,
//   address: '0x1234123123123123123123123123123123123123',
//   controller: '0x1234123123123123123123123123123123123123',
//   registrant: '0x1234123123123123123123123123123123123123',
//   expiration: '2042.05.03 at 21:05',
//   tokenId: '0x1234123123123123123123123123123123123123 Lookup names ',
//   transactions: [
//     {
//       ...

Check out the typing and tests for more details.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @yukaii/ens-lookup

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

17 kB

Total Files

10

Last publish

Collaborators

  • yukaii