A method of producing metal alloy nanoparticles comprising forming a cyanosol by reacting a mixture of a chlorometallate complex and a cyanometallate complex, spin-coating the mixture onto a substrate to form a film, and sintering the film to form metal alloy nanoparticles.