ENS SDK

JavaScript SDK for Ethereum Name Service

npm install @atv-eth/x402-sdk

ENS Features

getProfile(name)Full ENS profile with avatar, description, links
resolve(name)Convert ENS name to Ethereum address
reverse(address)Get primary ENS name for address
getAvatar(name)Get avatar URL (NFT, IPFS, HTTP)
checkAvailable(name)Check if ENS name is available
getRecords(name)Get all text records (email, url, etc)

Quick Example

import { Web3IdentityClient } from '@atv-eth/x402-sdk'; const client = new Web3IdentityClient(); // Resolve ENS name const profile = await client.getProfile('vitalik.eth'); console.log(profile.address); // 0xd8dA6BF... console.log(profile.avatar); // https://... // Check availability const available = await client.checkAvailable('myname.eth');