Gas Consumption Model

The gas consumption model for smart contract execution in RuneVM is designed to ensure efficient use of computational resources. It quantifies the computational effort required to execute a transaction, thereby determining the associated cost.

The total gas consumption for a transaction is given by:

G=i=1n(gici)G=∑ i=1 n ​ (g i ​ ⋅c i ​ )

where GG represents the total gas consumption, gigi are the gas costs, and cici are the computational complexities of each transaction. This model ensures that transactions are priced according to their computational requirements, incentivizing efficient use of resources and avoiding unnecessary computational expenditure.

Last updated