Such application shall be accompanied by an undertaking in the sum of at least one hundred dollars, to be approved by such justice and filed in the office of the clerk of the county where the notice of lien is filed, with at least one surety, who shall be a resident and freeholder within the state, to the effect that if it is finally adjudged that the applicant was not entitled to the warrant, he will pay all costs which may be awarded against him, not exceeding the amount specified in the undertaking, and any damages sustained by reason of the seizure of the vessel under such warrant, not to exceed fifty dollars.
N.Y. Lien Law § 87