What Is a ‘Smart Contract’ and How Does It Relate to Gas Consumption?
A Smart Contract is a self-executing contract with the terms of the agreement directly written into code. They run on a blockchain like Ethereum.
Every function call and state change within a Smart Contract requires computational resources, which are measured and paid for in Gas. More complex contracts or those that perform more calculations will consume a higher amount of Gas.