Skip to content

nickfujita/neo-ns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEO Name Service

A domain resolver for the NEO Name Service.

Provide a NNS domain name to resolve, eg. test.neo, and if it is mapped, it will return the address.

Usage

In a browser - cdn

<script src="https://cdn.jsdelivr.net/npm/neo-ns/lib/browser/nns.min.js"></script>
window.NeoNS

Install via npm npm version

npm i --save neo-ns

or

yarn add neo-ns
var NeoNS = require('neo-ns');

import NeoNS from 'neo-ns';

Example

NeoNS.resolveDomain('test.neo')
.then(address => {
  console.log('Success!', address)
})
.catch(err => {
  console.log('Domain name not found.');
})

About

A domain resolver for the NEO Name Service.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published