Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Latest commit

 

History

History
53 lines (44 loc) · 1.65 KB

README.md

File metadata and controls

53 lines (44 loc) · 1.65 KB

logo

rns-registry

RNS Registry

CircleCI npm docs specs

npm i @rsksmart/rns-registry

Deployments:

Usage

pragma solidity ^0.5.0;

import "@rsksmart/rns-registry/contracts/AbstractRNS.sol";

contract Registrar {
  AbstractRNS rns;

  constructor(AbstractRNS _rns) public {
    rns = _rns;
  }
}
const Web3 = require('web3');
const RNSRegistryData = require('@rsksmart/rns-registry/RNSRegistryData.json');

const web3 = new Web3('https://public-node.rsk.co')
const RNSRegistry = new web3.eth.Contract(RNSRegistryData.abi, RNSRegistryData.address.rskMainnet);