PNS Libraries
PNS support is available in many popular languages. If you know of a library that is not listed here, please send us a PR.
Javascript
pnsjs, maintained by the PNS developers
Which Javascript library should I use?
If you are already using ethers.js
, and do not require functionality such as creating subdomains, transferring ownership, or updating resolvers, use built in PNS features of these libraries.
Otherwise, use pnsjs
.
Accessing smart contracts directly
All the PNS smart contracts are published as @pnsdomains/pns-contracts
npm module.
This is how you include abi into your frontend code.
This is how you import our smartcontract within Solidity.
Go
Next Steps
Once you've chosen a library, read Working with PNS to learn how to use your chosen PNS library in your application.
Last updated