The question to be determined is, whether a person, contracting to have a building erected for him, who has, after the work was completed, paid the contractor in full, is still liable to a third person who has furnished materials to the contractor, which have been used by him in the building, though such third person had not, at the time of such payment to the principal contractor, served the notice of his claim on the county clerk, as prescribed by the mechanics’ *691lien law, provided he has served such notice after the payment, but within six months after furnishing the materials. The first section of the act gives the lien in favor of the principal contractor, and also in favor of any one performing labor or furnishing materials to such contractor, on their giving the notice mentioned in the 6th section. The lien is to attach to the building and lot to the extent of the owner’s interest in them ;• but it is declared, that “ such owner shall not be obliged to pay for, or on account of such house, &c., in consideration of all the liens authorized by this act to be created, any greater sum or amount than the price stipulated and agreed to be paid therefor in and by such contract.”
The sixth section requires the parties entitled to liens to serve a notice in writing on the county clerk within six months after the performance of the labor or furnishing the materials, specifying the amount claimed, and describing the building sought to be subjected to the lien, with some other matters. The particulars mentioned in the notice are to be entered by the clerk, in a book, in alphabetical order. The remainder of the act is devoted mainly to the details of bringing on the trial where the lien is contested, and to the entries-to be made upon the claimant obtaining judgment, or upon the lien being discharged. The provision for a public register of the notice which is to create the lien, shows that it was intended that the parties to be affected by such an incumbrance should have reasonable constructive notice that one was claimed. The lien attaches from the time • of the notice, and when it is duly given, the parties affected are bound to acquaint themselves with it at their peril. A person providing materials or labor on credit to a contractor, can secure himself against a payment by the owner to the contractor by giving the notice; for after the notice given, he would not be affected by such payment. The owner would be held to have made it in his own wrong. What the consequence would be if the owner should pay the contractor in advance, and then the latter should perform the work by means of labor and materials procured *692upon credit, it is not necessary now to determine. But we think that where the contractor is to be paid after his work is performed, the owner may, when the job is completed, safely discharge his obligation to the contractor if he finds that no person has given the notice required to create a lien. A contract to pay for a building, when it is completed, is certainly a lawful contract; but if the owner may be exposed to liens created at any time within six months after its completion, he will be compelled to part with his money, or be subjected to an action at a time when he cannot safely pay without subjecting himself to the hazard of being obliged to pay a second time, if it shall subsequently appear that the contractor has incurred debts to others for materials to finish the work. On the other hand, there is no hardship in requiring the party furnishing materials to act promptly in giving his notice, if he is not willing to trust the contractor. If he does this immediately after the debt in his favor is contracted, and it then appears that, by the arrangements between the owner and contractor, there is nothing due to the latter, perhaps the lien might, notwithstanding, be maintained; but upon that point we do not give a definitive opinion. In this case, we think the defendant should be protected in his payment to the contractor, no notice having been filed by the plaintiff, and the work being done and the money being fully due when the defendant paid it. The judgment should be affirmed.
Judgment affirmed.