Currently, Toxapex cannot be taught egg moves. If you were looking for competitive Toxapex, I would suggest looking at the best moveset questions for Toxapex. He has so many other options with having access to infestation and rest. (Sorry if this info is incorrect, I’m still not completely informed of the differences from gen 8 to gen 7.)