Introduction

At present, green innovation not only accelerates the progress of ecological civilization but also is an important path to high-quality development and has also become a new station for the global new scientific and technological revolution (Dong et al. 2018; Wu et al. 2020). How to promote green technology innovation is an important proposition in academia. Compared to traditional innovation, green innovation requires higher technical standards, higher financing costs, and higher risk bearing (Doran and Ryan 2012), so the threshold standard for achieving green innovation is very high, it is difficult to succeed by relying solely on innovative individuals, and more financial support from outside the main body is needed (Bai et al. 2019). However, traditional finance is limited by space and time constraints, making it difficult for enterprises to finance (Gomber et al. 2018). On the other hand, the information asymmetry of traditional finance is prominent, the contradiction between supply and demand is difficult to alleviate, and the degree of inclusiveness is low, so it is difficult for traditional finance to provide accurate and sufficient financial support (Bharath et al. 2020).

Digital technical means help promote the geographical coverage and depth of inclusive finance (Demertzis et al. 2018). As a new financial technology, it has high efficiency and wide coverage. Digital finance offers many opportunities to address the funding gap for corporate green innovation (Zulfiqar and Thapa 2018). It uses internet technology to break the barriers of time and space and reduce the threshold of accessing financial services. This, in turn, reduces the cost of financial services and improves efficiency (Corrado and Corrado 2017), thereby providing important support for green innovation. Meanwhile, digital finance alleviates the degree of information asymmetry, which can accurately match the flow of funds and capital needs, decrease the probability of resource mismatch (Norden et al. 2014), and reduce innovation costs. Digital finance can contribute to the low-carbon energy transition by strengthening financial regulation, bridging the digital access divide, and optimizing the availability of finance (Li et al. 2023). Digital finance can contribute to sustainable urban development by reducing carbon emissions through technological innovation and improving the energy mix (Sun et al. 2023). From a more micro perspective, digital finance can drive green growth by facilitating the digital transformation of businesses (Razzaq and Yang 2023). It is necessary to research the implications of digital finance for green innovation and the mechanism between the two, which is of great significance for realizing the comprehensive transformation of the economy and accelerating the construction of an innovative country (Reardon 2007).

At present, more literature only pays attention to the quantitative aspects (Wang et al. 2022c; Sun et al. 2022; Zhang and Ma 2021; He et al. 2021; Wang et al. 2023a) and fails to discuss from both the aspects of quantity and quality, and high-quality development is not only to improve the quantity but also to make a big leap in quality, so this paper also pays attention to the increase in quantity and the improvement of quality. There is a great difference between the categories of green patents and granted or not. Therefore, this paper distinguishes the quantity and quality according to the characteristics of green patents based on previous studies. According to the current literature, many studies focus only on the development of digital finance in local cities (Cao et al. 2021; Feng et al. 2022; Liu et al. 2022; Ma et al. 2022ab; Liu and Chen 2022; Ren et al. 2023b); however, according to Tobler’s First Law, anything correlates closely with other things, but the relationship between near and far is stronger than that of distant things (Tobler 2004; Ma et al. 2022ab; Rao et al. 2022). The characteristics of open sharing of big data indicate that digital finance must have the characteristics of economic externality. Therefore, when one subject uses digital finance for economic activities, other subjects will also benefit or lose. This impact is also called the spillover effect. Digital finance in one region always affects green innovation activities in another region, so it is inappropriate to ignore spatial spillovers when assessing the effects of digital finance policies (Ying 2003; Wang et al. 2022; Wang et al. 2023b). Therefore, it is inevitable that there will be errors in isolated research on cities, but this paper fully considers the spatial correlation that exists between cities, uses spatial measurement methods to conduct more accurate research on the relationship between the two, and explores the local-neighborhood effect.

By summarizing the previous literature, digital finance can have an impact in terms of financing costs, productivity, and information advantages. This paper finds that the distinction between the quantity and quality in terms of the characteristics of green patent applications and grants needs further reflection. Most of the literature tends to ignore the spatial spillover effect when examining the impact of digital finance leading to errors in the assessment of its impact. Therefore, the main purpose is to further explore the impact of digital finance on green innovation from both quantitative and qualitative perspectives and to investigate whether spatial spillover effects exist between cities.

Therefore, we employ the dynamic spatial Durbin model (DSDM). The main marginal contributions are as follows: first, breaking through the limitations of existing research focusing on the quantitative dimension of green innovation. Unlike previous literature that uses a single indicator to measure green technology innovation per se, this paper makes a quantitative and qualitative distinction between green innovations. This paper puts digital finance endogenously in a green innovation research framework, which expands and deepens the literature in the field of green innovation influencing factors; second, different from previous studies that were limited to the local green innovation effect of digital finance, this paper innovatively starts from the “local-neighborhood” linkage perspective. For the sake of verifying the spatial spillover effect, this paper establishes a dynamic spatial Durbin model. Third, from the perspective of industrial structure, information level, and resource allocation, this paper deduces the internal logic of digital finance affecting green innovation and empirically tests the causal relationship and mechanism of action between the two, which provides policy focus for promoting the progress of digital finance.

The remaining chapters are organized as follows: the “Literature review” section has carried on the literature review, the introduction of the “Theoretical mechanism and hypothesis” section has carried on the theoretical mechanism and put forward theoretical hypotheses, the “Methodology and data” section describes empirical methods and data sources, the empirical results are discussed in the “Empirical results and discussions” and “Analysis of mediation effects” sections, and the “Conclusion and policy implications” section is conclusion and suggestions.

Literature review

