This book provides an in-depth analysis of the main debates surrounding blockchain-based smart contracts and contract law. After having provided a detailed description of the technology, it considers existing rules concerning technology and contracts, from vending machines to computable contracts, and verifies its applicability to blockchain-based smart contracts. Namely, it focuses on the implications of blockchain-based smart contracts on contract formation, contract performance, and applicable law and jurisdiction.