Within five days after a first appearance before a magistrate, the person against whom an indictment has been found and presented may make a written demand to the district judge for a copy of the transcript of the testimony given before the grand jury as it relates to that person and the charges against that person. Upon receipt of such written demand, the judge shall issue an appropriate order. If the judge for any reason determines that a copy of a transcript of the testimony cannot be obtained, the person indicted is entitled, but not otherwise, to a preliminary examination, as provided by the statutes or North Dakota Rules of Criminal Procedure for persons otherwise charged with a crime. Under such conditions, the preliminary examination must be had before a judge of the district court serving the county in which the crime was committed or is triable. Failure to make such demand within the time prescribed constitutes a waiver of the right to the transcript or to a preliminary examination.
N.D.C.C. § 29-10.1-38