John C. Frémont
Hamlin was commissioned as a captain in the Union Army in April 1862, serving as an aide-de-camp to Maj. Gen. John C. Frémont.