• Converts a chain ID to its corresponding chain name.

    Parameters

    • chainId: number

      The numeric identifier of the blockchain network

    Returns Chain | undefined

    The chain name if found, undefined otherwise

    const chainName = chainIdToName(137); // Returns "Polygon"
    const chainName = chainIdToName(1); // Returns "Mainnet"