wanchain-wns-network-map

A simple map of wanchain networks to WNS registry addresses.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
wanchain-wns-network-map
101.0.44 years ago4 years agoMinified + gzip package size for wanchain-wns-network-map in KB

Readme

Wanchain WNS Network Map
!CircleCIcircle-imagecircle-url !Coverage Statuscoveralls-imagecoveralls-url !dependency statusdep-imagedep-url !NPMnpm-imagenpm-url
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!

})