It contains potassium and nitrate ions . It is often called saltpeter . The name Peru saltpetre or Chile saltpetre ( American Peru saltpeter or Chile saltpeter ) refers not to potassium nitrate but to a similar chemical sodium nitrate .