1 Introduction

Traversable Lorentzian wormholes [1] are of fascinating objects predicted by Einstein’s theory of gravity. To be specific, wormholes are handle-like structures that connect two spatially separated locations in our universe or two different universes. Historically, the idea of wormholes was first theorized by Flamm in 1916 [2], shortly afterwards Einstein proposed his general relativity (GR) theory. Almost twenty years later, Albert Einstein and Nathan Rosen [3] proposed the existence of “bridges” between two different points in spacetime. This idea open up the possibility of a shorter route that could reduce travel time and distance also. This simplest form of mathematical model was dubbed “Einstein–Rosen bridges” for what the physicist John Wheeler would later coin a word “wormhole.” However, their solution is prohibited by physical rules due to the presence of a physical singularity. But, it was Morris and Thorne [1], who came up with an astonishing idea that could be a two-way passage through them without processing any event horizon. According to them, a traversable wormhole has a throat that connects two asymptotically flat regions. In this setting wormholes throat are identified as a minimal surface area satisfying the flare-out condition [1]. On the other hand Morris, Thorne and Yurtsever [4] studied the stability of transforming wormholes into a time machine. Visser systematically systematized all these seminal works in his book “Lorentzian wormholes: from Einstein to Hawking” [5].

The fundamental problem associated with traversable wormholes is the presence of matter that violates the energy conditions to satisfy the flare-out condition [4]. Such a matter is referred to as “exotic matter” (the stress-energy tensor of matter that violates the null energy condition). The presence of exotic matter has a repulsive nature that prevents the throat from shrinking. However, Visser et al. [6] had pointed out that the matter violating the averaged null energy condition to support traversable wormholes can be made infinitesimally small by means of an appropriate choice of wormhole geometry. Further, the amount of exotic matter can be confined at the wormhole throat by the cut-and-paste technique, yielding a thin-shell wormhole solution can be found in Refs. [7, 8]. Thin-shell wormholes have been studied by many authors [9,10,11,12].

These objects have been extensively studied within the context of GR. The Morris-Thorne wormholes in the presence of a generic cosmological constant has been studied in [13]. Wormhole solutions have also been obtained in support of phantom energy EoS [14,15,16]. The key argument is that the energy density of phantom field increases with time and thus provides a notion for the existence of wormholes. Lobo [17] discussed the stability equilibrium configurations for the specific phantom wormhole geometries by applying the linearized spherically symmetric perturbations. In the same line of action, various solutions regarding wormholes were found for generalized Chaplygin gas [18,19,20], varying cosmological constant [21], polytropic phantom energy [22] and ghost scalar fields [23]. Subsequently, evolving wormholes have also been studied in support of phantom matter and cosmological constant [24, 25], see also Refs. [26, 27].

Therefore, it goes without saying that the theoretical construction of wormhole geometries with ordinary matter is a challenging task in gravitation physics. But, we are still far away from the success-line at least in GR context. To overcome this situation stated above, one usually considers modified theories of gravity. Since, the modified theories introduce a new degree of freedom that helps a sustainable wormhole solution while keeping the matter components non-exotic. In alternative theories of gravity, for example, higher order gravity theories [28, 29], higher-dimensional cosmological wormholes [30] and in the Einstein-Gauss-Bonnet theory [31,32,33] authors have studied wormhole solutions. In support of this, one can find traversable wormholes in f(R) gravity with ordinary matter [34, 35], or sourced by dark matter [36, 37]. Indeed, wormhole geometries have also been explored in distinct modifications of GR, namely: Extended theories of gravity [38,39,40,41,42,43,44], third-order Lovelock gravity [45, 46], hybrid metric-Palatini gravity [47, 48] and f(Q) gravity [49,50,51]. A similar analysis has been performed in f(RT) gravity, see Refs. [52,53,54]. Interestingly, authors in [55,56,57] have shown that one can theoretically construct exact wormholes solutions without requiring exotic matter.

In [58], authors have proposed a new modified gravity theory, namely, the Rastall–Rainbow gravity. Since, the Rastall–Rainbow gravity model has been constructed with the combination of Rastall theory [59] and the gravity’s rainbow formalism [60]. Thus, the closed-form wormhole solution in Rastall–Rainbow gravity has received significant attention from the researchers. The focal point of our discussion is the space-time of embedding class-one. A spacetime is said to be of embedding class N if it can be locally embed in an \((4+N)\)-dimensional pseudo-Riemannian spacetime. Interestingly, the idea of embedding establishes a geometric relation between the metric functions and their derivatives for general spherically symmetrical line-element [61]. This means that one can choose one of the metric functions and generate the other metric function. This idea, the so-called “Karmarkar condition” has been used to address new solutions of relativistic astrophysical solutions, such as compact stars [62,63,64,65] and in wormhole solutions [66, 67] also.

The above discussion motivated us to search for wormhole solutions within the Rastall–Rainbow gravity context. The main attraction is the use of Karmarkar conditions on wormhole geometries and investigate the effects of the Rastall–Rainbow parameters on it. Our work plan is: In Sect. 2, we briefly review the Rastall–Rainbow gravity theory and derive the corresponding modified field equations for the configurations under consideration. In the same section we establish a relation between two metric functions via embedding approach. In Sect. 3, we choose a fairly simple redshift function that ensures the space-time is free from horizons and singularities. Using the chosen redshift function, we derive the shape function and studied all the constraints for wormhole solution. The structure equation for standard energy conditions is presented in Sect. 4. In Sect. 5, we present some features concerning wormhole solution under consideration, specifically, adiabatic sound velocity and energy conditions. Finally, Sect. 6 is devoted to summarize and discuss our findings.

2 Rastall–Rainbow gravity and wormholes

2.1 Rastall–Rainbow theory

In Einstein’s GR, the conservation law of the energy-momentum tensor is stated as \(T_{\mu ;\nu }^{\nu }=0\). Nevertheless, Rastall gravity is a modification of the GR suggested by Rastall [59]. In Rastall gravity, the conservation law of the energy-momentum tensor is not conserved, and expressed in the following form

$$\begin{aligned} T_{\mu ;\nu }^{\nu }=\bar{\lambda }R_{,\mu } \end{aligned}$$
(1)

where \(\bar{\lambda }=\frac{1-\lambda }{16\pi G}\). Here, \(\lambda \) stands for the Rastall parameter, which is a constant denoting the deviation from GR and describing the matter field’s affinity for coupling with geometry. When \(\lambda =1\), the standard law of conservation is recovered. What’s more, in the case of a flat space-time where the Ricci scalar \(R=0\), the standard conservation law also holds. On the other hand, in the presence of Rastall gravity, where \(\lambda \ne 1\) and space-time is non-flat, the above formula captures the modified conservation law effect. The aforementioned formula can be expressed as follows,

$$\begin{aligned} \left( T_{\mu }^{\nu }-\bar{\lambda }\delta _{\mu }^{\nu }R\right) _{;\nu }=0. \end{aligned}$$
(2)

So, in the case of Rastall gravity, Einstein’s equation can be modified to take a slightly different form, expressed as follows,

$$\begin{aligned} R_{\mu }^{\nu }-\frac{1}{2}\delta _{\mu }^{\nu }R=8\pi G \left( T_{\mu }^{\nu }-\bar{\lambda }\delta _{\mu }^{\nu }R\right) , \end{aligned}$$
(3)

which can be further simplified to the following form,

$$\begin{aligned} R_{\mu }^{\nu }-\frac{\lambda }{2}\delta _{\mu }^{\nu }R=8\pi G T_{\mu }^{\nu }. \end{aligned}$$
(4)

The corresponding expression for the trace of the stress-energy tensor is now obtained in the following way,

