Function getChain

  • Utility method for converting a chainId to a Chain object

    Parameters

    • chainId: number

    Returns Chain

    a Chain object for the given chainId

    Throws

    if the chainId is not found