Copper is more active than silver, and in a solution of silver nitrate, it is instantly covered with a loose precipitate of metallic silver. For a successful experiment, the surface of the copper must be absolutely clean, and one way to achieve this is to withstand the copper wire in nitric acid.
https://chemiday.com/en/reaction/3-1-...