4.9.0 • Published 3 years ago

@cityofzion/neon-domain v4.9.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

neon-domain

Overview

Neon-Domain plugin. Provides the package domain within neon-js.

  • Provides functionality to resolve domain names to addresses.

Installation

yarn i @cityofzion/neon-domain
const neonCore = require("@cityofzion/neon-core");
const domainPlugin = require("@cityofzion/neon-domain");

const neonJs = domainPlugin(neonCore);

module.exports = neonJs;

API

In order to use the resolver, you must first create an instance of it using the scripthash:

const provider = neonJs.domain.nns.instance(contractScriptHash);

The resolver interface is defined in provider/common.ts.

You can resolve a domain by providing a rpc node url and the domain:

const blockchainAddress = provider.resolveDomain(rpcUrl, "myaddress.neo");
4.9.0

3 years ago

5.0.0-next.6

3 years ago

5.0.0-next.5

3 years ago

4.8.3

3 years ago

5.0.0-next.4

4 years ago

5.0.0-next.3

4 years ago

4.8.0

4 years ago

5.0.0-next.2

4 years ago

4.5.2

5 years ago

4.5.0

5 years ago

4.4.0

5 years ago

4.3.2

5 years ago

4.2.0

5 years ago