[CH3:1][N:2]([CH2:4][C:5]1[C:13]2[C:8](=[CH:9][CH:10]=[CH:11][CH:12]=2)[NH:7][N:6]=1)[CH3:3].[CH3:14][I:15]>C(OCC)(=O)C>[I-:15].[NH:7]1[C:8]2[C:13](=[CH:12][CH:11]=[CH:10][CH:9]=2)[C:5]([CH2:4][N+:2]([CH3:14])([CH3:1])[CH3:3])=[N:6]13-Dimethylaminomethyl-1H-indazole (25.6 g, 146 mmol) obtained in Step 2 was dissolved in ethyl acetate (350 mL), and the solution was added with methyl iodide (33.3 mL, 535 mmol), followed by stirring at room temperature overnight. The resulting precipitates were collected by filtration to obtain (1H-indazol-3-ylmethyl)trimethylammonium iodide (45.0 g, 97%).