[NH2:1][C:2]1[C:3]([C:8]([O:10]C)=O)=[N:4][CH:5]=[CH:6][N:7]=1.[NH3:12]>CO>[NH2:1][C:2]1[C:3]([C:8]([NH2:12])=[O:10])=[N:4][CH:5]=[CH:6][N:7]=1A suspension of methyl 3-aminopyrazine-2-carboxylate (5 g, 32.6 mmol) and 150 mL of dry methanol saturated with anhydrous ammonia were heated in an autoclave at 110-115° C. for 24 h. Concentration and filtration afforded 3-aminopyrazine-2-carboxamide (4.4 g, 97.7% yield) as a yellow solid.