4.0.15 • Published 9 months ago
@pnsdomains/pnsjs v4.0.15
The ultimate PNS javascript library, with viem under the hood.
Features
- Super fast response times
- Easy call batchability
- Written in TypeScript
- Supports the most cutting edge PNS features
- Full tree-shaking support
Installation
Install @pnsdomains/pnsjs, alongside viem.
npm install @pnsdomains/pnsjs viemGetting Started
The most simple way to get started is to create a public PNS 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 PNSjs
import { http } from 'viem'
import { mainnet } from 'viem/chains'
import { createPnsPublicClient } from '@pnsdomains/pnsjs'
// Create the client
const client = createPnsPublicClient({
chain: mainnet,
transport: http(),
})
// Use the client
const plsAddress = client.getAddressRecord({ name: 'pns.pls' })Docs
Docs can be found here. Full docs site coming soon.
4.0.9
1 year ago
4.0.8
1 year ago
4.0.5
1 year ago
4.0.4
1 year ago
4.0.10
1 year ago
4.0.6
1 year ago
4.0.1
1 year ago
4.0.0
1 year ago
4.0.3
1 year ago
4.0.2
1 year ago
4.0.15
9 months ago
4.0.12
11 months ago
4.0.11
1 year ago
4.0.14
9 months ago
4.0.13
11 months ago
3.0.6
2 years ago
3.0.5
2 years ago
3.0.4
2 years ago
3.0.3
2 years ago
3.0.2
2 years ago
3.0.1
2 years ago
3.0.0
2 years ago
3.0.1-dev
2 years ago
3.0.2-dev
2 years ago
3.0.4-dev
2 years ago
3.0.3-dev
2 years ago
3.0.0-dev
2 years ago