$$\begin{aligned} T=\frac{1-2\lambda }{8\pi G}R. \end{aligned}$$
(5)

Accordingly, the modified form of Einstein’s equation in Rastall’s gravity can be expressed as,

$$\begin{aligned} R_{\mu }^{\nu }-\frac{1}{2}\delta _{\mu }^{\nu }R=8\pi G \left( T_{\mu }^{\nu }-\frac{1}{2}\frac{1-\lambda }{1-2\lambda }\delta _{\mu }^{\nu }T\right) . \end{aligned}$$
(6)

In 2002, Magueijo and Smolin [68] introduced the gravitational rainbow as an extension of doubly special relativity to curved spacetimes. The gravitational rainbow involves a distortion of spacetime caused by two arbitrary functions \(\Pi (x)\) and \(\Sigma (x)\), known as rainbow functions. These functions are governed by the following conditions:

$$\begin{aligned} \mathcal{E}^{2}\Pi ^{2}(x)-\upsilon ^{2}\Sigma ^{2}(x)=m^{2}. \end{aligned}$$
(7)

Here, we are defining x as the ratio between \(\mathcal{E}\) and \(\mathcal{E}_{Pl}\) i.e., \(x=\mathcal{E}/\mathcal{E}_{Pl}\). In this context, \(\mathcal{E}\) stands for energy, \(\upsilon \) represents momentum, m denotes the mass of a particle under test, and \(\mathcal{E}_{Pl}=\sqrt{\hbar c^{5}}/G\) corresponds to the Planck energy. Awad et al. [69] and Khodadi et al. [70] selected \(\Pi (x)=1\) and \(\Sigma (x)=\sqrt{1+x^{2}}\) for studying solutions associated with a nonsingular universe. In addition, the exponential form of the rainbow has been employed in [69, 71] for investigating gamma-ray bursts. In the absence of test particles, the rainbow functions fulfill the following conditions:

$$\begin{aligned} \lim _{x \rightarrow 0}\Pi (x)=1,~\lim _{x \rightarrow 0}\Sigma (x)=1. \end{aligned}$$
(8)

In this context, the metric characterizing space-time depends on the energy [60], and can be expressed as,

$$\begin{aligned} g^{\mu \nu }(x)=\eta ^{ab} e_{a}^{\mu }(x)\otimes e_{b}^{\nu }(x). \end{aligned}$$
(9)

In this case, the energy-dependent Vierbein fields \(e_{a}^{\mu }(x)\) are connected to the independent Vierbein fields \(\widetilde{e}_{a}^{\mu }\) by the following relationships:

$$\begin{aligned} e_{0}^{\mu }(x)=\frac{1}{\Pi (x)} \widetilde{e}_{0}^{\mu }, \quad e_{k}^{\mu }(x)=\frac{1}{\Sigma (x)} \widetilde{e}_{k}^{\mu }. \end{aligned}$$
(10)

Here, the subscript \(k = (1, 2, 3)\) stands for the spatial coordinates. In the light of rainbow gravity, Einstein’s field equations are modified, based on the assumption that the geometry of space-time is related to the energy of the particle under test. Therefore, all amounts included in the field equations of this theory of gravity are energy-dependent. Contrary to the traditional Einstein field equations, a set of alternative field equations is being incorporated, of which the following is a typical one:

$$\begin{aligned} G_{\mu \nu }(x) \equiv R_{\mu \nu }(x) - \frac{1}{2}g_{\mu \nu }(x)R(x) = k(x)T_{\mu \nu }(x), \end{aligned}$$
(11)

where \(k(x) = 8 \pi G(x)\). These modifications are of great interest, as they allow us to better elucidate the relationship between gravity, high-energy physics, and the fundamental structure of spacetime.

The Rastall–Rainbow gravity model [58] evolves by combining modifications of Rastall gravity and Rainbow gravity. It introduces a unified framework that captures both the non-minimal coupling between gravity and matter, along with the energy-dependent behavior of particles. This model furnishes an expanded description of gravity that goes beyond the classical formulation of GR. In this unified formalism, the field equations are given by,

$$\begin{aligned} R_{\mu }{}^{\nu }(x) - \frac{\lambda }{2}\delta _{\mu }{}^{\nu }(x)R(x) = k(x) T_{\mu }{}^{\nu }(x) . \end{aligned}$$
(12)

Here, the Rastall parameter \(\lambda \) is supposed to be independent of the particle energy under test. In particular, within the framework of Rastall–Rainbow gravity, one can construct relativistic stars [72,73,74] or exotic objects such as wormholes [75]. In the forthcoming sections, we shall concentrate on illustrating the simplest form of wormhole geometry and analyzing its geometric properties. Here, we assume \(G(x) = 1\) for our entire calculation.

2.2 The wormhole geometry and its corresponding field equations

To construct a shape function satisfying embedding class one and characterizing the geometry of a spherically symmetric and static spacetime, we start with the metric ansatz given by

$$\begin{aligned} ds^2=-e^{\Phi (r)} dt^2 +e^{\Lambda (r)} dr^2 +r^2 d\theta ^2 +r^2\sin ^2\theta d\phi ^2. \end{aligned}$$
(13)

The geometry of spacetime is governed by the functions \(\Phi (r)\) and \(\Lambda (r)\), which depend on the radial coordinate r. These functions control the gravitational field and are ultimately involved in identifying the non-zero Riemann curvature components (13) corresponding to the spacetime configuration under consideration.

$$\begin{aligned}&\mathcal {R}_{{0101}}=\frac{1}{4}\,{\textrm{e}^{\Phi }} \left( -\Phi ^{{\prime }}\Lambda ^{{\prime }}+{\Phi ^{{\prime }}}^{2}+2 \,\Phi ^{{\prime \prime }} \right) , \end{aligned}$$
(14)
$$\begin{aligned}&\mathcal {R}_{{0202}}=\frac{1}{2}\,r\Phi ^{{\prime }}{\textrm{e}^{\Phi -\Lambda }},\end{aligned}$$
(15)
$$\begin{aligned}&\mathcal {R}_{{1202}}=0,\end{aligned}$$
(16)
$$\begin{aligned}&\mathcal {R}_{{1303}}=0,\end{aligned}$$
(17)
$$\begin{aligned}&\mathcal {R}_{{1313}}=\frac{1}{2}\,\Lambda ^{{\prime }}r \sin ^2 \theta ,\end{aligned}$$
(18)
$$\begin{aligned}&\mathcal {R}_{{2323}}={r}^{2} {\sin ^2 \theta } \left( 1-{\textrm{e}^{-\Lambda }} \right) . \end{aligned}$$
(19)

The components of Riemann curvature listed above satisfy the well-known Karmarkar condition,

$$\begin{aligned} \mathcal {R}_{{0202}}\mathcal {R}_{{1313}}=\mathcal {R}_{{0101}}\mathcal {R}_{{2323}}+\mathcal {R}_{{1202}}\mathcal {R}_{{1303}}. \end{aligned}$$
(20)

In the space-time geometry environment, the embedding class-one concept relates to a very specific form in which the non-zero components of the Riemann curvature tensor can be embedded in a higher-dimensional flat space. This concept enables us to interpret curvature geometrically by means of an embedding function. Following that, we apply the Karmarkar condition by replacing the non-zero components of the Riemann curvature tensor. More precisely, in the case of a static spherically symmetric spacetime, the non-zero components are generally given by,

$$\begin{aligned} \frac{\Phi ' \Lambda '}{1-e^{\Lambda }}=\Phi ' \Lambda '-2 \Phi ''-\Phi '^2, \end{aligned}$$
(21)

