Silver nitrate is an inorganic compound with chemical formula AgNO
3. This compound is a versatile precursor to many other silver compounds, such as those used in photography. It is far less sensitive to light than the halides. It was once called lunar caustic because silver was called luna by the ancient alchemists, who believed that silver was associated with the moon