Resolution
A library for interacting with blockchain domain names.
Supported domain zones:
API Referrence
Documentation
You can use Resolution in a <script>
tag from a
CDN, or as the Resolution
CLI
Once you have cloned the repo use yarn build to install all of the dependacies and cli tool. It will create a symlink into /usr/local/bin/resolution and set up the permissions to run the file as executable.
Before you have started to use the CLI 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 -mc 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.