where primes denote derivatives with respect to the radial coordinate r, and \(e^{\Lambda }\ne 1\). The above-mentioned differential equation (21) gives the following solution,

$$\begin{aligned} e^{\Lambda }=1+ A e^{\Phi } \Phi '^2. \end{aligned}$$
(22)

Here A stands for integration constant. In exploring the properties of wormhole solutions, we start by considering a metric that is spherically symmetric, and time-independent (static). This metric substitutes the standard quantities of GR denoted by \(\widetilde{e}_{i}\) for spherical symmetry in Eq. (9), leading to the following line element,

$$\begin{aligned} ds^{2}=-\mathcal {A}(r) dt^{2} + \mathcal {B}(r) dr^{2} + \frac{r^{2}}{\Sigma ^{2}(x)}(d\theta ^{2}+\sin {\theta }^{2}d\phi ^{2}), \end{aligned}$$
(23)

where \(\mathcal {A}(r)\equiv \frac{e^{2\Phi (r)}}{\Pi ^{2}(x)}\) and \(\mathcal {B}(r)\equiv \frac{1}{\Sigma ^{2}(x) \left( 1-\frac{b(r)}{r}\right) }\). In this context, \(\Phi (r)\) and b(r) serve as arbitrary functions of the radial coordinate and are called redshift and shape functions respectively. It should be noted that the metric potentials are influenced by the rainbow functions \(\Pi (x)\) and \(\Sigma (x)\). Nevertheless, it’s worth mentioning that the coordinates r, t, \(\theta \), and \(\phi \) remain independent of the energy probe particles in gravity’s rainbow.

A fundamental feature of wormhole physics concerns the occurrence of a throat connecting two asymptotically flat spacetimes, with a minimum surface radius denoted by \(b(r_0) = r_0\). The radial coordinate covers the range between two patches, i.e. \([r_0, +\infty )\), where \(r_0\) stands for the transition point between the patches. Moreover, the flaring-out condition plays a major role in wormhole’s geometry and can be stated as follows [1],

$$\begin{aligned} \frac{b(r)-rb^{\prime }(r)}{b^2(r)}>0. \end{aligned}$$
(24)

In more precise terms, the shape function, indicated by b(r), should comply with the condition \(b^{\prime }(r_0) < 1\) to maintain the well-defined nature of the throat. What’s more, an auxiliary condition is also necessary for the region lying outside the throat, namely

$$\begin{aligned} 1 - \frac{b(r)}{r} > 0. \end{aligned}$$
(25)

This condition guarantees that the space-time in the region surrounding the throat remains traversable. Importantly, the redshift function called \(\Phi (r)\), must remain finite throughout spacetime, thereby avoiding the appearance of event horizons in the wormhole geometry.

Our main concern is to develop a model that simulates a wormhole solution. In this regard, we generally employ an anisotropic fluid stress-energy tensor for describing the matter distribution, which is commonly described by,

$$\begin{aligned} T_{\mu \nu }=(\rho +p_t)u_\mu u_\nu + p_t g_{\mu \nu }-(p_{t}-p_{r}) \chi _{\mu }\chi _{\nu }, \end{aligned}$$
(26)

where \(u^\mu \) is the fluid 4-velocity denoted as \(u_\mu u^\mu = -1\), \(\chi _{\mu }\) is the unit radial vector satisfying the condition \(\chi _{\mu } \chi ^{\mu } = 1\) and \(g_{\mu \nu }\) is the metric tensor. Furthermore, in this context, the energy density is represented by \(\rho = \rho (r)\), where r denotes the radial coordinate. Moreover, we have the radial pressure \(p_r = p_r(r)\) and the tangential pressure \(p_t = p_t(r)\), which depend solely on the radial coordinate, r.

Now, let us express Eq. (4) in its covariant form. On the left-hand side, we construct the geometrical Einstein tensor. On the right-hand side, we introduce an effective stress-energy tensor.

$$\begin{aligned} R_{\mu \nu }-\frac{1}{2}g_{\mu \nu }R=8\pi G\tau _{\mu \nu }, \end{aligned}$$
(27)

where

$$\begin{aligned} \tau _{\mu \nu }=T_{\mu \nu }-\frac{(1-\lambda )}{2(1-\lambda )}g_{\mu \nu }T. \end{aligned}$$
(28)

Bearing in mind Eqs. (5) and (26), the non-zero components of the field equations (27) can be reduced to

$$\begin{aligned} 8\pi \bar{\rho }= & {} \frac{b^{\prime }}{r^{2}}, \end{aligned}$$
(29)
$$\begin{aligned} 8\pi \bar{p}_{r}= & {} 2\left( 1-\frac{b}{r}\right) \frac{\Phi ^{\prime }}{r}-\frac{b}{r^{3}}, \end{aligned}$$
(30)
$$\begin{aligned} 8\pi \bar{p}_{t}= & {} \left( 1-\frac{b}{r}\right) \Big [\Phi ^{\prime \prime }+\Phi ^{\prime 2}-\frac{b^{\prime }r-b}{2r(r-b)}\Phi ^{\prime }-\frac{b^{\prime }r-b}{2r^2(r-b)} +\frac{\Phi ^{\prime }}{r}\Big ]. \end{aligned}$$
(31)

Here, \(\bar{\rho }\), \(\bar{p}_{r}\), and \(\bar{p}_{t}\) stand for effective energy density, effective radial pressure, and effective tangential pressure respectively. One define,

$$\begin{aligned} \bar{\rho }&= \frac{1}{\Sigma (x)^{2}}\left[ \alpha _{1}\rho +\alpha _{2}p_{r}+2\alpha _{2}p_{t}\right] ,\end{aligned}$$
(32)
$$\begin{aligned} \bar{p}_{r}&= \frac{1}{\Sigma (x)^{2}}\left[ \alpha _{2}\rho +\alpha _{1}p_{r}-2\alpha _{2}p_{t}\right] , \end{aligned}$$
(33)
$$\begin{aligned} \bar{p}_{t}&= \frac{1}{\Sigma (x)^{2}}\left[ \alpha _{2}\rho -\alpha _{2}p_{r}+\alpha _{3}p_{t}\right] , \end{aligned}$$
(34)

with

$$\begin{aligned} \alpha _{1}=\frac{1-3\lambda }{2(1-2\lambda )}, \qquad \alpha _{2}=\frac{1-\lambda }{2(1-2\lambda )}, \qquad \alpha _{3}=-\frac{\lambda }{1-2\lambda }. \end{aligned}$$

When setting \(\lambda =1\) and \(\sigma =1\), the field equations (29)–(31) can be modified to restore the standard GR definition for an anisotropic fluid sphere. In this modified formulation, there are five unknown quantities: \(\Phi (r)\), b(r), \(\rho (r)\), \(p_r(r)\), and \(p_t(r)\), which are governed by three independent differential equations. Nevertheless, this system of equations is undetermined, implying that additional information or suppositions are required to completely capture the wormhole configuration. In our peculiar approach, we have chosen to concentrate on establishing the functions \(\Phi (r)\) and b(r) as input variables. By doing so, we seek to get a somewhat more specific view of the wormhole. Lastly, it’s worth mentioning the conservation equation of the stress-energy tensor \(T^{\nu }_{\,\,\,\mu ;\nu }=\bar{\lambda }R_{\mu }\) takes the following form

$$\begin{aligned} \bar{p}_{r}' = -(\bar{p}_{r}+\bar{\rho })\Phi '+ \frac{2}{r}\left( \bar{p}_{t}-\bar{p}_{r}\right) . \end{aligned}$$
(35)

3 Traversable wormhole geometry

