The execution of Smart Contracts is possible because there are three elements within the Ethereum Blockchain. First, there would be -
The Ethereum Virtual Machine (EVM), which is an interpreter for assembly language, is used to execute arbitrary codes. EVM needs a programming language that is supported by
Solidity is the Ethereum smart contract language. It allows developers to perform computations.
Gas fees - A miner must perform actions that lead to the creation and execution of smart contracts. Gas fees are paid as a reward for this operation. The complexity of smart contracts will affect the amount paid.