Before issuing the warrant, the clerk must require a written undertaking on the part of the plaintiff with sufficient surety to the effect that if the defendant recovers judgment the plaintiff will pay all costs that may be awarded to the defendant, and all damages which the defendant may sustain by reason of any seizure under the warrant, not exceeding the sum named in the undertaking, which must be at least the amount claimed in the complaint and in no case less than one hundred dollars.
N.D.C.C. § 32-20-04