S.C. Code Ann. § 22-5-530
All persons charged and to be tried before any magistrate for any violation of law shall be entitled to deposit with the magistrate, in lieu of entering into recognizance, a sum of money not to exceed the maximum fine in the case for which such person is to be tried.