tokfetch/cli/main.py
def diagnose(config: BoardCommmadConfiguration):
    """Check your node and account status.

    This command will print out if you are properly connected to Ethereum network and your management account has enough Ether balance.
    """

    # Run Ethereum diagnostics
    if is_ethereum_network(config.network):
        from tokfetch.ethereum.diagnostics import diagnose
        exception = diagnose(config.logger, config.node_url)
        if exception:
            config.logger.error(
                "{}We identified an issue with your configuration. Please fix the issue above to use this command yet.{}".format(
                    colorama.Fore.RED, colorama.Fore.RESET))
        else:
            config.logger.info("{}Ready for action.{}".format(colorama.Fore.LIGHTGREEN_EX, colorama.Fore.RESET))
    else:
        raise UnknownConfiguredNetwork()
Check your node and account status.

    This command will print out if you are properly connected to Ethereum network and your management account has enough Ether balance.
    
Check your node and account status.
This command will print out if you are properly connected to Ethereum network and your management account has enough Ether balance.
Check your node and account status . This command will print out if you are properly connected to Ethereum network and your management account has enough Ether balance .
def diagnose(config: BoardCommmadConfiguration):
    if is_ethereum_network(config.network):
        from tokfetch.ethereum.diagnostics import diagnose
        exception = diagnose(config.logger, config.node_url)
        if exception:
            config.logger.error(
                "{}We identified an issue with your configuration. Please fix the issue above to use this command yet.{}".format(
                    colorama.Fore.RED, colorama.Fore.RESET))
        else:
            config.logger.info("{}Ready for action.{}".format(colorama.Fore.LIGHTGREEN_EX, colorama.Fore.RESET))
    else:
        raise UnknownConfiguredNetwork()
def diagnose ( config : BoardCommmadConfiguration ) : if is_ethereum_network ( config . network ) : from tokfetch . ethereum . diagnostics import diagnose exception = diagnose ( config . logger , config . node_url ) if exception : config . logger . error ( "{}We identified an issue with your configuration. Please fix the issue above to use this command yet.{}" . format ( colorama . Fore . RED , colorama . Fore . RESET ) ) else : config . logger . info ( "{}Ready for action.{}" . format ( colorama . Fore . LIGHTGREEN_EX , colorama . Fore . RESET ) ) else : raise UnknownConfiguredNetwork ( )
Check your node and account status.
Check your node and account status .
"""Check your node and account status.

    This command will print out if you are properly connected to Ethereum network and your management account has enough Ether balance.
    """ # Run Ethereum diagnostics
config
BoardCommmadConfiguration