Most of the current literature explores the factors affecting green innovation from the viewpoint of the development of financial technology, the effect of environmental regulation, government subsidies, and the development of financial and internet technologies. The improvement of financial service efficiency can reduce the cost (Chen and Peng 2021; Ding et al. 2021; Chen 2020; Lin and Ma 2022), thereby accelerating the speed of green innovation. The development of financial technology can effectively reduce financial friction (Cai 2022), promote the efficiency of information transmission (Sorin et al. 2021; Jia and Wang 2020), and then improve the efficiency of the transformation of green results (Söderlund and Tingvall 2016). In the “regulation” effect, the additional costs caused by environmental regulations will lead to an increase in the cost of enterprises (Dou et al. 2022; Qiao et al. 2022; Cheng and Li 2022), so enterprises have to seek energy-saving and emission-reduction measures (Zhang et al. 2022b; Li and Du 2022). Through the development of green technology research and development, green innovation can obtain an innovation compensation effect (Xie et al. 2021; Fan et al. 2021; Horbach 2008). As a key entity affecting green innovation, government R&D subsidies can bring non-operating income to enterprises (Yang et al. 2021; Fu et al. 2022; Sun et al. 2022; Ren et al. 2023c), thereby reducing the cost of enterprises’ green innovation, and government R&D subsidies can have a “leverage effect” (Bai et al. 2019; Wang et al. 2022b). As an effective way to disseminate information and knowledge (Fang 2022; Guo et al. 2022), internet technology has improved the impact of R&D efficiency from three aspects: collection, communication, and absorption capacity (Viktor 2022; Abderahman et al. 2022). This confirms that the internet can improve a company’s capacity for green innovation (Kafouros 2006; Chetna et al. 2022; Xu et al. 2022).

The positive effects are manifested in several ways. Insufficient corporate credit funds limit enterprises’ R&D investment and reduce their willingness to innovate green (Li and Shen 2022; Zhang et al. 2022c), while digital finance can alleviate corporate financing constraints (Yi et al. 2019; Yu et al. 2022; Ozili 2017; Karaivanov 2011). Modern financial development has an impact on corporate innovation. We know that digital finance can encourage scientific and technological innovation from many studies (Helen et al. 2021; Kristin and Peter 2020; Wang 2018), and the digital economy is an important aid to regional green innovation and development (Demertzis et al. 2018; Zhao and He 2022). Digital finance mainly relies on big data, cloud computing, and other technological means (Alabbasi 2020; Zhao and He 2022). Financial products are rapidly derived, and the supply and demand of funds are accurately matched (Xia et al. 2022; Wu and Huang 2022; Jeanneney and Kpodar 2011), meet the needs of personalized financing, and become a powerful boost for enterprise green innovation (Kapoor 2014; Li 2021). Based on Huang et al. digital finance can obtain more financial and non-financial information (Huang and Li 2015; Oh and Kwon 2020), thereby alleviating the problem of information asymmetry and encouraging enterprises to elevate their ability (Ma et al. 2021; Liu and Chen 2022).

Related studies are mostly limited to the regional and enterprise level (Rao et al. 2022); however, many articles show that green innovation has an obvious spatial spillover effect and agglomeration effect (Yang and Liu 2020; Zhao and Li 2022; Lu et al. 2022). Economic geography is one of the most striking features of the real economy (Zahed and Hashem 2020), where digital financial activities have external spillover effects that affect other entities, organizations, or societies differently (Truffer and Coenen 2012; Zhu et al. 2022; Shen et al. 2021; Ren et al. 2023a). This has a variety of learning effects. Studies have shown that Fintech development can optimize the allocation of local resources (Gilles 1992), thereby improving the factor structure of the financial system in neighboring areas so that it can drive green innovation in surrounding areas (Tian et al. 2017). However, it may also have a siphon effect, hindering green innovation in neighboring areas (Su et al. 2021; Feng and Zhang 2022). As a kind of financial technology, digital finance has reduced the limitations of the geographical structure in promoting green innovation and development (Bernhard 2022), thus showing a strong geospatial spillover effect (Krugman 1991; Ewers 2018). This strong diffusion effect accelerates the imitation effect in local competition (Li 2022). Therefore, it is inappropriate to limit the effect to a region, and the mechanism of space spillover should be studied.

Through the combing of the literature, this paper finds that previous literature rarely takes the existence of spatial overflow into account, so the corresponding discussion and analysis are incomplete. We use the dynamic space Durbin model to probe the local-neighborhood effect. In terms of green innovation indicators, most of the literature only studies quantitative growth from a single perspective. However, this paper considers the prospect of quality development by incorporating quality of green innovation into the framework. The research perspective is more complete.

Theoretical mechanism and hypothesis

Theoretical mechanism

Endogenous economic growth theory is used to explore three intermediary variables (Wang et al. 2022a): industrial structure upgrading, information level, and optimal allocation of resources. We can obtain the following form of production: Y(t) = F[K(t), A(t)L(t)] (Solow 1956).

We have also extended the production function by combining variables such as digital financial inclusion (Lnindex), industrial structure (Indus), economic development level (Lngdp), number of scientific and technological employees (Lnsciemploy), population density (Lnpop), and financial development level (Findev):

$$Y(t)=F\left[k(t),A(t)L(t), Lnindex(t), Indus(t), Lngdp(t), Lnsciemploy(t), Lnpop(t), Findev(t)\right]$$
(1)

Suppose Equation (1) is the Cobb–Douglas form with constant scale returns (Zhao et al. 2020). Combined with the theory in this paper, we set up the following equation:

$$Y(t)={K}^{\sigma }{(AL)}^{\tau }{Lnindex}^{\nu }{Indus}^{\omega }{lngdp}^{\iota }{Lnsciemploy}^{\kappa }{Lnpop}^{\zeta }{\mathrm{Findev}}^{\upeta}$$
(2)

where σ + τ + υ + ω + ι + κ+ ζ, + η = 1, 0 < σ, τ, υ, ω, ι, κ, ζ, η < 1.

The capital depreciation rate is δ; then the change of capital can be represented as

$$\dot{K}= sY-\delta K\hbox{--} Lnindex$$
(3)

The growth rates of labor and knowledge remain unchanged, that is:

$$\dot{L}= nL,\dot{A}= gA$$
(4)

Among them, Y is the total output, K is the total capital input, and L is the labor input. A ∙ L indicates an effective workforce, Lnindex represents digital finance, Indus represents industrial structure upgrading, Lngdp represents economic growth, Lnsciemploy represents the number of tech workers, Lnpop represents population density, and Findev represents the level of financial development.

