Options
All
  • Public
  • Public/Protected
  • All
Menu

@unstoppabledomains/resolution

Resolution

NPM version CircleCI Bundle Size Minified Bundle Size Minified Zipped

A library for interacting with blockchain domain names.

Supported domain zones:

  • .crypto
  • .zil
  • .eth

API Referrence Documentation

You can use Resolution in a <script> tag from a CDN, or as the Resolution

CLI

Once you have installed the repo use yarn build to install all of the dependacies and cli tool. It will create a symnlink into /usr/local/bin/resolution and set up the permissions to run the file as executable.

Before you have started to use the library please configure it with -C flag. In order to use the ens or cns resolution you will need to provide either an INFURA project ID or a custom node url via -C.

resolution -C infura:12312313....

or 
resolution -C url:https://...

You can find all of the options for resolution cli within -h, --help flag.

Example:

resolution -iers -c eth,btc,DODGE,unknown -d brad.zil

Note

When resolution hits an error it returns the error code instead of throwing. So if you see something like RECORD_NOT_FOUND you know exactly that record was not found for this query.

Generated using TypeDoc