 In Charleston, they are to maintain public records, books, and papers pertaining to their office, and perform all duties prescribed by state law.As of 2012, the attorney general receives a salary of $95,000 per year.The attorney general gives their written opinions and advice upon questions of law to state officials, heads of state institutions, and prosecuting attorneys.