@folktizen/netzjs
v0.1.0
Published
Netizen Bio javascript library for contract interaction (ENS Clone)
Downloads
4
Readme
The ultimate ENS javascript library, with viem under the hood.
Features
- Super fast response times
- Easy call batchability
- Written in TypeScript
- Supports the most cutting edge ENS features
- Full tree-shaking support
Installation
Install @folktizen/netzjs, alongside viem.
npm install @folktizen/netzjs viem
Getting Started
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 '@folktizen/netzjs'
// Create the client
const client = createEnsPublicClient({
chain: mainnet,
transport: http(),
})
// Use the client
const ethAddress = client.getAddressRecord({ name: 'ens.eth' })
Docs
Docs can be found here. Full docs site coming soon.