If any collector, county treasurer, or other agent of the commonwealth, shall hereafter, either directly or indirectly, sell, transfer, bargain, purchase or exchange any money or notes of any description, received by him for tolls, taxes or other debts due the commonwealth, said collector, treasurer or other agent shall be deemed to have been guilty of a misdemeanor in office, and upon conviction thereof before any court of competent jurisdiction shall forfeit and pay, for every such offense, the sum of five hundred dollars, the whole amount to go to the benefit of the prosecutor, and shall moreover be removed from office, and be ineligible for reappointment or re-election, and the state treasurer shall immediately notify all the collectors and treasurers aforesaid, by circular, of the passage of these resolutions.
16 P.S. § 9432