Hydrazoic acid was originally prepared by the reaction of aqueous hydrazine with nitrous acid. Other oxidizing agents, such as hydrogen peroxide, nitrosyl chloride, trichloramine or nitric acid, can also be used. In its properties hydrazoic acid shows some analogy to the halogen acids, since it forms poorly soluble (in water) lead, silver and mercury(I) salts. The metallic salts all crystallize in the anhydrous form and decompose on heating, leaving a residue of the pure metal. It is a weak acid (p"K" = 4.75.) Its heavy metal salts are explosive and readily interact with the alkyl iodides. Azides of heavier alkali metals (excluding
Hydrazoic acid lithium) or alkaline earth metals are not explosive, but decompose in a more controlled way upon heating, releasing spectroscopically-pure gas. Solutions of hydrazoic acid dissolve many metals (e.g. zinc, iron) with liberation of hydrogen and formation of salts, which are called azides (formerly also called azoimides or hydrazoates). Dissolution in the strongest acids produces explosive salts containing the ion, for example: The ion is isoelectronic to diazomethane. The decomposition of hydrazoic acid, triggered by shock, friction, spark, etc. goes as follows: Hydrazoic acid is volatile and highly toxic. It has a pungent smell and its vapor can cause violent headaches.