What is the substance that dropped into the eyes of newborn babies to reduce eye infections and blindness?

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

In solid silver nitrate, the silver ions are three-coordinated in a trigonal planar arrangement