In order to construct a wormhole solution, we consider a simple form of redshift function \(\Phi (r)\) that ensure the space-time is free from horizons and singularities as follows [76],

$$\begin{aligned} \Phi (r)= -\frac{2 \xi }{r}. \end{aligned}$$
(36)

Here \(\xi \) represents an arbitrary constant. By comparing Eqs. (13) and (23), one obtains the following result,

$$\begin{aligned} \Lambda (r)= \ln \bigg [\frac{1}{\Sigma ^{2}(x)}\frac{r}{r-b(r)}\bigg ]. \end{aligned}$$
(37)

The wormhole shape function, denoted b(r), can be obtained by combining Eqs. (22), (36) and (37), respectively. This enables us to derive the following expression for the wormhole shape function,

$$\begin{aligned} b(r)= r - \frac{1}{\Sigma ^{2}(x)}\frac{r^5}{r^4 + 4 \xi ^2 A e^{\frac{-2 \xi }{r}}}. \end{aligned}$$
(38)

As stated by Morris and Thorne [1], in order to achieve a traversable wormhole solution, the shape function b(r) must satisfy the following crucial properties:

  1. 1.

    \( b'(r)<1~~\text {at}~~r=r_0\),

  2. 2.

    \(b(r)-r=0~~\text {at}~~r=r_0\),

  3. 3.

    \( \frac{b(r)}{r} \rightarrow 0~~\text {at}~~r\rightarrow \infty \),

  4. 4.

    \( \frac{b(r)-r b'(r)}{b'(r)}>0~~\text {at}~~r=r_0\).

The parameter \(r_0\) corresponds to the wormhole throat radius, and the radial coordinate r satisfies the condition \(r_0 \le r \le \infty \). To ensure the existence of a traversable wormhole solution, it is crucial that the shape function should satisfies these properties. These properties ensure that geodesics can pass through the throat without encountering singularities or obstructions. However, it’s worthwhile to note that fulfilling these fundamental properties is necessary but not sufficient to establish the physical viability of a wormhole solution. Additional factors, such as the energy conditions, stability analysis and the behavior of matter fields, must also be taken into account to construct physically plausible wormholes.

By substituting the throat condition \(b(r_0) - r_0 = 0\) into Eq. (38), we arrive at the trivial solution \(r_0 = 0\). To address this problem, we introduce a free parameter \(\gamma \) into Eq. (38). Accordingly, Eq. (38) has been modified to take the following form,

$$\begin{aligned} b(r)=r- \frac{1}{\Sigma ^{2}(x)}\frac{r^5}{r^4 + 4 \xi ^2 A e^{\frac{-2 \xi }{r}}}+\gamma . \end{aligned}$$
(39)

Based on the information given by condition (2), we can infer the following,

$$\begin{aligned} A= \frac{r_{0}^{4}}{4 \gamma \Sigma ^{2}(x) \xi ^2 e^{\frac{-2\xi }{r_0}}}\left[ r_0-\gamma \Sigma ^{2}(x)\right] . \end{aligned}$$
(40)

Upon replacing the value of A in Eq. (38), we can derive an alternative formula for the shape function, b(r). The resulting formula is as follows,

$$\begin{aligned} b(r)=r -\frac{\gamma r^5}{r_0^4 \left( r_0-\gamma \Sigma ^{2}(x)\right) e^{-2 \xi \left( \frac{1}{r}-\frac{1}{r_0}\right) }+\gamma \Sigma ^{2}(x) r^4 }+\gamma , \end{aligned}$$
(41)

where \(0<\gamma <r_0\). The prescribed range of \(\gamma \) meets both conditions (1) and (2). By using condition (3) with Eq. (41), we arrive at the following statement,

$$\begin{aligned} \lim _{r \rightarrow \infty } \frac{b(r)}{r}=0. \end{aligned}$$
(42)

Consequently, by evaluating Eq. (41), we get asymptotically flat traversable wormholes. To demonstrate each of the specified conditions, we have plotted a graph in Fig. 1, which clearly displays the fulfillment of all the necessary criteria by our generated wormhole. In addition, we have employed embedding diagrams to further visualize the wormhole geometry and extract valuable information. In the case of spherical symmetry, we are able to simplify the wormhole analysis by taking an equatorial slice with \(\theta = \frac{\pi }{2}\). This choice capitalizes on the symmetry of the problem, in effect shrinking it to a two-dimensional slice. By holding the time coordinate at a constant value, \(t = \text {const}\), we can investigate a snapshot of the wormhole geometry at a specific moment in time. This simplification allows us to concentrate on the spatial features of the wormhole without taking into account the dynamics related to temporal evolution. With \(\theta = \frac{\pi }{2}\) and \(t = \text {const}\), the wormhole metric can be expressed in terms of radial coordinates r and azimuth angle \(\phi \). Consequently, the resulting two-dimensional geometry can be represented by a line element of the following form,

$$\begin{aligned} ds^2=\frac{1}{\Sigma ^{2}(x) \left( 1-\frac{b(r)}{r}\right) } dr^2+r^2 d\phi ^2. \end{aligned}$$
(43)

With cylindrical coordinates (\(r, z, \phi \)) in three-dimensional Euclidean space, we can visualize the line element (43). Once visualized, this involves embedding the geometry of the wormhole in the selected coordinate system. The embedding enables us to portray the curved space-time of the wormhole as a surface in three-dimensional Euclidean space. The specific form of the embedding, depending on the line element (43) and the peculiar wormhole model under consideration, can be stated by the following line element,

$$\begin{aligned} ds^2= dr^2 + dz^2 +r^2 d\phi ^2. \end{aligned}$$
(44)

In a three-dimensional Cartesian coordinate system, the embedded surface \(z \equiv z(r)\) allows us to visualize the form of the wormhole with axial symmetry as follows,

$$\begin{aligned} ds^2= \bigg [1+ \bigg (\frac{dz}{dr} \bigg )^2 \bigg ]dr^2 +r^2 d\phi ^2. \end{aligned}$$
(45)

By comparing Eqs. (43) and (45), we can easily determine that,

$$\begin{aligned} \frac{dz}{dr}=\pm \bigg ( \frac{1}{\Sigma ^{2}(x) \left( 1-\frac{b(r)}{r}\right) } -1 \bigg )^{\frac{1}{2}}. \end{aligned}$$
(46)
Fig. 1
figure 1

The plots presented here illustrate the properties of the shape function−(Left panel), the embedding diagram−(Middle panel) and the embedded surface \(z(r)\) \(-\)(Right panel) for our model. The wormhole is characterized by specific parameter values, namely \(\Sigma (x) = 0.95\), \(\gamma = 0.95\), \(\xi =0.001\) and \(r_0 = 1.05\)

It’s worth mentioning here that Eq. (46) reveals an interesting characteristic: at the throat, the embedded surface becomes vertical, indicating that \(\frac{dz}{dr} \rightarrow \infty \). This suggests a rapid change in the height coordinate as the radial coordinate approaches the throat, implying a significant curvature or narrowness in that region. Moreover, if \(\frac{dz}{dr}\) tends to zero as r approaches infinity, it implies that the height coordinate approaches a constant value away from the throat, resulting in an asymptotically flat behavior. This behavior is indicative of a spacetime that becomes increasingly similar to flat spacetime at large radial distances. The embedded diagram shown in Fig. 1 provides a visual representation of the wormhole geometry. Significantly, this diagram visualizes both the upper universe for \(z>0\) and the lower universe for \(z<0\).

4 Energy conditions

To ensure the physical consistency of solutions in the context of Einstein’s equations, energy conditions (ECs) are imposed. These mathematical constraints serve as criteria for determining the validity of a spacetime geometry. The four primary ECs, namely the null energy condition (NEC), weak energy condition (WEC), dominant energy condition (DEC), and strong energy condition (SEC), play a crucial role in ensuring that the solutions satisfy certain physical requirements. By imposing these constraints on the energy-momentum tensor, we can assess the behavior of matter and energy within the framework of GR. According to classical GR, violations of the WEC are closely linked to the existence of exotic matter within wormhole structures. The violation of the WEC is characterized by the following condition

$$\begin{aligned} T_{\xi \varrho }u^{\xi } u^{\varrho }\ge 0, \end{aligned}$$
(47)

where \(T_{\xi \varrho }\) is the energy-momentum tensor, and \(u^\xi \) represents any timelike vector. Hochberg & Visser [77, 78], building onto earlier work by Morris & Thorne [1], extensively investigated the violation of the NEC in the context of wormholes employing exotic matter. They showed that the throat region of a wormhole does indeed violate the NEC. The behavior of the \(\Omega \) expansion, \(w_{\xi \varrho }\) rotation, and \(\sigma _{\xi \varrho }\) shear of the congruence associated with the \(v^\xi \) vector field is governed by the Raychaudhuri equations, which can be expressed as follows,

$$\begin{aligned} \frac{d \Omega }{d \tau }= & {} - \frac{\Omega ^2}{3}-R_{\xi \varrho } v^{\xi } v^{\varrho }-\sigma _{\xi \varrho } \sigma ^{\xi \varrho }-w_{\xi \varrho } w^{\xi \varrho }, \end{aligned}$$
(48)
$$\begin{aligned} \frac{d \Omega }{d \tau }= & {} - \frac{\Omega ^2}{2}-R_{\xi \varrho } u^{\xi } u^{\varrho }-\sigma _{\xi \varrho } \sigma ^{\xi \varrho }-w_{\xi \varrho } w^{\xi \varrho }. \end{aligned}$$
(49)

In order for gravity to be attractive, the criterion is that \(R_{\xi \varrho } v^{\xi } v^{\varrho }\ge 0\) holds true for all hypersurface orthogonal congruences, where \(w_{\xi \varrho }\equiv 0\) and \(\sigma ^2=\sigma _{\xi \varrho } \sigma ^{\xi \varrho }\). Mathematically, this condition can be expressed as,

$$\begin{aligned} T_{\xi \varrho } v^{\xi } v^{\varrho }\ge 0. \end{aligned}$$
(50)

The ECs, including the NEC, WEC, DEC, and SEC, are derived from the Einstein field equations. These conditions impose inequalities on the components of the energy-momentum tensor, which correspond to energy and momentum densities. Mathematically, they can be written as,

$$\begin{aligned} NEC&:&~ (p_{k}+\rho ) \ge 0,\end{aligned}$$
(51)
$$\begin{aligned} WEC&:&~\rho \ge 0,~ (p_{k}+\rho ) \ge 0,\end{aligned}$$
(52)
$$\begin{aligned} DEC&:&~ (\rho - |p_{k}| ) \ge 0,~\text {where k = space index},\end{aligned}$$
(53)
$$\begin{aligned} SEC&:&~ \Big (\rho + \overset{3}{\underset{k=1}{\Sigma }} p_{k}\Big )\ge 0,~ (p_{k}+\rho ) \ge 0. \end{aligned}$$
(54)

A violation of the ECs is a strong indication of the presence of exotic matter. More specifically, wormhole configurations necessitate a violation of the NEC. It should be noted that the NEC is the weakest restrictive of the ECs. It should be noted that the NEC is the least restrictive of the energy conditions. It has been shown that the stability of static wormhole configurations relies on the existence of exotic matter. Importantly, however, no experimental evidence has been discovered to prove the existence of exotic matter, raising doubts about the validity and physical achievability of wormhole.

5 Exact solutions for the matter content of the wormhole in Rastall–Rainbow formalism

5.1 Analyzing the properties of shape function

Now, we discuss the recently derived shape function, denoted by Eq. (41). The zero tidal solution for the wormhole remains completely unaffected by the rainbow function \(\Sigma (x)\), pointing to its robustness independently of the specific form of \(\Sigma (x)\). It’s also vital to ensure that the conditions \(1 - \frac{b(r)}{r} > 0\) for \(r > r_0\), \(b'(r_0) < 1\), and \(b(r) - b'(r) r > 0\) are satisfied, as previously noted. Upon examining Fig. 1, it becomes apparent that for \(r > r_0\), the expression \(b(r) - r\) takes on negative values, indicating that \(b(r)/r < 1\). This implies that with \(r \ge r_0\) and \(b'(r) < 1\), the function \(b(r) - r\) exhibits a decreasing trend with respect to r, satisfying the necessary flaring-out condition. Consequently, the derived shape function accurately characterizes the structure of a wormhole. Furthermore, Fig. 1 illustrates the embedding diagram for wormhole, featuring both the upper universe (for \(z > 0\)) and the lower universe (for \(z < 0\)). This is also verified that the spacetime is asymptotically flat, meaning that \(\frac{dz}{dr}\) tends to zero as r approaches infinity.

5.2 Analyzing the adiabatic sound velocity

The stability and physical significance of the solutions can be efficiently evaluated by considering the adiabatic sound velocity, expressed as,

$$\begin{aligned} v_s^2 = \frac{\partial {<p>}}{\partial {\rho }}, \end{aligned}$$
(55)

where \(<p>\) represents the average pressure across the three spatial dimensions, defined as,

$$\begin{aligned} <p> = \frac{1}{3}(p_r + 2p_t). \end{aligned}$$
(56)

These fundamental properties hold true while respecting the following constraint,

$$\begin{aligned} 0 \le v_s^2 < 1. \end{aligned}$$
(57)

By carefully analyzing Eqs. (59), (60), and (61), we can extract the following,

$$\begin{aligned} v_s^2= & {} \frac{d<p>}{dr} \left( \frac{d\rho }{dr}\right) ^{-1} = -\frac{1}{3} \Bigg [\mathcal {H}_1(r)\mathcal {G}_1^{-1}(r)+\mathcal {H}_2(r)\mathcal {G}_2^{-1}(r)\Bigg ]. \end{aligned}$$
(58)

where,

$$\begin{aligned} \mathcal {H}_1(r)= & {} \lambda (2 \lambda -1) \Sigma [x] ^2 \Bigg [\gamma ^2 r^8 \Sigma [x] ^2 \left( \gamma \Sigma [x] ^2+2 r \left( \Sigma [x] ^2-1\right) \right) \\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Big (\gamma \Sigma [x] ^2+\xi \\{} & {} +r \left( 2 \Sigma [x] ^2-3\right) \Big )+r_0^8 (\gamma +2 r) e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Bigg ],\\ \mathcal {H}_2(r)= & {} (2 \lambda -1) \Sigma [x] ^2 \Big (\gamma ^2 r^8 \Sigma [x] ^2 \Bigg [\gamma (3 \lambda -1) \Sigma [x] ^2\\{} & {} +2 \lambda ^2 r \left( \Sigma [x] ^2-1\right) \Big )+2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \\ {}{} & {} \times \Big (\gamma (3 \lambda -1) \Sigma [x] ^2+\left( 2 \lambda ^2-3 \lambda +1\right) \xi + r \left( \lambda ^2 \left( 2 \Sigma [x] ^2-5\right) +6 \lambda -2\right) \Big )\\{} & {} + r_0^8 \Big (\gamma (3 \lambda -1)+2 \lambda ^2 r\Big ) e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Bigg ], \end{aligned}$$
$$\begin{aligned}{} & {} \mathcal {G}_1(r)=8 \pi \left( \lambda ^2-3 \lambda +1\right) r^3 \Bigg [\gamma r^4 \Sigma [x] ^2 +r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Bigg ]^2,\\{} & {} \qquad \mathcal {G}_2(r)=16 \pi \lambda \left( \lambda ^2-3 \lambda +1\right) r^3 \Bigg [\gamma r^4 \Sigma [x] ^2+r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Bigg ]^2. \end{aligned}$$

Thus, we see that sound velocity depends both on the parameters \(\lambda \) and \(\Sigma [x]\). Noted that the parameter \(\lambda \) must be constrained within the regions where both the flaring-out and stability conditions are simultaneously satisfied. Figure 2 illustrates the parameter space, highlighting the valid region for satisfying these conditions.

Fig. 2
figure 2

The graph consists of two panels: the left panel displays a contour plot, while the right panel presents a three-dimensional plot. It illustrates the behavior of the parameter space (\(\lambda \), r), and highlights the region where the adiabatic sound speed condition is satisfied. The wormhole solution is characterized by specific parameter values, namely \(\Sigma (x) = 0.95\), \(\gamma = 0.95\), \(\xi =0.001\) and \(r_0 = 1.05\)

5.3 Generating the exact solutions

Now, by substituting Eq. (41) into the Eqs. (29)–(31), the energy density and pressure components are readily derived,

$$\begin{aligned} \rho (r)= & {} -\mathcal {H}_3(r)\mathcal {G}_3^{-1}(r),\end{aligned}$$
(59)
$$\begin{aligned} p_r(r)= & {} -\mathcal {H}_4(r)\mathcal {G}_4^{-1}(r),\end{aligned}$$
(60)
$$\begin{aligned} p_t(r)= & {} -\mathcal {H}_5(r)\mathcal {G}_5^{-1}(r), \end{aligned}$$
(61)

where,

$$\begin{aligned} \mathcal {H}_3(r)= & {} (1-2 \lambda ) \Sigma [x] ^2 \Bigg [(2 (1-\lambda ) \lambda ^2 \Big (\gamma ^2 r^8 \Sigma [x] ^2 \Big (\gamma \Sigma [x] ^2\\{} & {} +2 r \left( \Sigma [x] ^2-1\right) \Big )+2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \\{} & {} \times \left( \gamma \Sigma [x] ^2+\xi +r \left( 2 \Sigma [x] ^2-3\right) \right) +r_0^8 (\gamma +2 r) e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Big )\\{} & {} +(1-\lambda ) \Big (\gamma ^2 r^8 \Sigma [x] ^2 \Big (\gamma (3 \lambda -1) \Sigma [x] ^2+2 \lambda ^2 r \left( \Sigma [x] ^2-1\right) \Big )\\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Big (\gamma (3 \lambda -1) \Sigma [x] ^2+\left( 2 \lambda ^2-3 \lambda +1\right) \xi \\{} & {} + r \left( \lambda ^2 \left( 2 \Sigma [x] ^2-5\right) +6 \lambda -2\right) \Big )\\{} & {} +r_0^8 \Big (\gamma (3 \lambda -1)+2 \lambda ^2 r\Big ) e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Big )+4 \left( \lambda ^2-3 \lambda +1\right) \\{} & {} \times \lambda r \Big (\gamma ^2 r^8 \Sigma [x] ^2+5 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \\{} & {} -\left( \gamma r^4 \Sigma [x] ^2+r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \right) ^2\\{} & {} - 2 \gamma \xi r^3 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Big )\Bigg ],\\ \mathcal {G}_3(r)= & {} 16 \pi (1-3 \lambda ) \lambda \left( \lambda ^2-3 \lambda +1\right) r^3 \Bigg [\gamma r^4 \Sigma [x] ^2+r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Bigg ]^2, \end{aligned}$$
$$\begin{aligned} \mathcal {H}_4(r)= & {} (2 \lambda -1) \Sigma [x] ^2 \Bigg [\gamma ^2 r^8 \Sigma [x] ^2 \left( \gamma (3 \lambda -1) \Sigma [x] ^2+2 \lambda ^2 r \left( \Sigma [x] ^2-1\right) \right) \\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Big (\gamma (3 \lambda -1) \Sigma [x] ^2\\{} & {} +\left( 2 \lambda ^2-3 \lambda +1\right) \xi +r \left( \lambda ^2 \left( 2 \Sigma [x] ^2-5\right) +6 \lambda -2\right) \Big )\\{} & {} +r_0^8 \left( \gamma (3 \lambda -1)+2 \lambda ^2 r\right) e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Bigg ],\\ \mathcal {G}_4(r)= & {} 16 \pi \lambda \left( \lambda ^2-3 \lambda +1\right) r^3 \Bigg [\gamma r^4 \Sigma [x] ^2+r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Bigg ]^2, \end{aligned}$$
$$\begin{aligned} \mathcal {H}_5(r)= & {} \lambda (2 \lambda -1) \Sigma [x] ^2 \Bigg [\gamma ^2 r^8 \Sigma [x] ^2 \left( \gamma \Sigma [x] ^2+2 r \left( \Sigma [x] ^2-1\right) \right) \\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Big (\gamma \Sigma [x] ^2+\xi \\{} & {} +r \left( 2 \Sigma [x] ^2-3\right) \Big )+r_0^8 (\gamma +2 r) e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Bigg ],\\ \mathcal {G}_5(r)= & {} 16 \pi \left( \lambda ^2-3 \lambda +1\right) r^3 \Bigg [\gamma r^4 \Sigma [x] ^2+r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Bigg ]^2. \end{aligned}$$

The correlation between energy density (\(\rho (r)\)), two pressure components (\(p_r(r)\) and \(p_t(r)\)) and the Rainbow function \(\Sigma (x)\) becomes obvious, highlighting the interdependence of these quantities. In Fig. 3, we depict the graphical behaviour of the energy density \(\rho \) through specific parameter values: \(\Sigma (x) = 0.95\), \(\gamma = 0.95\), \(\xi =0.001\) and \(r_0 = 1.05\), respectively. This graph aims to display the validity of the inequality \(\rho \ge 0\) for the wormhole solution over a range of values of \(\lambda \), in particular in the region of \(\lambda \in [0.4, 0.8]\). However, it’s interesting to note that there’s an exception in the region \(\lambda \in [0.4, 0.8]\) where \(\rho \) falls within the range \([-0.00414, 0]\), which renders it invalid for the admissible range of \(\lambda \).

Fig. 3
figure 3

The graph consists of two panels: the left panel displays a contour plot, while the right panel presents a three-dimensional plot. It illustrates the behavior of the energy density (\(\rho \)) for our wormhole solution with different values of \(\lambda \) in the range of \(\lambda \in [0.4, 0.8]\). The wormhole is characterized by specific parameter values, namely \(\Sigma (x) = 0.95\), \(\gamma = 0.95\), \(\xi =0.001\) and \(r_0 = 1.05\)

This is more precisely stated by saying that what kind of matter contains the Rastall–Rainbow wormhole solution, and thus we search for different ECs in the forthcoming section. This helps us to assess ECs and draw a meaningful conclusion. The derived formulas for NEC, WEC, DEC and SEC are based on the Eqs. (59)–(61).

  • Searching for NEC and WEC along the radial and tangential directions which are indicated by

    $$\begin{aligned} \rho +p_r= & {} \mathcal {H}_6(r)\mathcal {G}_6^{-1}(r),\end{aligned}$$
    (62)
    $$\begin{aligned} \rho +p_t= & {} \mathcal {H}_7(r)\mathcal {G}_7^{-1}(r). \end{aligned}$$
    (63)

    where,

    $$\begin{aligned} \mathcal {H}_6(r)= & {} (2 \lambda -1) \left( \lambda ^2-4 \lambda +1\right) \Sigma [x] ^2 \Bigg [\gamma ^2 r^8 \Sigma [x] ^2 \left( \gamma \Sigma [x] ^2+2 r \left( \Sigma [x] ^2-1\right) \right) \\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \\{} & {} \times \left( \gamma \Sigma [x] ^2+\xi +r \left( 2 \Sigma [x] ^2-3\right) \right) +r_0^8 (\gamma +2 r) e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Bigg ],\\ \mathcal {G}_6(r)= & {} 8 \pi (3 \lambda -1) \left( \lambda ^2-3 \lambda +1\right) r^3 \Bigg [\gamma r^4 \Sigma [x] ^2+r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Bigg ]^2,\\ \mathcal {H}_7(r)= & {} \Sigma [x] ^2 \Bigg [-\lambda ^2 (2 \lambda -1) \Big (\gamma ^2 r^8 \Sigma [x] ^2 \left( \gamma \Sigma [x] ^2+2 r \left( \Sigma [x] ^2-1\right) \right) \\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Big (\gamma \Sigma [x] ^2+\xi \\{} & {} + r \left( 2 \Sigma [x] ^2-3\right) \Big )+r_0^8 (\gamma +2 r) e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Big )\\{} & {} -\frac{1}{1-3 \lambda }\Bigg [(1-2 \lambda ) \Big (2 (1-\lambda ) \lambda ^2 \Big (\gamma ^2 r^8 \Sigma [x] ^2 \Big (\gamma \Sigma [x] ^2 +2 r \left( \Sigma [x] ^2-1\right) \Big )\\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \left( \gamma \Sigma [x] ^2+\xi +r \left( 2 \Sigma [x] ^2-3\right) \right) \\{} & {} +r_0^8 (\gamma +2 r) e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \\{} & {} \times \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Big )+(1-\lambda ) \Big (\gamma ^2 r^8 \Sigma [x] ^2 \\{} & {} \left( \gamma (3 \lambda -1) \Sigma [x] ^2+2 \lambda ^2 r \left( \Sigma [x] ^2-1\right) \right) \\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \\{} & {} \times \left( r_0-\gamma \Sigma [x] ^2\right) \left( \gamma (3 \lambda -1) \Sigma [x] ^2+\left( 2 \lambda ^2-3 \lambda +1\right) \xi \right. \\{} & {} \left. +r \left( \lambda ^2 \left( 2 \Sigma [x] ^2-5\right) +6 \lambda -2\right) \right) \\{} & {} +r_0^8 \Big (\gamma (3 \lambda -1) +2 \lambda ^2 r\Big ) e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Big ) \\{} & {} +4 \left( \lambda ^2-3 \lambda +1\right) \lambda r \Big (\gamma ^2 r^8 \Sigma [x] ^2+5 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \\{} & {} -\left( \gamma r^4 \Sigma [x] ^2+r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \right) ^2\\{} & {} -2 \gamma \xi r^3 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Big )\Big )\Bigg ]\Bigg ],\\ \mathcal {G}_7(r)= & {} 16 \pi \lambda \left( \lambda ^2-3 \lambda +1\right) r^3 \left( \gamma r^4 \Sigma [x] ^2+r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \right) ^2. \end{aligned}$$
  • Searching for DEC and SEC along the radial and tangential directions which are indicated by

    $$\begin{aligned} \rho -p_r= & {} \mathcal {H}_8(r)\mathcal {G}_8^{-1}(r),\end{aligned}$$
    (64)
    $$\begin{aligned} \rho -p_t= & {} \mathcal {H}_9(r)\mathcal {G}_9^{-1}(r),\end{aligned}$$
    (65)
    $$\begin{aligned} \rho +p_r+2p_t= & {} -\mathcal {H}_{10}(r)\mathcal {G}_{10}^{-1}(r), \end{aligned}$$
    (66)

where,

$$\begin{aligned} \mathcal {H}_8(r)= & {} \Sigma [x] ^2 \Bigg [(2 \lambda -1) \Big (\gamma ^2 r^8 \Sigma [x] ^2 \Big (\gamma (3 \lambda -1) \Sigma [x] ^2+2 \lambda ^2 r \left( \Sigma [x] ^2-1\right) \Big )\\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \\{} & {} \times \left( \gamma (3 \lambda -1) \Sigma [x] ^2+\left( 2 \lambda ^2-3 \lambda +1\right) \xi +r \left( \lambda ^2 \left( 2 \Sigma [x] ^2-5\right) +6 \lambda -2\right) \right) \\{} & {} +r_0^8 \left( \gamma (3 \lambda -1)+2 \lambda ^2 r\right) \times e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Big )\\{} & {} -(1-3 \lambda )\Bigg [(1-2 \lambda ) \Big (2 (1-\lambda ) \lambda ^2 \Big (\gamma ^2 r^8 \Sigma [x] ^2 \left( \gamma \Sigma [x] ^2+2 r \left( \Sigma [x] ^2-1\right) \right) \\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \left( \gamma \Sigma [x] ^2+\xi +r \left( 2 \Sigma [x] ^2-3\right) \right) \\{} & {} +r_0^8 (\gamma +2 r) e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Big )\\{} & {} +(1-\lambda ) \Big (\gamma ^2 r^8 \Sigma [x] ^2 \left( \gamma (3 \lambda -1) \Sigma [x] ^2+2 \lambda ^2 r \left( \Sigma [x] ^2-1\right) \right) \\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Big (\gamma (3 \lambda -1) \Sigma [x] ^2\\{} & {} +\left( 2 \lambda ^2-3 \lambda +1\right) \xi +r \left( \lambda ^2 \left( 2 \Sigma [x] ^2-5\right) +6 \lambda -2\right) \Big )\\{} & {} +r_0^8 \left( \gamma (3 \lambda -1)+2 \lambda ^2 r\right) e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Big )+4 \left( \lambda ^2-3 \lambda +1\right) \lambda r \\{} & {} \times \Big (\gamma ^2 r^8 \Sigma [x] ^2+5 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \\{} & {} -\Big (\gamma r^4 \Sigma [x] ^2+r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) }\left( r_0-\gamma \Sigma [x] ^2\right) \Big )^2\\{} & {} -2 \gamma \xi r^3 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Big )\Big )\Bigg ]\Bigg ],\\ \mathcal {G}_8(r)= & {} 16 \pi \lambda \left( \lambda ^2-3 \lambda +1\right) r^3 \Bigg [\gamma r^4 \Sigma [x] ^2+r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Bigg ]^2, \end{aligned}$$
$$\begin{aligned} \mathcal {H}_9(r)= & {} \Sigma [x] ^2 \Bigg [\lambda ^2 (2 \lambda -1) \Big (\gamma ^2 r^8 \Sigma [x] ^2 \left( \gamma \Sigma [x] ^2+2 r \left( \Sigma [x] ^2-1\right) \right) \\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Big (\gamma \Sigma [x] ^2+\xi \\{} & {} + r \left( 2 \Sigma [x] ^2-3\right) \Big )+r_0^8 (\gamma +2 r) e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Big )\\{} & {} -(1-3 \lambda )\Bigg [(1-2 \lambda ) \Big (2 (1-\lambda ) \lambda ^2 \Big (\gamma ^2 r^8 \Sigma [x] ^2 \left( \gamma \Sigma [x] ^2+2 r \left( \Sigma [x] ^2-1\right) \right) \\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \left( \gamma \Sigma [x] ^2+\xi +r \left( 2 \Sigma [x] ^2-3\right) \right) \\{} & {} +r_0^8 (\gamma +2 r) \times e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Big )\\{} & {} +(1-\lambda ) \Big (\gamma ^2 r^8 \Sigma [x] ^2 \left( \gamma (3 \lambda -1) \Sigma [x] ^2+2 \lambda ^2 r \left( \Sigma [x] ^2-1\right) \right) \\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \left( \gamma (3 \lambda -1) \Sigma [x] ^2+\left( 2 \lambda ^2-3 \lambda +1\right) \xi \right. \\{} & {} \left. +r \left( \lambda ^2 \left( 2 \Sigma [x] ^2-5\right) +6 \lambda -2\right) \right) +r_0^8 \left( \gamma (3 \lambda -1)+2 \lambda ^2 r\right) \\{} & {} \times e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Big )+4 \left( \lambda ^2-3 \lambda +1\right) \lambda r \Big (\gamma ^2 r^8 \Sigma [x] ^2\\{} & {} +5 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) -\Big (\gamma r^4 \Sigma [x] ^2+r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) }\\ {}{} & {} \times \left( r_0-\gamma \Sigma [x] ^2\right) \Big )^2 -2 \gamma \xi r^3 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Big )\Big )\Bigg ]\Bigg ],\\ \mathcal {G}_9(r)= & {} 16 \pi \lambda \left( \lambda ^2-3 \lambda +1\right) r^3 \Bigg [\gamma r^4 \Sigma [x] ^2+r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Bigg ]^2,\\ \mathcal {H}_{10}(r)= & {} (2 \lambda -1) \left( 2 \lambda ^2+3 \lambda -1\right) \Sigma [x] ^2 \Bigg [\gamma ^2 r^8 \Sigma [x] ^2 \left( \gamma \Sigma [x] ^2 +2 r \left( \Sigma [x] ^2-1\right) \right) \\{} & {} +2 \gamma r^4 r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \times \left( \gamma \Sigma [x] ^2+\xi +r \left( 2 \Sigma [x] ^2-3\right) \right) \\{} & {} +r_0^8 (\gamma +2 r) e^{4 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) ^2\Bigg ],\\ \mathcal {G}_{10}(r)= & {} 8 \pi (3 \lambda -1) \left( \lambda ^2-3 \lambda +1\right) r^3 \Bigg [\gamma r^4 \Sigma [x] ^2+r_0^4 e^{2 \xi \left( \frac{1}{r_0}-\frac{1}{r}\right) } \left( r_0-\gamma \Sigma [x] ^2\right) \Bigg ]^2. \end{aligned}$$
Fig. 4
figure 4

The graph consists of two panels: the left panel displays a contour plot, while the right panel presents a three-dimensional plot. It illustrates the behavior of the NEC (WEC) i.e., (\(\rho +p_r\)) for the wormhole solution with different values of \(\lambda \) in the range of \(\lambda \in [0.4, 0.8]\). The wormhole is characterized by specific parameter values, namely \(\Sigma (x) = 0.95\), \(\gamma = 0.95\), \(\xi =0.001\) and \(r_0 = 1.05\), respectively

Fig. 5
figure 5

The graph consists of two panels: the left panel displays a contour plot, while the right panel presents a three-dimensional plot. It illustrates the behavior of the NEC (WEC) i.e., (\(\rho +p_t\)) for the wormhole solution with different values of \(\lambda \) in the range of \(\lambda \in [0.4, 0.8]\). The wormhole is characterized by specific parameter values, namely \(\Sigma (x) = 0.95\), \(\gamma = 0.95\), \(\xi =0.001\) and \(r_0 = 1.05\), respectively

Fig. 6
figure 6

The graph consists of two panels: the left panel displays a contour plot, while the right panel presents a three-dimensional plot. It illustrates the behavior of the DEC i.e., (\(\rho -p_r\)) for our wormhole solution with different values of \(\lambda \) in the range of \(\lambda \in [0.4, 0.8]\). The wormhole was characterized by specific parameter values, namely \(\Sigma (x) = 0.95\), \(\gamma = 0.95\), \(\xi =0.001\) and \(r_0 = 1.05\), respectively

Fig. 7
figure 7

The graph consists of two panels: the left panel displays a contour plot, while the right panel presents a three-dimensional plot. It illustrates the behavior of the DEC i.e., (\(\rho -p_t\)) for our wormhole solution with different values of \(\lambda \) in the range of \(\lambda \in [0.4, 0.8]\). The wormhole was characterized by specific parameter values, namely \(\Sigma (x) = 0.95\), \(\gamma = 0.95\), \(\xi =0.001\) and \(r_0 = 1.05\), respectively

Fig. 8
figure 8

The graph consists of two panels: the left panel displays a contour plot, while the right panel presents a three-dimensional plot. It illustrates the behavior of the SEC i.e., (\(\rho + p_r +2p_t\)) for the wormhole solution with different values of \(\lambda \) in the range of \(\lambda \in [0.4, 0.8]\). The wormhole was characterized by specific parameter values, namely \(\Sigma (x) = 0.95\), \(\gamma = 0.95\), \(\xi =0.001\) and \(r_0 = 1.05\), respectively

Since, we know that WEC or SEC \(\implies \) NEC and DEC \(\implies \) WEC \(\implies \) NEC. Interestingly, all ECs are automatically violated if NEC is violated. Thus, our main focus lies on the NEC. In Figs. 3, 4, 5, 6, 7 and 8, we depict all ECs i.e., NEC, WEC, DEC, and the SEC along radial and tangential directions. Observing the Figs. 3 and 4, we see that the inequality \(\rho + p_r < 0\) holds at the throat of the wormhole and its vicinity only for \(\lambda \le 0.5\). Similarly, the inequality \(\rho + p_t < 0\) also holds at the throat and its vicinity of the wormhole model for \(\lambda \le 0.5\) and \(\lambda \ge 0.6\). From these observations, we can say that the model violates NEC throughout the spacetime and consequently the violation of WEC also in regions where \(\lambda \le 0.5\) and \(\lambda \ge 0.6\). Interestingly, the DEC is also violated at the wormhole’s throat and its neighborhood, as evident from Figs. 5, 6 and 7, respectively. On the other hand, the SEC remains positive for \(\lambda \ge 0.5\), indicating compliance with the ECs, as shown in Fig. 8.

6 Discussion and implications

The physical importance of Rastall–Rainbow gravity is profound regardless of any modified gravity theories. Since, the Rastall–Rainbow gravity model has been constructed with the combination of Rastall theory and the gravity’s rainbow formalism. The present article aims to explore the possible existence of static and spherically symmetric wormholes in Rastall–Rainbow gravity. The modeling has been carried out using the well known embedding class I techniques to embed a four-dimensional space-time into a pseudo-Riemannian space-time. This procedure helps us to establish a connection between two metric potentials, and thus we are able to solve the modified field equations analytically.

More specifically, we obtained exact wormhole solutions by considering a specific choice of redshift function and solve the field equations analytically. We apply stringent constraints to our model parameters (\(\lambda , \Sigma [x]\)) from the flaring-out conditions and investigate the effects of both parameters on it. Notably, the resulting shape function obtained from the embedding approach is depending on both model parameters \(\lambda \) and \(\Sigma [x]\). Taking into account these constraints, we further investigate the energy conditions and showed that wormhole space-time violates the NEC at the throat and its vicinity, and consequently the violation of WEC also. Additionally, we investigate the overall stability of the configuration by determining the adiabatic sound velocity and explicitly computed the stable region, as shown in Fig. 2. Finally, we can say that the present approach may constitute a stable wormhole solution in Rastall–Rainbow gravity theory.