Package Exports
- ethereum-ens-network-map
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ethereum-ens-network-map) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Ethereum ENS Network Map
A simple mapping of ethereum network IDs to Ethereum ENS addresses, when available.
The network IDs are stringified integers.
The addresses are hex-prefixed ethereum addresses.
Usage
npm install ethereum-ens-network-map --save
var ensNetworkMap = require('ethereum-ens-network-map')
web3.version.getNetwork(function (err, networkId) {
var ensAddress = ensNetworkMap[networkId]
// Initialize your client from this!
})