
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@ensdomains/ensjs
Advanced tools
The ultimate ENS javascript library, with viem under the hood.
Install @ensdomains/ensjs, alongside viem.
npm install @ensdomains/ensjs viem
The most simple way to get started is to create a public ENS client, with a supported chain and transport imported from viem. The public client has all the read functions available on it, as well as all subgraph functions.
// Import viem transport, viem chain, and ENSjs
import { http } from 'viem'
import { mainnet } from 'viem/chains'
import { createEnsPublicClient } from '@ensdomains/ensjs'
// Create the client
const client = createEnsPublicClient({
chain: mainnet,
transport: http(),
})
// Use the client
const ethAddress = client.getAddressRecord({ name: 'ens.eth' })
Docs can be found here. Full docs site coming soon.
FAQs
ENS javascript library for contract interaction
The npm package @ensdomains/ensjs receives a total of 23,476 weekly downloads. As such, @ensdomains/ensjs popularity was classified as popular.
We found that @ensdomains/ensjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.