The rest pain in the foot which are disturbing your sleep should be evaluated completely to rule out the cause behind this.Generally this type of rest pain are there due to -
3.Inflammatory occlusion of arteries as in thrombo angitis obliterans.
4.Spinal canal stenosis due to compression or narrowing of canal from where nerves does exit.
These different causes should be ruled out by having some tests like Dopplar scanning,angiogram,etc.You should consult to your doctor for this.At present you should do following-
1.You should start an anti inflammatory analgesic
drug like advil or motrein or one aspirin tablet per day which will look after also about blockage of arteries.
2.Avoid the stressful condition which may cause ischaemia to arteries.
3.Keep your foot warm .
4.Avoid the diet with high amount of foot.
5.Consult your doctor he may start some drugs like clopidogrel
or trental depending on report of your investigations.
Hope this will be helpful.
If you are satisfied with my answer then please PRESS GREEN ACCEPT.