Supposing that \(y=\frac{Y}{AL},k=\frac{K}{AL}, lnindex=\frac{Lnindex}{AL}, indus=\frac{Indus}{AL}, lngdp=\frac{Lngdp}{AL}, lnsciemploy=\frac{Lnsciemploy}{AL}, lnpop=\frac{Lnpop}{AL},\mathrm{and}\ findev=\frac{Findev}{AL}\), then Equation (2) can be written as

$$y={k}^{\sigma }{lnindex}^{\upsilon }{indus}^{\omega }{lngdp}^{\iota }{lnsciemploy}^{\kappa }{lnpop}^{\zeta }{findev}^{\upeta}$$
(5)

Assume that k = K/AL, meaning

$${\displaystyle \begin{array}{c}\dot{k}=\frac{\dot{K}\cdot AL-K\left(\dot{A}\cdot L+A\cdot \dot{L}\right)}{(AL)^2}=\frac{\dot{K}}{AL}-k\left(\frac{\dot{A}}{A}+\frac{\dot{L}}{L}\right)=\frac{sY\hbox{--} \delta K\hbox{--} Lnindex}{AL}-k\left(g+n\right)= sy-\\ {}\left(\delta +g+n\right)k- lnindex\end{array}}$$
(6)

Hence, Equation (6) can be indicated as follows:

$$\dot{k}={sk}^{\sigma }{lnindex}^{\upsilon }{indus}^{\omega }{lngdp}^{\iota }{lnsciemploy}^{\kappa }{lnpop}^{\zeta }{findev}^{\eta }-\left(\delta +g+n\right)k\hbox{--} lnindex$$
(7)

Suppose \(\dot{k}=0\), so that

$${sk}^{\sigma }{lnindex}^{\upsilon }{indus}^{\omega }{lngdp}^{\iota }{lnsciemploy}^{\kappa }{lnpop}^{\zeta }{findev}^{\eta }-\left(\delta +g+n\right)k\hbox{--} lnindex=0$$
(8)

Then further calculate and simplify

$${\displaystyle \begin{array}{l} s\sigma {k}^{\sigma -1}{lnindex}^{\upsilon }{indus}^{\omega }{lngdp}^{\iota }{lnsciemploy}^{\kappa }{lnpop}^{\zeta }{findev}^{\eta}\frac{\partial k}{\partial lnindex}+ s\upsilon {k}^{\sigma }{lnindex}^{\upsilon -1}\\ {}{indus}^{\omega }{lngdp}^{\iota }{lnsciemploy}^{\kappa }{lnpop}^{\zeta }{findev}^{\eta }+ s\omega {k}^{\sigma }{lnindex}^{\upsilon }{indus}^{\omega -1}{lngdp}^{\iota }{lnsciemploy}^{\kappa}\\ {}{lnpop}^{\zeta }{findev}^{\eta}\frac{\partial indus}{\partial lnindex}-\left(\delta +g+n\right)\frac{\partial k}{\partial lnindex}-1=0\end{array}}$$
(9)

Equation (9) can be further rewritten and simplified as follows:

$${\displaystyle \begin{array}{l}\frac{\partial indus}{\partial lnindex}=\frac{\left(\delta +g+n\right)\hbox{--} s\sigma {k}^{\sigma -1}{lnindex}^{\upsilon }\ {indus}^{\omega }{lngdp}^{\iota }{lnsciemploy}^{\kappa }{lnpop}^{\zeta }{findev}^{\eta }}{s\omega {k}^{\sigma }{lnindex}^{\upsilon }{indus}^{\omega -1}{lngdp}^{\iota }\ {lnsciemploy}^{\kappa }{lnpop}^{\zeta }{findev}^{\eta }}\\ {}\frac{\partial k}{\partial lnindex}-\frac{\ s\upsilon {k}^{\sigma }{lnindex}^{\upsilon -1}\ {indus}^{\omega }{lngdp}^{\iota }{lnsciemploy}^{\kappa }{lnpop}^{\zeta }{findev}^{\eta }-1}{s\omega {k}^{\sigma }{lnindex}^{\upsilon }{indus}^{\omega -1}{lngdp}^{\iota }\ {lnsciemploy}^{\kappa }{lnpop}^{\zeta }{findev}^{\eta }}\end{array}}$$
(10)

Supposing \(f\left(k, lnindex, indus\right)=\frac{\left(\delta +g+n\right)\hbox{--} s\sigma {k}^{\sigma -1}{lnindex}^{\upsilon }\ {indus}^{\omega }{lngdp}^{\iota }{lnsciemploy}^{\kappa }{lnpop}^{\zeta }{findev}^{\eta }}{s\omega {k}^{\sigma }{lnindex}^{\upsilon }{indus}^{\omega -1}{lngdp}^{\iota }\ {lnsciemploy}^{\kappa }{lnpop}^{\zeta }{findev}^{\eta }}\)and \(g\left(k, lnindex, indus\right)=\frac{\ s\upsilon {k}^{\sigma }{lnindex}^{\upsilon -1}\ {indus}^{\omega }{lngdp}^{\iota }{lnsciemploy}^{\kappa }{lnpop}^{\zeta }{findev}^{\eta }-1}{s\omega {k}^{\sigma }{lnindex}^{\upsilon }{indus}^{\omega -1}{lngdp}^{\iota }\ {lnsciemploy}^{\kappa }{lnpop}^{\zeta }{findev}^{\eta }}\), then Equation (10) can be further expressed as

$$\frac{\partial indus}{\partial lnindex}=f\left(k, lnindex, indus\right)\frac{\partial k}{\partial lnindex}-g\left(k, lnindex, indus\right)$$
(11)

According to Equation (11), digital financial inclusion includes the size of f (k, lnindex, indus), g (k, lnindex, indus), and\(\frac{\partial k}{\partial lnindex}\). It is known that digital finance will effectively affect industrial structure upgrading.

