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
- Host: GitHub
- URL: https://github.com/portalnetwork/bns-client
- Owner: PortalNetwork
- License: mit
- Created: 2019-08-08T03:51:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T01:16:15.000Z (over 3 years ago)
- Last Synced: 2025-07-09T15:51:38.928Z (11 months ago)
- Topics: blockchain, bns
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/bns-client
- Size: 1.74 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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.