What Is “Gas” in the Context of Smart Contract Execution?
Gas is a unit of measurement for the computational effort required to execute operations on a blockchain like Ethereum. It is paid for using the network's native cryptocurrency.
Gas fees compensate the validators or miners for the energy and resources needed to process and verify the transaction or smart contract execution. The gas limit sets the maximum amount a user is willing to pay, preventing contracts from running indefinitely.