Suppose there is an open economy with two sectors and that there is a free exchange between sectors. Both sectors are engaged in green innovation and are represented by C1 and C2 (Wang et al. 2022a). The expression is

C1[Lnindex, ΦIndus(Lnindex)], C2[Lnindex, (1 − ΦIndus(Lnindex)].

It is worth noting that Φ indicates the share of the tertiary industry output value of one sector in the output value of the secondary industry and (1−Φ) indicates the share of another sector.

Supposing C = C1/C2 and in both sides of the deduction of Indus, the following formula is obtained, indicating that the upgrading of industrial structure may have some influence on green innovation:

$$\frac{\partial C}{\partial Indus(Lnindex)}=\frac{C_{12}{C}_2\Phi -{C}_1{C}_{22}\left(1-\Phi \right)}{C_2^2}$$
(12)

We can direct both sides of the equation to Lnindex:

$$\frac{\partial C}{\partial Lnindex}=\frac{C_{11}{C}_2-{C}_1{C}_{21}}{C_2^2}+\frac{C_{12}{C}_2\Phi -{C}_1{C}_{22}\left(1-\Phi \right)}{C_2^2}\frac{\partial Indus(Lnindex)}{\partial Lnindex}$$
(13)

Drag Equation (12) combined with Equation (13), and the following equation can be obtained:

$$\frac{\partial C}{\partial Lnindex}=\frac{C_{11}{C}_2-{C}_1{C}_{21}}{C_2^2}+\frac{\partial C}{\partial Indus(Lnindex)}\frac{\partial Indus(Lnindex)}{\partial Lnindex}$$
(14)

From the equations, we can find \(\frac{C_{11}{C}_2-{C}_1{C}_{21}}{C_2^2}\) and \(\frac{\partial C}{\partial \mathrm{Indus}\left(\mathrm{Lnindex}\right)}\frac{\partial \mathrm{Indus}\left(\mathrm{Lnindex}\right)}{\partial \mathrm{Lnindex}}\). Each represents the direct and indirect impact. After that, the industrial structure of the equation is replaced by the level of informatization and the intensity of scientific and technological expenditures. Through the same calculation process, we obtained the following two formulas:

$$\frac{\partial C}{\partial \mathrm{Lnindex}}=\frac{C_{11}{C}_2-{C}_1{C}_{21}}{C_2^2}+\frac{\partial C}{\partial \mathrm{lninternet}\left(\mathrm{Lnindex}\right)}\frac{\partial \mathrm{Lninternet}\left(\mathrm{Lnindex}\right)}{\partial \mathrm{Lnindex}}$$
(15)
$$\frac{\partial C}{\partial \mathrm{Lnindex}}=\frac{C_{11}{C}_2-{C}_1{C}_{21}}{C_2^2}+\frac{\partial C}{\partial \mathrm{Scitec}\left(\mathrm{Lnindex}\right)}\frac{\partial \mathrm{Scitec}\left(\mathrm{Lnindex}\right)}{\partial \mathrm{Lnindex}}$$
(16)

Lninternet stands for the level of informatization, Scitec stands for optimal allocation of resources, and from Equation (15) and Equation (16), we can find that the optimal allocation of informatization and individual resources can be an intermediary variable.

Theoretical hypotheses

Digital finance may have a direct impact on the level of green innovation in the following ways. First, digital finance has expanded financial coverage, facilitated financial services and enriched financial products, which is conducive to alleviating the challenges faced by some companies, and has greatly promoted the advancement of green innovation (Brown et al. 2009). As the service distance of traditional bank outlets is limited to local cities, the cost of collecting and processing borrowers’ information by banks increases, and the problem of information asymmetry becomes more serious (Jiménez et al. 2008). Digital finance is conducive to solving this information asymmetry. It is beneficial to optimize resource allocation and thus drive the output of green innovation. Second, digital finance has brought about the subversive innovation of traditional finance, including business model innovation, financial product innovation, and financial service innovation. Ultimately, it promoted the service quality of the financial industry (Beck et al. 2016), thereby improving the efficiency of the financial industry as a whole and improving the efficiency and growth rate in the service entity industry. Through the above analysis, we put forward the first hypothesis:

  • Hypothesis 1: Digital finance has a positive impact on the quantity and quality of green innovation.

Digital finance may influence green innovation through three intermediary channels. First, digital means can be seen everywhere to promote the evolution of product forms and changes in industrial ecology. The digital information-sharing platform created by digital finance has also stimulated the dissemination of technical knowledge (Ngai and Pissarides, 2007). To obtain a dominant position, enterprises further promote the reduction of costs in the industry, embarking on the road of industrial structure advancement while achieving the purpose of resource conservation and environmental protection. Digital finance uses the internet to integrate digital technology and traditional financial industry (Bruhn and Love 2014), establishes an evaluation system for various projects, and pays more attention to emerging projects with innovative potential and green effects (Rin and Hellmann 2002). Digital finance can reduce the service threshold and service cost, effectively alleviate the problem of financing constraints, continuously improve financing efficiency, and provide backup support for industrial upgrading (Du et al. 2020). The traditional assessment method of the financial sector makes it impossible for enterprises in the rising period to obtain more financial support. Relying on digital financial platforms, the information asymmetry between supply and demand can be solved. It can accurately arrange the flow of funds and then achieve industrial transformation and upgrading (Beck et al. 2002). Differentiated digital financial products and services can drive consumption upgrading (Li et al. 2020), which in turn forces enterprises to innovate in green technology, improve the industrial development model with high energy consumption and low efficiency, and further promote industrial upgrading. Digital finance has satisfied the needs of the “long tail group” in financial markets and thus provided a continuous supply of funds for industrial structure optimization (Demertzis et al. 2018).

Second, the improvement of the informatization level promotes the widespread use of new information technology (Acemoglu and Restrepo 2019). Another advantage of the level of informatization is that it can be accurately controlled and integrated so that various industries can intelligently optimize the layout (Chen and Zhang 2021). With the increase in digital finance application scenarios, the rapid development of new infrastructure has led to an increase in the supply and demand of information technology services, enhanced the degree of support for infrastructure, and enhanced the foundation for green innovation (Ji et al. 2021). To maximize the role of digital finance, we must first build a green and efficient data center, strengthen energy consumption data detection and management, provide underlying basic support for various financial scenarios, and accelerate the pace of technology application, thereby promoting green innovation (Song et al. 2021b). Digital finance can drive the creation and improvement of financial technology facilities, which is applied to many financial service platforms, which can carry out real-time dynamic supervision and timely promotion, providing a real-time dynamic development guarantee (Eugenia and Michele 2022). Digital finance can help build a huge information network between regions, and the construction of information network infrastructure can effectively break the time and space constraints of information exchange and promote exchanges and cooperation among various regions. It also promotes the exchange and spillover of green technology innovation knowledge (Khuong 2011). Digital finance can overcome geographical obstacles by building network infrastructure, improving the extension capacity of inclusive finance, and providing quality services for green innovation (Zheng 2020).

Green innovation activities need to be carried out with a large number of funds, and digital finance can have a full understanding of the internal situation of enterprises through the accurate control of big data, according to which the government, financial institutions, etc. can make reasonable assessments (Takalo and Tanayama 2010), and mobilize enthusiasm for social green innovation through the assistance of technology expenditures. Digital finance has disrupted the way traditional resources are allocated, promoting accurate matching and inclusiveness. Digital finance can mine massive amounts of data, accurately assess risks and benefits, and improve resource allocation efficiency by reducing information asymmetry (Gabor and Brooks 2017). This improves the efficiency of green innovation. The inclusive characteristics of digital finance have enabled financial institutions to provide more credit support for private enterprises (Yue et al. 2022). Digital finance has induced the “catfish effect” and “demonstration effect,” which have activated the vitality of green innovation industries. Thanks to the rapid development of digital financial technologies, resource allocation can directly capture capital needs through the internet economic platform. In terms of inclusiveness, digital finance gives more opportunities to small businesses, broadens the scope of resource allocation, and provided basic support for a wide range of green innovation (Restuccia and Rogerson 2008). The online financial service model has replaced the offline financial service model to a certain extent so that the improvement of the efficiency of resource allocation has improved the level of financial services. It provides a sound environment for green innovation (Wang and Ji 2022). This paper presents a second hypothesis.

  • Hypothesis 2: Digital finance can promote green innovation through industrial structure optimization, information-level construction, and resource allocation optimization.

Due to the geographical proximity of cities, cities within the same cluster are more likely to obtain new ideas and new ideas, and when a city is in an advantageous position in terms of digital finance, it is easy to imitate and learn from other cities (Beaudry and Breschi 2003), so that continuous green innovation can be formed within the cluster. Digital finance technology and green innovation can be maximized and disseminated (Zhang et al. 2022a). The migration of labor can effectively drive the spillover of knowledge of digital finance, which is the engine of sustained growth of local green innovation (Romer 1986), and the city, as a market of natural resources and factors flowing freely, can create more green wealth. Digital finance spillover is more active in the city (Henderson 1986), and it is easier to overflow knowledge in large cities. Its spillover effect is also more pronounced (Gao and Yuan 2022).

Local governments maintain a competitive advantage through green innovation (Zhao et al. 2021), and this competition can obtain more limited resources to drive green economic development. Government finance innovation is an important way to attract all kinds of resources related to green development (Li and Zhou 2005). To gain a competitive advantage in the “championship” of economics, local governments are motivated to develop digital finance, and this effect can spread rapidly in the region (He and Li, 2017). The scientific and technological output indicators in areas with high financial innovation efficiency often have a strong demonstration effect. To catch up with each other, other cities will bring digital financial policy imitations (Su et al. 2022). All of the above suggests that it is necessary to consider the role of spatial spillover when considering the corresponding effects. This leads to a third hypothesis:

Hypothesis 3: The impact of digital finance on green innovation has spatial spillover effects.

Methodology and data

Dynamic spatial Durbin metrology

Due to the significant spatial relevance of green innovation, green innovation is not only affected by local digital financial factors but is also affected by other cities. To investigate whether green innovation is dynamic and continuous, this paper introduces the time lag term of the explanatory variables in the model. According to Elhorst’s (2011) research, a dynamic space Durbin model was established. The general dynamic spatial Durbin model formula is as follows:

$$Y=\gamma {Y}_{t-1}+\rho {WY}_{t-1}+\theta {WY}_t+\beta {X}_t+\delta {WX}_t+\omega i+\upsilon t+\varepsilon i t$$
(17)

Spatial weight matrix

The calculation of spatial autocorrelation needs to rely on the setting of the spatial weight matrix. The setting form of spatial weights mainly includes the adjacency weight matrix, in which the principle is geographical proximity to the city, and the geographical distance weight matrix, which is based on the length of the distance between cities. There is also an economic distance weight matrix. It is calculated according to the differences in economic development levels between cities. How to choose the matrix is mainly to see the needs of the article. The variables in this paper are all related to the level of economic development of the city (Liu and Chen 2022), and the more similar the economic development level, the more economic connections there are, so the more it can show a strong spatial correlation, so we select the economic distance weight matrix for calculation (Shao et al. 2016), and the established weight matrix is usually expressed as follows:

$${W}_{ij}=\left\{\begin{array}{l}\frac{1}{GDP_i-{GDP}_j},i\ne j\\ {}0,i=j\end{array}\right.$$
(18)

where GDPi represents the average GDP per capita of a city from 2011 to 2019.

Data

Based on the data available in this paper, samples with serious missing data were removed to ensure that the data were reliable. Finally, we use the data of 284 cities from 2011 to 2019 for analysis, and the individual missing values are supplemented by interpolation.

This paper uses the Digital Financial Inclusion Index of the Digital Finance Research Center of Peking University to characterize digital finance (Wen et al. 2022; Pan et al. 2021). The agent index of the number of green innovations is the total number of applications for the number of green patents (Guo et al. 2021b). Green invention patents are related to green utility model patents and green design patents, which have higher requirements for novelty and originality in patent reviews, and the review is more stringent. Authorized green invention patents refer to the examination of the State Intellectual Property Office. Its technology is in line with the authorization requirements of the patent. The authorized green invention patent is a valid patent, and there is no technical problem, so the quality of the patent that can be authorized is guaranteed.

Based on the existing literature, this paper selects some factors affecting green innovation, so the control variables include the economic situation, the number of scientific practitioners, population size, and the level of financial development. The agent index of the level of economic development is the logarithm of city’s per capita GDP (Zhang et al. 2021a). Scientific practitioners are the number of practitioners in the internet industry, and the scientific research industry is summed up and taken as a logarithm (Song et al. 2021ab). Population size is mainly measured using the logarithm of the urban household registration population as an agent indicator (Wei et al. 2022), and the level of financial development is measured by the ratio of the sum of deposits and loans of financial institutions to the city’s GDP (Feng et al. 2021).

All green patent data refer to the practices of Dong and Wang (2021). Patent information at the city level is obtained by collecting patent information published by national IP offices and according to the green patent lists and international classification codes provided by the WIPO (Dong and Wang 2021). The data for the remaining variables are derived from the China Urban Statistical Yearbook, the annual statistical bulletin of each city, and the EPS data platform.

Table 1 shows the expression and measurement of the main variables in this paper. Table 2 shows the results of the descriptive statistics of various variables. The variance of the indicators of green innovation quantity and quality is large, indicating that the gap between green innovation levels between cities is larger. The variance between the numbers of scientific researchers is also larger, indicating that the difference between the scientific research levels between cities is also large, so it is meaningful to explore the differences between digital finance and the level of green innovation between cities Fig. 1.

Table 1 Variable representation and its measurement
Table 2 Descriptive statistics for variables
Fig. 1
figure 1

Intermediary channels for digital finance and green innovation

Empirical results and discussions

Spatial metrological tests

To test the spatial correlation between variables, we calculate Moran’s I index of the data. A positive correlation refers to the aggregation of spatial distance; the correlation is significantly enhanced (Cai et al. 2022), and the negative correlation is the opposite; as the spatial position is more and more dispersed, the correlation is significantly enhanced. Therefore, this paper uses Stata 16.0 software to calculate Moran’s I index of green innovation quality and green innovation quantity in Chinese cities from 2011 to 2019, and the calculation results are shown in Table 3. Moran’s I index is significantly positive, so there is a significant spatial correlation between green innovations.

Table 3 Moran’s I of green innovations

Second, this paper also plots Moran’s scatters for 2011 and 2019. As shown in Fig. 2, the horizontal axis is represented, the vertical axis is indicated, and the distribution of the scatter plot indicates that there is a spatially positive correlation between green innovations between the sample cities.

Fig. 2
figure 2

Moran’s scatterplot of the quantity and quality of green innovation. a Moran’s scatter plot of the number of green innovation in 2011. b Moran’s scatter plot of the number of green innovation in 2019. c Moran’s scatter plot of green innovation quality in 2011. d Moran’s scatter plot of green innovation quality in 2019

Benchmark regression results

To select the appropriate spatial econometric model, we first needed to run the Hausman, LR, LM, and Wald tests. The results of the inspection are shown in Table 4. The double-fixed-effect model should be adopted in this study because it rejects the null hypothesis. The spatial Durbin model cannot degenerate into a spatial lag model or a spatial error model. This suggests that the double-fixed dynamic spatial Durbin model should be applied. The model settings are as follows (Elhorst et al. 2010):

$${\displaystyle \begin{array}{l} Lngre{1}_{it}=\alpha Lngre{1}_{it-1}+\sigma {\Sigma}_j{w}_{ij} lngre{1}_{it-1}+\rho {\Sigma}_j{w}_{ij} Lngre{1}_{jt}+{\beta}_1{Lnindex}_{it}+\\ {}{\beta}_2{\Sigma}_j{w}_{ij}{lnindex}_{jt}+\gamma {X}_{it}+\psi {\Sigma}_j{w}_{ij}{X}_{jt}+{u}_i+{\varepsilon}_{it}\end{array}}$$
(19)
$${\displaystyle \begin{array}{l} Lngre{2}_{it}=\alpha Lngre{2}_{it-1}+\sigma {\Sigma}_j{w}_{ij} lngre{2}_{it-1}+\rho {\Sigma}_j{w}_{ij} Lngre{2}_{jt}+{\beta}_1{Lnindex}_{it}+\\ {}{\beta}_2{\Sigma}_j{w}_{ij}{lnindex}_{jt}+\gamma {X}_{it}+\psi {\Sigma}_j{w}_{ij}{X}_{jt}+{u}_i+{\varepsilon}_{it}\end{array}}$$
(20)
Table 4 Hausman, LR, and Wald tests

Table 5 shows the results of the benchmark regression, and the regression coefficients of the lag terms of the quantity and quality of green innovation are significantly positive, indicating that green innovation is a dynamic, continuous process with a clear trend. Previous green innovations can contribute to current green innovations. The regression coefficient of digital finance on the quantity and quality of green innovation is significantly positive, indicating that local digital finance can increase the quantity and improve the quality of local green innovation. Cao et al. (2021) also show that the findings are reliable. The rho value is significantly positive, indicating that there is a significant spatial spillover effect on the increase in the quantity of green innovation and the improvement in the quality of green innovation between cities. This indicates the significant presence of spatial effects of green innovation in digital finance. The regression coefficient of the spatial lag term is significantly negative indicating the negative spillover effect of digital finance in neighboring regions on the quantity and quality of green innovation in local cities. Other studies have drawn similar conclusions that digital finance has a significant direct contribution to regional economic growth and negative spatial spillover effects (Ding et al. 2022). The economic significance expressed by the benchmark results is that the development of digital finance in the previous stage can have a catalytic effect on the development of digital finance in the next stage. Digital finance in the local city can have a positive impact on green innovation in the local city. However, when digital finance in other cities flourishes there is a negative impact on local green innovation, there is a negative spatial spillover effect. With the promotion of financial technology, digital finance can reduce the phenomenon of information asymmetry, effectively support small and micro enterprises’ innovation and entrepreneurship, and effectively identify green financing needs (Dupas and Robinson 2013). Digital finance in other cities has promoted the improvement of the city’s infrastructure, the improvement of information structure, and the reduction of risks and costs, thereby enhancing the local market vitality (Zhou et al. 2018) and optimizing local market structure so it can promote the expansion of local market demand. Therefore, through the local market effect, it further expands its own advantages and has a siphon effect on neighboring areas (Wei et al. 2010) so that local digital finance will reduce the quality of green innovation in the surrounding areas.

Table 5 Benchmark regression results

Robustness

Subsequently, robustness tests were carried out to ensure that the conclusions of this article are reliable (as shown in Table 6).

Table 6 Robustness test results

First, we exclude the samples of the four municipalities (Guo et al. 2021b), which often have large built-up areas, more residential populations, and an important position in the country’s politics, economy, science, culture, transportation, etc. The municipalities in all of the sample cities have particularities, and after removing the sample city data of the municipalities, this paper still gets the same conclusion.

Second, this paper replaces the agent index of the interpreted variable (Cui and Liu 2022), uses the logarithm of the total number of green patents granted to characterize the number of green innovations, and uses the proportion of green invention patents granted to the total number of green patents granted to characterize the quality of green innovation.

After that, the dynamic spatial autoregressive model (DSAR) is used instead of the DSDM model for regression (Gao et al. 2022), and the results of the test show that the digital finance index still has obvious positive effects on green innovation. The spatial rho value is still positive and significant, which proves that the previous conclusions are stable.

Endogenous test

To further alleviate the endogeneity problem in this paper, the number of landline telephones in China at the end of 1984 is used as an instrumental variable (Bai and Yu 2021). The number of landline telephones serves as a traditional telecommunication tool. Its infrastructure, the level of technology, affects the development of Internet technology in subsequent stages. This instrumental variable satisfies the correlation condition. The number of fixed phones in 1984 as historical data has no influence on green innovation in 2011. Also, the frequency of landline telephone use today is too low to have an impact on regional green innovation development. Therefore, this instrumental variable satisfies the exogeneity condition. In order to avoid the problem of collinearity, the provincial fixed effect was controlled this time (Zhang et al. 2021b). The missing values of some cities have also been eliminated.

In Table 7, the higher the number of landline telephones in 1984, the higher its level of digital finance development. The coefficients of green innovation quantity and green innovation quality are still significantly positive from the regression results of the second stage. It indicates that the conclusions of this paper are still reliable. From the results of the instrumental variable test, this instrumental variable rejects the unidentifiable test and there is no weak instrumental variable.

Table 7 Results of instrumental variable tests

Heterogeneity analysis and discussion

Regional heterogeneity

There are enormous differences in population size, economic and technological level, and natural environment between the eastern and mid-western cities, so according to Tang (2022), the sample is divided into eastern and mid-western cities. The results in Table 8 show that the digital finance composite index has a significant positive effect on the quantity and quality of green innovations in eastern cities, and for the mid-western regions, the regression coefficient is not significant. The main reason may be that eastern cities have faster economic growth and more various types of enterprises. The speed of technological development and the speed of technological transformation are faster, which is an important engine for green innovation. For several green innovations, itself is in the east and mid-west has spatial spillover effects (Liu et al. 2021b), which may be because of an increase in the number of the requirements of the green innovation technology difficulty is relatively low, the speed of technology spillovers, and fewer barriers (Miao et al. 2021). However, the mid-western green innovation quality rho value was not significant, which may be the cause of the mid-western cities’ own technology research and development strength is low, knowledge spillover is difficult, and government system and market environment are not as good as eastern cities, forming all kinds of communication obstacles (Song et al. 2020).

Table 8 Regional heterogeneity regression results

Different dimensions of digital finance

Digital finance can be divided into three subdimensions: breadth of coverage, depth of use, and degree of digitization (Han and Gu 2021; Wen et al. 2022). As the results in Table 9 show, the breadth of digital finance’s coverage has had a positive impact on the increase in the number of green innovations. The expansion of the coverage of digital finance in surrounding cities has a significant inhibitory effect on the improvement of the number of local green innovations, while the other two dimensions are not significant. The degree of digitization can significantly improve the quality of green innovation in a city (Rao et al. 2022), and the other two dimensions show little effect. The reason may be that the larger the industries and regions that digital financial inclusion can cover, and the more perfect the financial infrastructure, the more enterprises can benefit, which can rely on the advantages of big data platforms, get more financial support and other policy preferences, and the more motivated they are to develop their ability (Luo et al. 2022). However, the number of green innovations emphasizes quantitative growth and in some ways will ignore the originality of green innovation, so the coverage breadth of digital finance will make the quantity increase significantly, but it will not necessarily improve the quality. The degree of digitization of digital finance promotes the accessibility and continuity of financial services and can accurately identify the needs of target customers, thereby promoting the balance of resource allocation, reducing traditional risks, and improving operational efficiency (Mikhail et al. 2021), so that for project activities with high-quality green innovation, relying on cutting-edge technology can improve capital availability and technical support.

Table 9 Regression results for the subdimension of digital finance

Analysis of mediation effects

Having validated the intrinsic link between the kernel variables, this paper will analyze the possible influencing factors between them. The model settings are as follows:

$${\displaystyle \begin{array}{l}{M}_{it}={\upalpha}_1\ {M}_{it-1}+\sigma {\Sigma}_j{w}_{ij}{M}_{it-1}+{\uprho}_1{\Sigma}_j{\mathrm{w}}_{ij}{\mathrm{M}}_{jt}+{\upbeta}_1{\mathrm{Lnindex}}_{it}+{\uptheta}_1{\Sigma}_j{\mathrm{w}}_{ij}{\mathrm{Lnindex}}_{jt}\\ {}+{\upgamma}_1{{\mathrm{X}}^{\hbox{'}}}_{it}+{\uppsi}_2{\Sigma}_j{\mathrm{w}}_{ij}{{\mathrm{X}}^{\hbox{'}}}_{jt}+{\mathrm{u}}_i+{\upvarepsilon}_{it}\end{array}}$$
(21)

Digital finance increases the range of financial availability and financial technology to help with the rapid flow of capital and information. On the other hand, through big data and other functions, so that information visibility is higher, can improve the allocation efficiency of capital, so that capital can be flowed between industries with maximum social benefits, the industrial structure can be effectively adjusted (Liu et al. 2021a).

We use the proportion of the output value of the tertiary industry and the output value of the secondary industry to measure the advanced level of the industrial structure (Zhang et al. 2021a). The regression results of the table show that the regression coefficient of digital finance to the seniority of industrial structure is significantly positive. This shows that digital finance is beneficial to the optimization of industrial structure (Wang et al. 2022a). The high-level industrial structure is reflected in the rapid development of high-tech manufacturing and the increase in enterprise investment in technological research, and the level of urban innovation can be effectively improved (Li and Ma 2021). The advanced industrial structure means that the proportion of value added in the service sector has increased significantly. The service industry has lower energy consumption and a higher technical level than the industrial manufacturing industry, and the urban industrial spatial layout and environmental level can be continuously optimized. The upgrading of the industrial structure means that the green and low-carbon advantageous industries can get better development opportunities (Liang 2020), the level of carbon dioxide emissions has been significantly reduced, and the new field of the green technology industry will become an important economic growth point.

Therefore, digital finance can strengthen the innovation and application of green technology in production and manufacturing through the use of digital intelligence and other means, empower green creation, optimize the urban industrial layout, accelerate the speed of structural green transformation, accelerate the pace of upgrading the industrial structure, and ultimately improve the level of green innovation (Zhong, 2022).

This paper also uses the logarithm of the number of urban internet users to characterize the information support effect of the city (Song et al. 2021a). Digital finance has a significant positive effect on the level of informatization. One possible reason is that digital finance has led to the improvement of various related infrastructures, especially digital finance, which relies on information sharing of various types of big data, to create excellent interaction between online and offline financial platforms, to promote the accurate supply of finance and the satisfaction of personalized needs (Kelikume, 2021). It is necessary to strengthen various types of digital construction and promote the continuous innovation of digital technology, so that the level of informatization in the city will inevitably be greatly improved (Kohli and Melville 2019). The improvement of the level of urban informatization provides a fast way for capital flow and an effective channel for technology sharing, thereby improving the speed of information transmission and technology spillover between R&D departments and production departments, thus providing an information support effect for green innovation (Cindori et al. 2021).

The limitations of time and space have been broken by digital finance due to its own characteristics, expanding the scope of services, reducing transaction costs, and alleviating the problem of information asymmetry, so digital finance can accurately identify different needs, which is more conducive to resource allocation optimization (Cindori et al. 2021). To measure the effect of resource allocation, the indicator we chose is the proportion of science and technology expenditure in local fiscal expenditure. Digital finance has no statistical significance for the regression coefficient of the intensity of scientific research expenditure; the possible reason is that the resources of government science and technology expenditure are not properly allocated. The capital flow needs to be adjusted, and resource allocation needs to be more inclined toward key areas (Hu 2021). Other reasons may also be that scientific and technological expenditure on scientific and technological achievements requires a relatively long research and development process. The improvement of green innovation is not an overnight thing, which requires manpower, material resources, and multifaceted efforts (Spence 2021). The role of local government science and technology spending needs to be observed over time Table 10.

Table 10 Mediation effect analysis results

Conclusion and policy implications

As a new format of financial and technological integration and development, digital finance overcomes the drawbacks of traditional finance. This paper uses panel data from 284 cities in China from 2011 to 2019 to analyze the impact of digital finance on green innovation in dynamic space Durbin and examines the three possible intermediary effects of industrial structure adjustment, informatization level, and resource allocation. Heterogeneity analysis and robustness tests are also carried out. The conclusion of this paper is as follows:

  1. 1.

    Digital finance can promote the improvement of the quantity and quality of green innovations in local cities. After deleting some samples, replacing the DSDM model with the DSAR model, and replacing the explanatory variables, three kinds of robustness tests show that the conclusions of this paper are robust.

  2. 2.

    Digital finance in neighboring cities has inhibited local green innovation levels, which may be due to the siphon effect, and the local market effect of neighboring cities is still in play. Compared with the quantity of green innovation, the impact on the quality is more significant.

  3. 3.

    The results of this paper are heterogeneous. The positive impact is more significant in the eastern region with a high economic level, good infrastructure, and good market environment, and in terms of heterogeneity of subdimensions, the positive impact of coverage breadth on the number of green innovations is more significant.

  4. 4.

    Through the testing of the intermediary mechanism, digital finance can positively affect green innovation through the upgrading of the industrial structure and the level of informatization. However, due to the unreasonable allocation of resources, the mediating effect of the resource allocation mechanism does not exist.

We obtain the following suggestions for the research conclusions: first, governments should promote the popularization of digital finance in China, broaden the coverage, and strengthen the degree of digitalization and thus provide a good financial environment. We also confirm the existence of spatial spillover effects, so this is an effective move to strengthen regional cooperation and linkage. The government should exert the leading role of key cities, radiate the development of other cities, and avoid further expansion of the “polarization effect.” Second, the government needs to utilize technology to improve the level of urban informatization, improve relevant infrastructure, deepen the central service level and corresponding technical support of digital finance, rationally allocate government funds, and provide long-term support. Third, according to the heterogeneity analysis results of this paper, high-grade, large-scale cities in the east should continue to exert their advantages and develop digital finance, and low-grade, small-scale cities in the central and western should avoid the expansion of siphon effects, seize opportunities, and develop themselves.