• Utility function to get an object compatible with the Hardhat 'networks' option. If the private key is not defined it returns an empty object.

    Parameters

    • Optional privateKey: string

      Private key to be used with networks.

    Returns any

    An object compatible with the Hardhat 'networks' option.