The defendant may give bail by causing a written undertaking to be executed by two or more sufficient sureties, stating their places of residence and occupations, to the effect that they are bound in the amount mentioned in the order of arrest, that the defendant must at all times be amenable to the process of the court during the pendency of the action and to the orders that may be issued to enforce the judgment in the action or that they will pay to the plaintiff the amount of any judgment that may be recovered in the action.
§ 27-16-402, MCA