Go to file
dependabot[bot] 01333c7bb7
Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-11 17:43:49 +00:00
helpers Celo Alfajores faucet 2021-02-11 17:06:27 +03:00
test Celo Alfajores faucet 2021-02-11 17:06:27 +03:00
.eslintrc.json CI, license, coveralls 2018-10-29 15:20:11 +03:00
.gitignore nodejs 12 package.json update 2019-11-24 23:07:39 +03:00
.travis.yml Update Node enging in CI 2020-12-04 13:08:45 +03:00
LICENSE.md CI, license, coveralls 2018-10-29 15:20:11 +03:00
README.md CI, license, coveralls 2018-10-29 15:20:11 +03:00
index.js faucet, RPC endpoints links and isTestnet prop 2018-10-29 13:19:04 +03:00
package-lock.json Bump path-parse from 1.0.6 to 1.0.7 2021-08-11 17:43:49 +00:00
package.json Celo Alfajores faucet 2021-02-11 17:06:27 +03:00

README.md

eth-net-props

Build Status Known Vulnerabilities Coverage Status

Get properties of EVM compatible networks

Example of usage:

const ethNetProps = require('eth-net-props')

const addr = '0x02c6A1Fb7F074fF168Da43307EC8c39c6b88Fd01'
const networkID = 99

//gets explorer's link to account
const explorerUrlForAccount = ethNetProps.explorerLinks.getExplorerAccountLinkFor(addr, networkID)

//gets explorer's link to token
const tokenAddr = '0xcf2AEDCfb4ff2c9020fb61c41226A4DfD77D12dE'
const explorerUrlForToken = ethNetProps.explorerLinks.getExplorerTokenLinkFor(tokenAddr, addr, networkID)

//gets explorer's link to tx
const txHash = '0x793388b1aec9a40027d7b356db6bae040edc67459e3d9569bdc78435182c6703'
const explorerUrlForTx = ethNetProps.explorerLinks.getExplorerTxLinkFor(txHash, networkID)

//gets array of faucets' links
const faucetLinks = ethNetProps.faucetLinks(networkID)

//gets array of RPC edpoints
const RPCEndpoints = ethNetProps.RPCEndpoints(networkID)

//gets network's display name
const networkDisplayName = ethNetProps.props.getNetworkDisplayName(networkID)

//check, if chain is a testnet
const isTestnet = ethNetProps.props.isTestnet(networkID)