Palatine of Hungary
He served as clerk and secretary of Prince Pál Esterházy de Galántha, the Palatine of Hungary. Hunyady was appointed "personalis" (the representative of the King's person in the jurisdiction) in 1723 but he died before taking the office.