RNS Node.js SDK
Implementations for local resolvers for the RIF Name Service, available for Node.js.
npm i @rsksmart/rns-js-sdk
const Resolver = require('@rsksmart/rns-js-sdk');
const resolver = new ResolverContract();
- Install
ganache-cli
withnpm install -g ganache-cli
- Run local node with
ganache-cli
- Run tests with
npm test
Functions that require communicating with the node return promises, rather than using callbacks. A promise has a then
function, which takes a callback and will call it when the promise is fulfilled; then
returns another promise, so you can chain callbacks.
Implementation of the RNS Registry, the central contract used to look up resolvers and owners for domains.
Simple resolver implementation that allows the owner of any domain to configure how its name should resolve. One deployment of this contract allows any number of people to use it, by setting it as their resolver in the registry.
For more information, read the docs.