What is a formal writing which contains the agreement of parties, with the terms and conditions, and which serves as a proof of the obligation called?

contract — A formal writing which contains the agreement of parties, with the terms and conditions, and which serves as a proof of the obligation. (Webster's 1913.)

Sources