Smart contracts are codes that automatically process business logic on the blockchain, which can effectively reduce the cost of trust in business transactions, help promote the establishment and development of a new generation of business models, and provide important technical guarantees for people to enter the intelligent era. The smart contract of the EcoBall blockchain is fully compatible with Ethereum, and the smart contract code written for Ethereum can be easily transplanted.