The undertaking must be transmitted by the magistrate to the next district court of the county.
R.L.1910, § 5568.