N.Y. Transportation Law § 236
1. The commissioner, in the name of the state, may enter into contracts with municipalities, counties or the city of New York to undertake rail preservation projects, or local street or highway projects, and any such municipality, county or the city of New York may enter into a contract with the commissioner. Any such contract may include such provisions as may be agreed upon by the parties thereto, and shall include, in substance, the following provisions: a. an estimate of the reasonable cost of the project as determined by the commissioner; b. an agreement by the commissioner to pay to the municipality, county or the city of New York during the progress of construction or following completion of construction as may be agreed upon by the parties, an amount, not to exceed the total cost of the project or such lesser amount as may have been established pursuant to section two hundred thirty-five; c. an agreement by the municipality, county or city of New York;