4-dimethylallyltryptophan N-methyltransferase (, fgaMT (gene), easF (gene)) is an enzyme with systematic name S-adenosyl-L-methionine:4-(3-methylbut-2-enyl)-L-tryptophan N-methyltransferase. This enzyme catalyses the following chemical reaction
The enzyme catalyses a step in the pathway leading to biosynthesis of ergot alkaloids in certain fungi.