• Version 5.7.1
  • Published
  • 47.5 kB
  • 1 dependency
  • MIT license


npm i @ethersproject/networks
yarn add @ethersproject/networks
pnpm add @ethersproject/networks


Network definitions for ethers.



Type Aliases


function getNetwork

getNetwork: (network: Networkish) => Network;
  • getNetwork

    Converts a named common networks or chain ID (network ID) to a Network and verifies a network is a valid Network..

Type Aliases

type Network

type Network = {
name: string;
chainId: number;
ensAddress?: string;
_defaultProvider?: (providers: any, options?: any) => any;

    type Networkish

    type Networkish = Network | string | number;

      Package Files (2)

      Dependencies (1)

      Dev Dependencies (0)

      No dev dependencies.

      Peer Dependencies (0)

      No peer dependencies.


      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@ethersproject/networks.

      • Markdown
      • HTML
        <a href="https://www.jsdocs.io/package/@ethersproject/networks"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>