The master of the treasury[1] or treasurer[2][3] (German: Königlicher Ober-Schatzmeister[4] or Tarnackmeister, Hungarian: tárnokmester,[4][5] Latin: magister tavarnicorum, magister tavernocorum regalium or summus camerarius,[4][5] Slovak: taverník[2] Croatian: tavernik)[6] was a royal official in the Kingdom of Hungary from the 12th century.
Although treasurers were initially responsible for collecting and administering royal revenues, they adopted more and more judiciary functions and turned into the highest judges of the realm.
From the 14th century, treasurers presided over the court of appeals for a group of the free royal cities, including Buda, Bártfa, Eperjes, Kassa, Nagyszombat and Pressburg (Pozsony) (today Bardejov, Prešov, Košice, Trnava and Bratislava in Slovakia).
By the late 15th century, the associate judges of these courts were representatives of the tavernical towns only (and no additional nobles as was the case earlier).
[citation needed] The function (including the tavernical courts) was abolished de facto in 1848; the treasurer's function, however, continued to exist formally till 1918 as the fourth highest royal dignitary, who was member of the Upper Chamber of the parliament of the Kingdom of Hungary and played a certain role in the coronation of the king.