My transaction fails with "Out of Gas" Error (ETH, ERC20)?

Modified on Wed, 14 Apr 2021 at 08:02 AM

A failed ETH/ERC20 transaction can be viewed on blockchain explorer (see: Why was my transaction rejected?).


Out of Gas example:



This means that your ETH/ERC20 transaction ran out of the assigned Gas Limit when executing a Smart contract operation on the Ethereum Virtual Machine (EVM) (Usually "Send" for the user). This most commonly happens with ERC20 tokens as they consume much more gas than plain ETH.


In such cases use higher GAS LIMIT to allow more gas to be spent. The default limit for ERC20 token transactions in the BC Vault application is set to 150000, set it to 200000 or even higher if you encounter "Out of gas".


There is no way to predict the actual gas usage as it fluctuates wildly and is token/smart contract function dependant!


Note: This is just the "upper cap" you allow to be used (highest possible cost) to protect you against erroneous functions that could result in huge costs. The spent gas will not be returned to you if the transaction fails with "Out of gas"! This is the nature of ETH blockchain and has nothing to do with crypto wallets at all (see: What are Fees?).


See also: What is Gas Price and Gas Limit (ETH, ERC20)?



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article