Need private packages and team management tools?Check out npm Teams »

@rsksmart/rns-registry

1.0.2 • Public • Published

rns-registry

RNS Registry

Install

npm i @rsksmart/rns-registry

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);

Keywords

Install

npm i @rsksmart/rns-registry

DownloadsWeekly Downloads

40

Version

1.0.2

License

ISC

Unpacked Size

14.9 kB

Total Files

5

Last publish

Collaborators

  • avatar