Refunding Gas Fees
Gas fees on EVM chains cover the computational costs of processing transactions. , these fees are consumed whether the transaction succeeds or fails.
Generally speaking, Fees are used in two stages:
- The first stage is to include the transaction in a block.
- The second stage involves using what is left to be consumed by the EVM steps during Smart Contract executions. This explains why some transactions are included in a block even though they failed to execute the Smart Contract, or ran out of gas while doing so - execution is aborted.
"Failed" transaction example:
Why Aren't Gas Fees Refunded?
- Compensation: Miners/validators are compensated for the computational resources used, even if the transaction fails.
- Spam Prevention: Non-refundable fees prevent network congestion and abuse.
- Incentives: This system encourages users to carefully construct transactions.
Mitigating Gas Fee Losses
- Gas Estimation: Use tools to allocate the right amount of gas.
- Verify Conditions: Ensure nonce and contract conditions are correct.
- Network Awareness: Adjust gas prices based on network congestion.
Good to Know
- Gas fees are the amount of native coins paid to the miners, so they include a transaction in a block to be accepted by the blockchain.
- Exceptionally, the gas fees may not be consumed at all if a transaction is rejected by a blockchain node(s). This may happen if the fee is below the
BaseFee
, if a transaction does not pass validation or it is dropped from the Mempool. - Transaction broadcast attempts may be accepted or rejected by the blockchain itself.
- Tatum does not charge crypto assets to use our endpoints. Costs associated with using the Tatum infrastructure derive from the credits available on the user account.
Due to the nature of the blockchain network, Gas Fees are not refunded. Tatum has no say.
Updated 3 months ago