Any person arrested in this state charged with having committed any crime in another state or alleged to have escaped from confinement, or broken the terms of his bail, probation or parole may waive the issuance and service of the warrant provided for in §§ 23-24-8 and 23-24-9 and all other procedure incidental to extradition proceedings, by executing or subscribing in the presence of a judge of any court of record within this state a writing which states that he consents to return to the demanding state; provided, however, that before such waiver shall be executed or subscribed by such person it shall be the duty of such judge to inform such person of his rights to the issuance and service of a warrant of extradition and to obtain a writ of habeas corpus as provided for in § 23-24-12.
SDCL 23-24-24