Skip to main content

Why Is the Consumed Gas Not Refunded upon Transaction Failure?

The consumed gas is not refunded because the computational work was still performed by the network's nodes and the validator, even though the transaction ultimately failed. The validator must be compensated for the resources (CPU, memory) used to execute the failing operation up to the point of the 'out-of-gas' error.

What Happens to a Transaction on Ethereum If It Runs out of Gas before Completion?
How Does the UTXO Set Size Impact the Memory Requirements of a Full Node?
What Is the Potential Tracking Error Risk in a Bitcoin Futures ETF?
What Is a ‘Gas Fee’ in Blockchain Transactions?