23A-40-6. Arrest or detention without formal charge--Assignment of counsel--Certification of indigency required. In any criminal investigation or in any criminal action or action for revocation of suspended sentence or probation in the circuit or magistrate court or in a final proceeding to revoke a parole, if it is satisfactorily shown that the defendant or detained person does not have sufficient money, credit, or property to employ counsel and pay for the necessary expenses of his representation, the judge of the circuit court or the magistrate shall, upon the request of the defendant, assign, at any time following arrest or commencement of detention without formal charges, counsel for his representation, who shall appear for and defend the accused upon the charge against him, or take other proper legal action to protect the rights of the person detained without formal charge.
In each case, the indigent person, subject to the penalties for perjury, shall certify in writing or by other record such material factors relating to his ability to pay as the court prescribes.
Source: SDC 1939, §§ 34.1901, 34.3506; SL 1957, ch 182; SDCL, §§ 23-2-1, 23-35-11; SL 1968, ch 147; SL 1969, ch 155; SL 1978, ch 178, § 492; SDCL Supp, § 23A-40-3; SL 1979, ch 159, § 33; SL 1983, ch 190, § 1.