• Converts a network name to an EIP chain id. If no mapping is found, returns the EIP chain id for LedgerId.LOCAL_NODE.

    Parameters

    • networkName: string

      The network name (string) to be converted

    Returns number

    A number representing the EIP chain id for the provided network name

    Example

    const mainnetChainId = networkNameToEIPChainId('mainnet')
    console.log(mainnetChainId) // 295
    const testnetChainId = networkNameToEIPChainId('testnet')
    console.log(mainnetChainId) // 296

Generated using TypeDoc