A smart contract is a computer program that can automatically execute the terms of an agreement. The blockchain stores smart contracts. They run exactly as programmed without any possibility of downtime, censorship, fraud, or third-party interference.