Discussion on the use of smart contracts, which are self-executing contracts with the terms directly written into code, and the associated legal challenges. The article explores the definition of smart contracts, their execution, potential applications, and the risks involved. It also provides strategies to mitigate these risks and outlines the current legal landscape and future prospects for smart contracts in the Russian legal system.