John was born into a Jewish family in Vienna. The date of his birth is unknown. He was also known as John Hampó. He was first mentioned as a burgher in Buda in 1457 or 1458, showing that he had moved from Vienna to the capital of the Kingdom of Hungary. He converted to Roman Catholicism. Since he regularly delivered goods to the royal court, he was introduced to Matthias Corvinus, King of Hungary. Before long, the king made him knight of the royal court. Emeric Zápolya, who was royal treasurer between 1459 and 1464, tasked John with the administration of the thirtieth in Pozsony County in 1461. John, and two burghers of Buda, Lawrence Bajoni and Stephen Kovács, concluded an agreement and took charge of the administration of the same tax in the whole kingdom in 1464. John Túz and John Ernuszt bought two copper mines at Besztercebánya and a house in the town from Stephen Jung in 1466. Ernuszt inspired Matthias Corvinus's reform of the royal revenues, especially the centralization of their administration and the abolishment of previous tax exemptions. Matthias also decided to mint new, stable pennies on Ernuszt's advice.
Royal official and baron
The king made him the administrator of the Crown's customs in 1467. In the same year, Matthias Corvinus appointed John Ernuszt royal treasurer. He was initially responsible only for the management of the ordinary royal revenues, because Janus Pannonius, Bishop of Pécs, administered all extraordinary income as chief treasurer. From 1468 or 1469, John administered all royal revenues, save for the revenues from royal estates. John persuaded the king to put a new official, the Prefect of the Jews, at the head of the Jewish community in Hungary. The perfects were chosen from among the members of the Mendel family who were allegedly Ernuszt's kinsmen, according to historian Tamás Fedeles. John Ernuszt was made the ispán of Turóc, Körös and Zólyom Counties in 1470. He was one of the first perpetual ispáns, but he lost this title. The king also confiscated his most estates around 1473, because he was accused of fraud. Even so, Matthias Corvinus made John ban of Slavonia on 21 November 1473. He was preoccupied with the administration of the royal treasury even thereafter. He received the domain of Csáktornya around that time. He also seized Đurđevac in Slavonia. The Diet of Hungary assembled in 1474 in the absence of the king who continued his war for the Bohemian Crown. The Estates of the realm passed decrees about the collection and administration of the royal revenues. The new decrees prescribed that taxes were to be spent on the defence against the Ottoman Empire instead of continuing the war for Bohemia. The Diet also authorized the counties to elect officiers to collect the royal taxes, which limited the competence of the royal treasury. At the demand of the Diet, Ernuszt promised that he would execute the new laws. After his return to Hungary, the king made Ernuszt a scapegoat for the decisions adopted at the Diet, but did not dismiss him. Ernuszt died after 3 March 1476. He was buried in a chapel dedicated to the Holy Virgin in Buda.
Family
His wife was called Catherine, but her family is unknown. Their first son, Sigismund, was born around 1445. Matthias Corvinus made him bishop of Pécs in 1473. John's younger son and namesake was born around 1465. He was Ban of Croatia, Dalmatia and Slavonia. John Ernuszt was one of the few commoners making a career during Matthias Corvinus's reign to be able to secure the aristocratic status of his family.