Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

ethereum-ens-network-map

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethereum-ens-network-map

A simple map of ethereum networks to ENS registry addresses.

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
42K
-8.58%
Maintainers
1
Weekly downloads
 
Created
Source

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!

})

Keywords

ethereum

FAQs

Package last updated on 30 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts