Skip to content

Instantly share code, notes, and snippets.

View ilanolkies's full-sized avatar
🎯
Focusing

Ilan ilanolkies

🎯
Focusing
View GitHub Profile
[
{
"id": "rns-00",
"content": "You can $integrate your application with RNS$ using the open-source libraries.",
"link": "https://developers.rsk.co/rif/rns/integrate",
"link_label": "Read the integration guidelines"
},
{
"id": "rns-01",
"content": "After registering your domain, you can create as many subdomains as you want to.",
{"id":"e5809746d7e2a86f871a95eb01a22170eaeecaa9db41e2c00853be98588f79548c3eaeac60e3c78059d00b3df6e05fc9bf8f265901d4b1044bd814b97bc7ad55"}
@ilanolkies
ilanolkies / addr-resolver-cli.js
Created September 27, 2019 19:08
RNS Address resolver
const Contract = require('web3-eth-contract');
const namehash = require('eth-ens-namehash').hash;
// Install npm required packages (web3-eth-contract & eth-ens-namehash)
// Run it with node addr-resolver-cli.js name.rsk
// First, connect to RSK Public nodes
const rskNode = 'https://public-node.rsk.co';
Contract.setProvider(rskNode);