If a county seat has been located at any municipality and the county has no courthouse, the municipality may borrow money on its credit to assist the county in building a courthouse and to issue bonds therefor. All bonds shall be authorized, issued, and sold as provided in chapter 6-8B.
The bonds or proceeds thereof shall be used in constructing or aiding in the construction of a courthouse in the municipality on land owned by the county in which the same is located, and in consideration of the aid the municipality may contract with the county to use the courthouse for municipal purposes.
SDCL 9-26-13