'Is Transaction fees refund when deploy smart contract fail

enter image description here

I deployed a smart contract using hardhat to Ethereum mainnet, so the transaction fail, and my question is Transaction fee will be refunded to my wallet or not?

Thanks.



Solution 1:[1]

The Ethereum network does not refund fees for failed transactions because miners had to process the transaction in order to determine it failed. Unfortunately, there is no way to refund those fees.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nerdy19