Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

wanchain-wns-network-map

1.0.4 • Public • Published

Wanchain WNS Network Map

CircleCI Coverage Status dependency status NPM

A simple mapping of wanchain network IDs to Wanchain WNS addresses, when available.

The network IDs are stringified integers.

The addresses are hex-prefixed wanchain addresses.

Usage

npm install wanchain-wns-network-map --save

var wnsNetworkMap = require('wanchain-wns-network-map')
 
web3.version.getNetwork(function (err, networkId) {
 
  var wnsAddress = wnsNetworkMap[networkId]
  // Initialize your client from this!
 
})
 

Keywords

Install

npm i wanchain-wns-network-map

DownloadsWeekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

4.76 kB

Total Files

5

Last publish

Collaborators

  • avatar