Silver nitrate is an inorganic compound with chemical formula AgNO3. 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.