@glink/bnssdk

0.0.5-rc • Public • Published

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>')

Readme

Keywords

none

Package Sidebar

Install

npm i @glink/bnssdk

Weekly Downloads

0

Version

0.0.5-rc

License

UNLICENSED

Unpacked Size

1.32 MB

Total Files

10

Last publish

Collaborators

  • sudhank