🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@cityofzion/neon-domain

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cityofzion/neon-domain

Neon-Domain Module

latest
Source
npmnpm
Version
4.9.0
Version published
Weekly downloads
3
-25%
Maintainers
4
Weekly downloads
 
Created
Source

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");

Keywords

neo

FAQs

Package last updated on 13 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts