@marcoslobo/poma-domain
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

neon-domain

Overview

Poma-Domain plugin. Provides the package domain within poma-js.

  • Provides functionality to resolve domain names to addresses.

Installation

yarn i @marcoslobo/neon-domain
const pomaCore = require("@marcoslobo/poma-core");
const domainPlugin = require("@marcoslobo/poma-domain");

const pomaJs = domainPlugin(pomaCore);

module.exports = pomaJs;

API

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

const provider = pomaJs.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.poma");

Package Sidebar

Install

npm i @marcoslobo/poma-domain

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

20.8 kB

Total Files

50

Last publish

Collaborators

  • marcoslobo