Every municipality shall have power to purchase the assignment of tax sale certificates as provided by this section. Whenever any county has bid in at tax sale any lot within the limits of any municipality, the governing body thereof may authorize by resolution the treasurer to demand of the county treasurer an assignment of such certificate of tax sale. Thereupon the county treasurer shall make out and deliver to such municipality an assignment of such certificate upon payment to him of the amount of all the original taxes against such lot, after deducting the amount of the tax belonging to such municipality exclusive of any penalties, interest, or costs.
SDCL 9-27-9