An open API service indexing awesome lists of open source software.

https://github.com/portalnetwork/bns-client

A javascript library for BNS
https://github.com/portalnetwork/bns-client

blockchain bns

Last synced: 4 months ago
JSON representation

A javascript library for BNS

Awesome Lists containing this project

README

          

# Blockchain Name Service Client

`bns-client` is a javascript library to interact with all the BNS methods. It can help for creating client and server apps to connect with BNS.

## Get Start
Use this commands in the console:

```
npm install bns-client
```

or use `` to import

```html

```

## Usage

```javascript
let BNS = require('bns/lib/BNS').default;
let bns = new BNS();
```

or

```html

var BNS = require('BNS');

var bns = new BNS.default({
restURL: `https://mainnet.infura.io`,
});
bns.ENSRegistry.getOwner('facebook.eth').then(function(owner) {
document.getElementById("owner").innerHTML = owner;
});

````

## Example for all methods

Please check [examples](./examples) for more information.

## Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md) for how to help out.

## Licence
See [LICENSE](./LICENSE) for details.