JSPM

ethereum-ens-network-map

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11510
  • Score
    100M100P100Q146817F
  • License ISC

A simple map of ethereum networks to ENS registry addresses.

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!

})