Socket
Socket
Sign inDemoInstall

@0xraid/get-chain-name

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @0xraid/get-chain-name


Version published
Maintainers
1
Created

Readme

Source

utility package used by raid apps, wrapper around this registry, updated every week.

get chain name

const find = require("@raiddotfarm/get-chain-name");

chainName = find(1);
console.log(chainName);

Output:

Ethereum Mainnet

get chain metadata

chainData = find(1);
console.log(chainData);

Output:

{
  "chain": "ETH",
  "chainId": 1,
  "ens": {
    "registry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
  },
  "explorers": [
    {
      "name": "etherscan",
      "standard": "EIP3091",
      "url": "https://etherscan.io"
    }
  ],
  "faucets": [],
  "icon": "ethereum",
  "infoURL": "https://ethereum.org",
  "name": "Ethereum Mainnet",
  "nativeCurrency": {
    "decimals": 18,
    "name": "Ether",
    "symbol": "ETH"
  },
  "networkId": 1,
  "rpc": [
    "https://mainnet.infura.io/v3/${INFURA_API_KEY}",
    "wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}",
    "https://api.mycryptoapi.com/eth",
    "https://cloudflare-eth.com"
  ],
  "shortName": "eth",
  "slip44": 60
}

FAQs

Last updated on 05 Jul 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc