1 Introduction

Nanotechnology has unprecedented uses in industries such as biomedical, clinical, agriculture, food, environment, electronics, power, textiles, aviation, and aerospace [1] Nanomaterials science deals with the structure and utility of nano-sized particles across disciplines [2]. In general, nanotechnology deals with particles whose at least one dimension is in the range of 1–100 nm [3]. In recent years, nanoparticles have been considered due to their properties such as high surface-to-volume ratio, very small size, and physical and chemical properties compared to their bulk structure [4]. Nanoparticles are divided into several categories of composite such as core–shell structures, insulating and semiconductor nanoparticles, metal and ceramic including metal oxides nanoparticles [5, 6]. Among these, metal nanoparticles have been used extensively in medicine and pharmaceutical applications [7, 8]. Silver nanoparticles (Ag-NPs) have been reported to possess efficient anti-microbial, anti-oxidant, anti-fungal, anti-inflammatory, anti-viral, and anti-angiogenesis properties [9]. Silver nanoparticles (Ag-NPs) have a large surface area, which leads to biochemical reactivity and significant catalytic activity compared to larger particles with similar chemical properties [10]. Monovalent silver compounds have been used as antibacterial agents for many years. However, studies have shown that silver nanoparticles also have these properties [11]. Ag nanoparticles were observed to penetrate bacterial cells. They produced free oxygen that bound to cell structural components, resulting in bactericidal effects [9, 12]. These properties make nanoparticles more toxic to fungi, bacteria and viruses than bulk metallic silver [13,14,15].

One of the important areas of nano-science is related to the design of experimental methods for the synthesis of nanoparticles with different chemical composition, size, shape and properties [16, 17].There are several methods for the synthesis of silver nanoparticles, including sol–gel method, chemical vapor deposition, laser ablation technique, hydrothermal and combustion synthesis [10, 18]. The application of chemical methods is limited due to the high cost and retention of some toxic reagents on nanoparticles in medicine, and also potential damage to the environment [19, 20]. Due to increased environmental awareness, natural substances have gained attention as potential antibacterial agents [21]. Producing environmentally friendly nanoparticles using synthesis methods without using toxic and dangerous chemicals is becoming increasingly important in today’s world. Nanoparticles can be created using a variety of chemical methods and materials, but many researchers are turning to environmentally friendly processes that use enzymes, microscopic organisms, and plant extracts to synthesize nanomaterials. Recently, the synthesis of nanometals using plant extracts has gained attention due to its low environmental risk and safety, in addition to the use of genetic engineering and transgenic plants that are resistant to pests. The green route is non-toxic, eco-friendly, clean, inexpensive, and safe [22,23,24]. Biochemical, enzymes, vitamins and polysaccharides in micro and microorganisms such as bacteria [25], fungi [26], algae [27] and plants [28, 29] are generally used in green synthesis of nanoparticles [30,31,32]. Green synthesis of metal ions using plant compounds is usually a one-step method that does not require surfactants and other stabilizing agents [33, 34]. Biologically active substances and compounds in plant extracts such as flavonoids, polyol compounds, heterocyclic molecules and other water-soluble metabolites can be used to reduce the metal ions to nano size materials at room temperature [35, 36]. In this method, the surface of nanoparticles is covered by plant metabolites as well as carbohydrates and proteins which in addition to sustainability, makes them biocompatible [35]. Nature of plant extract, metal salt concentration, pH, temperature, and extract concentration are the factors that affect the production rate and quality of nanoparticles [37]. So far, various plants have been used to synthesis silver nanoparticles, including Jatropha curcas [38], Azadirachtaindica [39], Echinacea purpurea[40], Cestrum nocturnum [15] and Ferula persica [41].

Prickly Pear is a subfamily plant of Opuntiaspp and belongs to the Cactus family. This plant is widely found in Mexico, Asia, Latin America, South Africa and the Mediterranean. Mexico is a major producer of Opuntia species and accounts for more than 45% of world cultivation [42,43,44]. Cactus pear fruit, commonly called Prickly Pear fruit, due to the content of betalin and betanin pigments are in purple color and due to the content of indicaxanthin pigments finding in orange as well as white colors [45]. The results of various studies have shown that European and Asian Cactus fruits are a source of nutrients and antioxidants that reduce oxidative stress in patients significantly. It also has benefits such as protective effects on the cardiovascular system, anti-cancer, liver and nerve protection [46,47,48,49]. Intense antibacterial effects are another feature of Prickly Pear [50, 51].

Therefore, in the present study, the Cactus fruit extract was used to synthesize of silver nanoparticles as well as antibacterial and antioxidant properties of synthesized silver nanoparticles, were investigated.

2 Materials and methods

2.1 Materials

In the present study, silver nitrate (AgNO3) was purchased from the Merck Company in order to nanoparticles synthesis. To prepare the plant extract, the fruit of the Cactus plant was collected in spring around the city of Birjand (the capital of South Khorasan Province—Iran) and methanol with a purity of 99.9% (Germany Merck) was used. Also 2,2-Diphenyl-1-picrylhydrazyl (DPPH) were prepared from Sigma Company to test the antioxidant properties of nanoparticles. For antibacterial experiment, Mueller- Hinton Agar and Mueller–Hinton Broth made by Merck, and to adjust the pH, sodium hydroxide solution were used.

2.2 Preparation of Cactus fruit extract

A rotary apparatus was used for methanolic extraction of the prickly pear plant extract. For this purpose, the collected Cactus fruit was dried at room temperature and in the dark condition after washing with double distilled water. After that, 30 g of dried fruit powder was exposed to 400 mL of methanol for a specified period time. Then, the samples were filtered using Whatman paper (No.42) and a rotary device was used for extraction [52].

2.3 Synthesis of silver nanoparticles

The advantages of plant materials use for the biosynthesis of nanoparticles is the perception of adsorb mechanism of metal ions by plants and understanding the possible mechanism of metal nanoparticle formation in plants. To prepare nanoparticles by green synthesis method, AgNO3 was used as a source of silver. For this purpose, 10 mL of prickly pear extract (5 g/L) was combined with 10 mL of silver nitrate solution (5 mM). The solution was stirred at room temperature for 20 min at 200 rpm. The final color change of the solution from pink to brown indicated the synthesis of silver nanoparticles. The absorption spectra were obtained using a double Beam Spectrophotometer in the range of 300 to 500 nm. In order to optimize the silver concentration, 5–30 mM of silver nitrate with 10 mL of Cactus fruit extract was shaken in specific pH and temperature for about 20 min. To evaluate the optimal pH, 10 mL of silver nitrate solution from the previous stage was mixed with 10 mL of Cactus fruit extract and examined at pH range equal 7–14 for 20 min at room temperature. In the next step, to determine the optimal time, 10 mL of Cactus extract with optimized silver nitrate solution was placed on the shaker in fixed temperature and pH for 5–60 min. Finally, the optimal solution was centrifuged (Centurion Scientific, K280R, England) at 6000 rpm to obtain nanoparticle sediment. In order to get pure nanoparticles, the precipitate was washed with distilled water and methanol. Then the obtained nanoparticles were dried in an oven at 60 °C for 24 h [53].

2.4 Characterization

Several advanced methods were used to determine the surface morphology and properties of the synthesized silver nanoparticles. The nanoparticle absorption spectra were taken by UV–Vis spectrophotometer (UV–Vis T80+, PG Instrument Ltd, England). Scanning electron microscopy (SEM)(FE-SEM; TESCAN BRNO-Mira3) was used to analyze and characterize the distribution of nanoparticle constituents. Changes in the crystal structure of nanoparticles was investigated by X-ray diffraction (XRD)(Philips X’pert pro, The Netherlands). Energy-dispersive X-ray spectroscopy (EDAX) spectroscopy was used to analyze and describe the distribution of nanoparticle constituent elements.

2.5 Determination of antibacterial properties

Standard strains bacteria (ATCC) were prepared from the Microbiology Reference Laboratory and frozen. Antimicrobial activity of extract and nanoparticles against gram-positive bacteria such as Staphylococcus aureus (PTCC 16538), Enterococcus faecalis (ATCC 15753), Streptococcus mutans (ATCC 35668), Streptococcus mitis (ATCC 6249), Klebsiella pneumonia (PTCC 700603), and Staphylococcus epidermidis (ATCC 12228) as well as gram-negative Escherichia coli (ATCC 25922) and Pseudomonas aeruginosa (ATCC 27853) was determined by micro-broth dilution method.

The minimum inhibition concentration (MIC) was determined in 96-well plate. For this purpose, 100 µL of each bacterium with a concentration of 0.5 McFarland was dissolved under sterile conditions in Mueller–Hinton broth culture medium and incubated at 37 °C for 2 h. Briefly, 100 µL of the Mueller–Hinton broth culture medium was poured into 96-well microplate. Then 100 µL of the extraction solution containing silver nanoparticles was added to the first well of each row and diluted from the second well to the third and in the same way it was diluted to well number 6. In the next step, 100 µL was poured out of the end well and the concentration of nanoparticles in each well will be half of the previous. Finally, 100 µL of diluted microbial suspension with 106 CFU/mL was added to all wells. This procedure was performed for all of the mentioned bacteria. Then, the microplates containing Streptococcus bacteria were incubated in the presence of CO2 and the other microplates without CO2 for 24 h at 37 °C. The intensity of turbidity, which indicates the growth of bacteria, was examined visually. According to the definition, the concentration of the last well (the thinnest) without turbidity was considered as MIC. The extract solution alone was used as a control.

To determined Minimum Bactericidal Concentration (MBC), all turbidity-free wells were cultured on Mueller–Hinton agar medium separately. Solid culture medium containing Streptococcus bacteria was incubated in the presence of CO2 and other plates without the presence at 37 °C. After 2 h, the lowest concentration of the extract containing silver nanoparticles in which the bacterium did not grow was reported as MBC (Fig. 1) [53]. Experiments were performed in 3 rounds and the average results were reported.

Fig. 1
figure 1

Antibacterial experiment trend

2.6 Determination of antioxidant properties

Some plants have the ability to prepare silver nanoparticles with antioxidant properties in the green synthesis method. The potential of these plants for bioremediation of Ag+ to Ag° has been identified via spectroscopic methods by reducing the adsorption in 517 nm. Evaluation of DPPH free radical inhibition is one of the most common methods for appraised antioxidant power of various compounds due to its simplicity and high sensitivity. The basis of this method is the reduction of DPPH free radical by antioxidants in the absence of other free radicals in the environment [54,55,56]. For this purpose, different concentrations of silver nanoparticles and extract (1–2-5 mg/mL) were prepared in deionized water. After, 50 µL of the sample was added to 1 mL of stock solution of DPPH and ethanol (Fig. 2). The reaction mixture was stirred and its adsorption was determined after 15 min at 517 nm using a UV–Vis spectrophotometer. Ethanol was used as a blank sample in all assays. Free radical scavenging activity was calculated as DPPH reduction percentage as follows.

Fig. 2
figure 2

Antioxidant test procedure

3 Results and discussion

Silver nanoparticles (AgNPs) were synthesized using Prickly Pear fruit as reducing agent. The conversion in color of the solution from pink to dark brown shortly after the addition of the extract to 5 mM silver nitrate (AgNO3) due to the bioremediation of silver ions (Ag+) indicated the successful synthesis of silver nanoparticles. Lack of temperature limit and high reaction rate for silver nanoparticles formation can be considered as an advantage of this method. The color change increased over time due to further regeneration of Ag+. In order to confirm the synthesis of silver nanoparticles, ultraviolet spectra were recorded at 300–500 nm. According to result, the maximum absorption peak in the 420 nm wavelength range indicates the presence of silver nanoparticles in the reaction solution. Since the optimization of the important factors in green synthesis can affect the morphology and other properties of nanoparticles, several effective parameters were investigated and optimized in this study.

3.1 Experiments of reaction parameters

3.1.1 Influence of silver nitrate concentration

In order to investigate the effect of silver nitrate concentration on nanoparticles formation, extract solutions in different concentrations of silver nitrate were prepared. Concentrations of 5, 10, 20, and 30 mM silver nitrate with 10 mL extract at constant temperature and pH were placed on the shaker. In order to ensure the formation of nanoparticles after 20 min, the absorption spectra of the solutions were recorded at 300–500 nm using a spectrophotometer. According to reports, the presence of Surface plasmon resonance characteristic (SPR) in the range of 420–440 nm indicates the formation of silver nanoparticles [57]. As shown in Fig. 3, nanoparticle formation rate in concentration of 5 mM solution of silver nitrate is more than other concentrations. Therefore, it was concluded that increasing the concentration of metal ions above the threshold leads to a decrease in nanoparticle synthesis. Therefore, in subsequent experiments, this concentration was considered optimal.

Fig. 3
figure 3

Effect of silver nitrate concentration on the synthesis of silver nanoparticles

3.1.2 Influence of pH

In order to investigate effect of pH on the silver nanoparticles formation, solutions of Cactus fruit extract were prepared in the alkaline pH range. For this purpose, 10 mL of silver nitrate solution was combined with the optimal concentration of ‌ 5 mM with 10 mL of the extract. Then, the pH of the solution was raised to 7, 10, 12, and 14 by adding 2 N sodium hydroxide solution. To ensure the synthesis of nanoparticles after a specified time and at ambient temperature, the visible spectrum was taken in the range of 300–500 nm. As shown in Fig. 4, by changing the pH from neutral to alkaline, a significant increase was observed in the adsorption band intensity, so that the maximum absorption of the final product is at pH equal 14. Therefore, it can be stated that the presence of NaOH facilitates the deposition of silver nanoparticles and thus increases the formation of nanoparticles [58]. Birla et al. Reported similar results from this study, according to which silver nanoparticles are dispersed and stable at alkaline pH. Also, the synthesis of nanoparticles is decrease by reducing the pH at the acidic surface due to the accumulation and density of the particles [59].

Fig. 4
figure 4

Effect of pH on the silver nanoparticles formation

3.1.3 Influence of contact time

Reaction time is another important factor in nanoparticle synthesis. This factor is necessary for complete the process of reducing silver salt by the extract and converting into silver nanoparticles. According to reports, in a short time the possibility of converting all Ag+ ions is reduced, while a long time does not much effect on this process [60]. Therefore, optimizing the reaction time for the speed of synthesis as well as the complete synthesis of nanoparticles has particular importance. For this purpose, silver nitrate with the optimal concentration was combined in proportion to the extract and was shaken for 5, 20, 10, 40, 30, and 60 min at optimum temperature and pH. Finally, the absorption spectrum for all samples was taken with a two-beam spectrophotometer in the range of 300 to 500 nm. According to the results (Fig. 5), time of 40 min was sufficient to convert all Ag+ ions to silver nanoparticles and more time did not have a significant effect on synthesis. It should be noted that at times higher than the optimum time, the size of nanoparticles increases and due to compaction become mass. The results of the research of Shameli et al. are similar to the results of the present study, which with increasing time, the synthesis of nanoparticles decreased [61].

Fig. 5
figure 5

Effect of time on the silver nanoparticles formation

3.2 Characterization of the synthesized AgNPs

The reduction of Ag ions was confirmed by ultraviolet–visible spectroscopy (UV–Vis), X-ray diffraction (XRD), X-ray energy diffraction (EDAX), and scanning electron microscopy (SEM).

3.2.1 XRD pattern

X-ray diffraction pattern (XRD) provides information on the crystal structure and approximate size of nanoparticles [62]. For this purpose, a device with a copper anode lamp source Cu Ka at a wavelength of 1.5406 A˚ was used. Data were taken in the area of 2θ and in the range of 10–80°. According to Fig. 6, the presence of peaks for the Miller Indices (111), (200), (220) and (311), which are related to the absorption peaks at angles of 38.1°, 44.8°, 64.5° and 77.4°; respectively, is fully compliant with the standard silver X-ray diffraction pattern. Also, the synthesized nanoparticles have a face centered cubic crystal structure with a size of about 40–65 nm. The results of the XRD pattern that presented at Fig. 6 confirm the presence of silver crystals in the Cactus plant extract [59, 63].

Fig. 6
figure 6

XRD pattern of silver nanoparticles in the presence of Cactus fruit extract

3.2.2 EDS analysis

X-ray energy diffraction spectroscopy (EDX or EDS) is an analytical method used to analyze the structural or chemical properties of a sample. This method relies on examining the interaction between an X-ray excitation source and a sample. Each of the peaks shown in this diagram is assigned to a specific atom. Intense peaks mean higher element concentrations in the sample [64, 65]. In this study, EDAX spectrum was used to represent the initial composition of silver nanoparticles.The spectrum presented in Fig. 7 identifies the constituent elements of nanoparticles. In the obtained spectral analysis, the strong signal observed in 3 Ke Vis related to the adsorption of silver nanoparticles [66], and the quantity of carbon elements in the amounts of 10.19%, oxygen 21.52% and silver 68.29% has been recorded. According to the results, the percentage of silver metal was significant compared to other chemical elements and these elements act as organic coating agents on the surface of silver nanoparticles.

Fig. 7
figure 7

EDS spectrum of silver nanoparticles in the presence of Cactus fruit extract

3.2.3 SEM images

Scanning electron microscopy (SEM) was used to examine the morphology, mean diameter and surface details of the nanoparticles. Figure 8 shows the SEM images with a magnification of 500 nm of synthesized silver nanoparticles. As can be seen, the nanoparticles are mostly single and spherical in shape, with an average diameter in the range of less than 100 nm. They are also accumulation in some areas.

