ĐNS support is available in many popular languages. If you know of a library that is not listed here, please send us a PR.
- ensjs, maintained by the ENS developers
- ethers.js
- web3.js
- react-lns-address, maintained by the LNS developers
- embark.io
- waffle.io
- ethereum-ens (deprecated)
If you are already using web3.js or ethers.js, and do not require functionality such as creating subdomains, transferring ownership, or updating resolvers, use built in ĐNS features of these libraries.
If you are using React and only need to do forward and reverse resolution of ĐNS names with built in UI, use react-ens-address.
If you want to have ĐNS instance deployed into your dev environment, you may want to use embark.io or waffle.io which allows you to configure/deploy ĐNS registry in your DogeChain test instance.
Otherwise, use ensjs.
All the ĐNS smart contracts are published as @bchdomains/lns-contracts
npm module.
This is how you include abi into your frontend code.
import {
ENS,
PublicResolver
} from '@bchdomains/lns-contracts'`
This is how you import our smartcontract within Solidity.
import '@bchdomains/lns-contracts/contracts/registry/ENS.sol';
- web3.py - also see web3.py ENS docs
Once you've chosen a library, read Working with ĐNS to learn how to use your chosen ĐNS library in your application.