@glink/bnssdk
v0.0.5-rc
Published
Blockchain Name service sdk for availablity checks and price information
Downloads
3
Readme
BNSSDK
BNSSDK is used inorder to resolve data from Nlockchain Name Service(BNS) smart contract
It also can be used in order to check the domain availablity and the price of the domains
Usage/Examples
To get started
import BnsSdk from 'bnssdk'
let bns = new BnsSdk()
To get Ethereum address linked with your domain
let eth_address = await bns.resolve('<your bns domain>','eth')
To get Bitcoin address linked with your domain
let website = await bns.resolve('<your bns domain>','bitcoin')
To get polygon address linked with your domain
let website = await bns.resolve('<your bns domain>','matic')
To get website linked with your domain
let website = await bns.resolve('<your bns domain>','website')
To get avatar linked with your domain
let website = await bns.resolve('<your bns domain>','avatar')
To get all domains linked with an account
let domains = await gns.getAllDomains('<account_address')
To check availablity linked with your domain
let result = await gns.getDomainAvailablity('<sld domain Nam>')
To get all data linked with your domain
```javascript
let result = await gns.getAllData('<sld domain Nam>')