All Projects → talentlessguy → get-ens

talentlessguy / get-ens

Licence: MIT license
🗝️ Get text records of an ENS address with ease

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to get-ens

Web3-Name-Service
A compatible and inclusive name service for the web3 world, supporting RNS and ENS and more
Stars: ✭ 31 (+6.9%)
Mutual labels:  ens
ens.py
Ethereum Name Service, made easy in Python
Stars: ✭ 36 (+24.14%)
Mutual labels:  ens
dapps.earth
Source code for dapps.earth: IPFS and Swarm gateway
Stars: ✭ 12 (-58.62%)
Mutual labels:  ens
radical.domains
💰 Harberger taxes for ENS domains (live only on Rinkeby)
Stars: ✭ 17 (-41.38%)
Mutual labels:  ens
Hackathon
[DEPRECATED] ENS Login hackthan project for ETHBerlin 2019
Stars: ✭ 15 (-48.28%)
Mutual labels:  ens
almonit-plugin
ENS+IPFS Firefox plugin by Almonit
Stars: ✭ 17 (-41.38%)
Mutual labels:  ens
name-bazaar
A peer-to-peer marketplace for the exchange of names registered via the Ethereum Name Service
Stars: ✭ 89 (+206.9%)
Mutual labels:  ens
tiddlywiki-ipfs
IPFS with TiddlyWiki
Stars: ✭ 50 (+72.41%)
Mutual labels:  ens


get-ens

Version Downloads GitHub Workflow Status Codecov

Get text records of an ENS address with ease.

This library simplifies the process of retreiving ENS data with the help of TheGraph ENS explorer and ENS TextResolver contract.

Features

  • Good types
  • Custom ENS contract address support
  • Reverse ENS lookup

Install

pnpm i get-ens

Usage

Node.js

import { getDefaultProvider } from '@ethersproject/providers'
import { getENS } from 'get-ens'
import fetch from 'node-fetch'

const provider = getDefaultProvider()

// @ts-ignore
globalThis.fetch = fetch

const { address, records, owner } = await getENS(provider)('foda.eth')

/*
{
  address: '0xf75ed978170dfa5ee3d71d95979a34c91cd7042e',
  owner: '0xf75ed978170dfa5ee3d71d95979a34c91cd7042e',
  records: {
    avatar: 'https://slate.textile.io/ipfs/bafkreiddogjj5m6nhru72cqvj7napv3knwyqcvxlfxu4axkwhhlg55t5cu',
    color: '#f0da91',
    description: 'ⓕ™',
    email: '[email protected]',
    url: 'https://asf.is',
    web: {
      github: 'https://github.com/a-s-f',
      instagram: 'https://instagram.com/foda.farm',
      twitter: 'twitter.com/fodasynthesis'
    }
  }
}
*/

Deno

import { getENS } from 'https://esm.sh/get-ens'
import { getDefaultProvider } from 'https://esm.sh/@ethersproject/providers'

const provider = getDefaultProvider()

const { address, records, owner } = await getENS(provider)('foda.eth')
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].