Peanuts have magnesium and melatonin both crucial to sleep. They, also, have potassium, vitamin E, and calcium which may help sleep as well. Sources