def METHOD_NAME(chain):
    def relay():
        if chain == "kint":
            return Relayer(KSM_URL)
        elif chain == "intr":
            return Relayer(INTR_URL)
        elif chain == "testnet_kint":
            return Relayer(TESTNET_KINT)
        elif chain == "testnet_intr":
            return Relayer(TESTNET_INTR)
        else:
            abort(404)
    return jsonify(relay().isHealthy())