⛽ Did a transaction fail and still incur a fee?

On Ethereum, fees are paid in $ETH , and gas measures the work required to execute an operation.

If a transaction is included in a block and fails during execution, its changes are reverted, but the work already done still has a cost. That’s why it can consume gas even if it doesn’t achieve what you intended.

Keep in mind the difference: if it’s rejected during validation, before being included in a block, it doesn’t consume gas.

The gas limit is the maximum amount of work allowed; it is not the fee price.

What did you find more confusing: gas, the limit, or the fee?

Source: Binance Academy — Límite de gas
#Ethereum #blockchain #Criptomonedas

The author may receive rewards from Binance.