As a basis of a claim of $400 damages, caused by the negligence of defendant’s officers in opening a fence, *165whereby plaintiff’s land was exposed to trespassing animals, in violation, of an express agreement, it is in the complaint alleged “that on the 10th day of July, 1895, the plaintiff sold and by deed conveyed to Meade county a strip of land sixty six (66) feet wide through said land, for a public highway, said land being then and there inclosed together with a good and sufficient fence/ and, as a part of the consideration for the deed to such strip of land for such public highway, the said county, by its county commissioners, duly and legally qualified and acting,' promised and agreed, at the expense of said county, to build, construct and maintain a good and substantial fence along both sides of said highway, and such agreement was in writing, and contained a specific provision in words and figures, as follows, to wit: “The party of the second part agrees to build and maintain a lawful fence on the limits of said right of way, using the fence, wire, and posts conveyed by first to second, party in construction of said fence.’ ” Upon the theory that the act of purchasing this land for the purposes of a public highway, and the entering into a contract, as part consideration therefor, to build and maintain a fence along its limits, is ultra vires, the defendant interposed a general demurrer, which was overruled, and the point is here presented for review. In this state, and in fact generally, the public is authorized to acquire for the purposes of a road no more than an easement, while the owner of the fee remains the owner of the land, subject to such incumbrance. Const., Art. 6, § 13; Comp. Laws, § 2783. Nothing in jurisprudence seems more firmly fixed than the doctrine charging persons contracting with public officers with notice of their legitimate powers, as defined and limited by law, and by which the municipality assumed to be represented is absolved from all *166contractual liability wben the procedure specially prescribed by the legislature has not been substantially pursued. Treadway v. Schnauber, 1 Dak. 227, 46 N. W. 464; 1 Dill. Mun. Corp. §§ 89, 447. So, in the matter of establishing a highway, the board of county commissioners being but a creature of the statute, deriving therefrom all the authority and power it possesses, the steps indicated must be taken, or nothing can be accomplished, and the county may set up the plea of ultra vires. Mossman v. Forrest, 27 Ind. 233; Burns v. Annas, 60 Me. 288; 7 Am. & Eng. Enc. Law (2d Ed.) 999; Reese, Ultra Vires, par. 194; Hodges v. City of Buffalo, 2 Denio, 110; Oliphant v. Commissioners. 18 Kan. 386; Elliott, Roads & S., Chap. 14. With the exception made by Sections 1219 and 1220 of the Compiled Laws, nowise applicable to this case, public necessity, public notice, and a petition signed by a specified number of free holders, as jurisdictional matters, are conditions precedent to the exercise of any authority on the part of county commissioners with reference to the acquisition of an easement in land for highway purposes, not on section or quarter-section lines, which, if paid for, must be in accordance with the findings of viewers at the conclusion of certain condemnation proceedings provided for,by statute. In this instance the board had no power to purchase the land or pay any consideration therefor, except in the way of damages legally awarded. Nor can the perpetual burden of building and maintaining a fence, as a part consideration for the deed, be inflicted upon the county, together with damages caused by trespassing animals, resulting from the unauthorized act of its officers Cooley, Torts, 621. Our statute suggests the requisites of the petition and notice necessary to justify the appointment of viewers, whose duties *167are specially defined together with the acts to be performed by the county clerk and sheriff. These viewers must report their proceedings at the ensuing session of the board, and if no objections be made to the proposed road, and no owner of land over which it passes feels aggrieved, the only power given to the board is to order such road to be opened and kept in repair. In case of remontrances, reviewers, possessing certain qualifications, must be appointed to hear the parties at a time and place designated, and determine the amount of compensation, if any, in the way of damages, they are entitled to receive. Then, if the road is deemed to be of sufficient importance to the public, the board may order such amount to be paid by the county; but under no circumstances has it power to agree upon a consideration to be paid for the right to pass and repass over the land of another in accordance with the statutory scheme for the establishment of public highways. If the course here pursued were to receive judicial sanction, such boards might, without any public necessity therefor, purchase, regardless of price, and at pleasure, realty for highway purposes, in violation of the most cogent considerations of public policy. The constitution, rightfully interpreted, requires that the question of compensation shall be determined by an impartial tribunal; and when the legislature in the performance of its duty, has provided such a tribunal, and specified the exact number and quali fication of its members, its authority is exclusive, and the statutory method of procedure must be substantially pursued. As none of the essential conditions precedent were performed or alleged, and respondent’s claim was based upon a contract that appellant had no power to make, facts sufficient to constitute a cause of action were not stated, and the demurrer should have *168been sustained. The judgment appealed irom is reversed, and the cause remanded, with the direction that the action be dismissed.