Pretreatment with Nicorandil improved cardiac functions, infarction, and inflammation by inhibiting TLR4/MyD88/NF‐κB/NLRP3 signalling pathway thus reduced myocardial pyroptosis in rats with AMI. This evidence concerns the gene NLRP3 and infarction.