Barium chlorate in some sodium contamination, which is undesirable for pyrotechnic purposes, where the strong yellow of sodium can easily overpower the green of barium. Sodium-free barium chlorate can be produced directly through electrolysis: It can also be produced by the reaction of barium carbonate with boiling ammonium chlorate solution: The reaction initially produces barium chlorate and ammonium carbonate; boiling the solution decomposes the ammonium carbonate and drives off the resulting ammonia and carbon dioxide, leaving only barium chlorate in solution. When exposed to heat, barium chlorate alone will decompose to barium chloride and oxygen: Barium chlorate is used to produce chloric
Potassium chlorate are much more expensive. Chlorate propellants must be used only in equipment designed for them; failure to follow this precaution is a common source of accidents. Potassium chlorate, often in combination with silver fulminate, is used in trick noise-makers known as "crackers", "snappers", "pop-its", or "bang-snaps", a popular type of novelty firework. Another application of potassium chlorate is as the oxidizer in a smoke composition such as that used in smoke grenades. Since 2005, a cartridge with potassium chlorate mixed with lactose and rosin is used for generating the white smoke signalling the election of new pope by a papal