neo-ns
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

import { resolveDomain } from 'neo-ns';

Example

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

Readme

Keywords

Package Sidebar

Install

npm i neo-ns

Weekly Downloads

10

Version

0.0.1

License

MIT

Unpacked Size

660 kB

Total Files

13

Last publish

Collaborators

  • nickfujita