Fig. 8
figure 8

SEM images of silver nanoparticles in the presence of Cactus fruit extract

3.3 Antibacterial activity

Although the antimicrobial activity of nanoparticles alone or in combination with standard antibiotics against a wide range of microorganisms including gram-negative and gram-positive bacteria and fungi has been demonstrated, there is still insufficient information on the exact mechanism of action. However, extensive research has been performed to elucidate how they work, and so far three distinct mechanisms have been proposed, including (1) cell wall and membrane damage, (2) intracellular penetration and damage, and (3) oxidative stress [65, 67]. Also, according to studies, the biological type of these nanoparticles has a higher antimicrobial activity than its chemical type [37, 57, 68]. Several studies have shown that the antibacterial ability of nanoparticles is affected by their shape, size, surface charge, concentration and colloidal state [34, 69]. In addition, parameters such as the nature of the plant extract, pH and reaction time affect its size, shape and morphology [70]. However, the specific response of each bacterium depends on its metabolic characteristics.

The action mechanism of silver is related to its interaction with thiol group compounds in the respiratory enzymes of bacterial cells. The high affinity of silver for sulfur, phosphorus, protein, enzymes and DNA in the bacterial cell membrane can be the main cause of its antimicrobial properties. Silver nanoparticles react with sulfur-containing proteins inside or outside the cell membrane, which affects cell survival [65, 67, 71, 72].

Antimicrobial properties of synthesized silver nanoparticles and Cactus fruit extract against clinically pathogenic microorganisms (E. coli, S. aureus, S. mutans, Klebsiella, S. mitis, Pseudomonas, E. faecalis and S. epidermidis) by microbroth Dilution method through the determination of MIC and MBC is shown in Table 1. According to the results, the lowest MIC and MBC values which occurred for Streptococcus mitis was 2.34 µg/mL. In other bacteria, growth inhibition was less and also the same. In general, silver nanoparticles showed a significant antimicrobial effect on the tested samples, so that they prevented the growth of microorganisms with very low concentrations. The antibacterial effect of the extract itself was also measured and the results showed that this extract has no antibacterial effect at the concentrations measured. It can also be stated that the antimicrobial activity of nanoparticles against the mentioned gram-positive bacteria is higher compared to the gram-negative type. Similar results have been reported in research by Joanna [73] and Azarbani [65]. In another study, Madakka et al. recorded higher antimicrobial activity of silver nanoparticles against mycogenic S. aureus than E. coli [74], While some researchers have reported the inverse results with the present study.

Table 1 Results of MIC and MBC of bacteria for silver nanoparticles synthesized from Prickly Pear extract

3.4 Antioxidant activity

The antioxidant activity of the samples was measured using the adsorb ability of 2, 2-Diphenyl-1-picrylhydrazyl (DPPH) radicals. The potency of silver nanoparticles and Cactus fruit extract with different concentrations in inhibiting DPPH free radicals is shown in Table 2. The results showed that all samples had a high ability to inhibit free radicals, and silver nanoparticles and extracts at a concentration of 5 mg/mL trapped 51.8 and 33.1 percentage of the available free radicals, respectively. It can be stated that with decreasing concentration, the antioxidant power is also degraded and silver nanoparticles have a higher antioxidant effect than the extract alone. This antioxidant property can be related to the effect of various compounds, including the synergistic effect of betalaine and flavonoids in the composition of Cactus fruit [44]. The study of antioxidant properties using Artemisia annua and Sidaacuta leaves is consistent with the present study. Accordingly, the antioxidant properties of the samples depend on their concentration and the antioxidant activity improves with increasing concentration. Also, silver nanoparticles showed excellent antioxidant activity compared to the standard antioxidant ascorbic acid [55].

Table 2 Results of antioxidant function for silver nanoparticles synthesized and Prickly Pear extract

4 Conclusion

The results of this study showed that Cactus fruit extract has a high potential in the production of silver nanoparticles. The synthesis of nanoparticles in the present method is cost-effective and the process is completed in a very short time. SEM, UV–Vis, EDAX and XRD techniques were used to ensure the synthesis of silver nanoparticles, which confirms its successful biosynthesis. According to the results, silver nanoparticles acted as an inhibitor of DPPH radicals and showed desired antioxidant properties. Also, high antimicrobial activity of biosynthesized nanoparticles from Cactus fruit extract was proven. In general, the results indicated the appropriate antibacterial and antioxidant activity of the biosynthesized nanoparticles.