[NH2:1][C:2]1[C:6]([C:7]#[N:8])=[C:5]([NH2:9])[NH:4][N:3]=1.[CH3:10]OS(OC)(=O)=O>[OH-].[Na+]>[NH2:1][C:2]1[C:6]([C:7]#[N:8])=[C:5]([NH2:9])[N:4]([CH3:10])[N:3]=13,5-Diamino-4-cyanopyrazole (6.1 g) was dissolved in 1 M sodium hydroxide solution (50 ml), and dimethylsulphate (6.2 g) was added. The mixture was heated at reflux for 21/2 hours and then evaporated to dryness. The residue was extracted with 2-methoxyethanol, and the extracts were evaporated. The residue was triturated with a small amount of water to give 3,5-diamino-4-cyano-1-methylpyrazole (1.4 g), m.p. 194°-196° C.