[Ethereum] Running out of gas when sending ETH from MetaMask to Poloniex
ethermetamaskout-of-gas
I tried making a eth transaction to poloniex. However, I keep getting the error that I ran out of gas. How can I avoid this? Do I have to keep increasing the GWEI? Until what number?
Here a screenshot from etherscan:
Best Answer
I found this whole "how much gas do I need?" issue very annoying as well.
I think I figured it out, and the amount is different depending on whether you are sending ether or sending tokens...
Sending Ether to Another Address:
It costs maximum 0.001 ether for gas fee when sending ether to another address, so always subtract 0.001 ether from the ether amount you are trying to send to ensure that you have enough ether for gas fee! It may not be exactly 0.001 ether that is eaten up in gas fee, but if you use 0.001 as a standard, you will find that if you are left over with any ether still in the sender address that it should be a very very small amount.
Sending Tokens to Another Address:
It costs 0.01 ether to send ERC-20 tokens. So when sending tokens, make sure that you have at least 0.01 ether lying around to pay your gas fee!
If your transaction runs out of gas it will be marked as CANCELLED and the ether will never leave your account. You can try checking for the transaction on a web based block viewer like http://www.etherscan.io.
It also sounds like the hardware wallet implementation could use a bit of an update to detect issues like that and update more quickly.
As you have correctly mentioned this an out of gas error. What happens in this situation is, it returns with failure and rolls back to the state it was before sending the transaction except that you have to pay the gas cost to the miner for executing it.
When I inspected your account the balance is 213.119202218 Ether
To check the correctness of the balance it's needed to add all the INs and deduct succesfully completed OUTs(except the failed one) and deduct all the Tx costs of OUTs as below (assuming no internal transactions happened),
------------------------------------------------------------------------------------------
| IN Txs | OUT Txs (Except fails) | Fees for OUT Txs | Balance |
------------------------------------------------------------------------------------------
| 15.42115568 + 100 + 100 | - 2.3 |-(0.001512462+0.000441)|213.119202218|
------------------------------------------------------------------------------------------
which is exactly your account balance. So your ETH balance in wallet is correct and you have the 2ETH remaining.
I expect to see my 2 ETH goes back to my wallet minus the gas fee
If what you meant by this is to see a reverse transaction kind of thing to happen and a see a IN transaction again, that's not the case. There's no need of such thing because actually an amount of 2 ETH was not sent and it's in your wallet already.
Best Answer
I found this whole "how much gas do I need?" issue very annoying as well.
I think I figured it out, and the amount is different depending on whether you are sending ether or sending tokens...
Sending Ether to Another Address: It costs maximum 0.001 ether for gas fee when sending ether to another address, so always subtract 0.001 ether from the ether amount you are trying to send to ensure that you have enough ether for gas fee! It may not be exactly 0.001 ether that is eaten up in gas fee, but if you use 0.001 as a standard, you will find that if you are left over with any ether still in the sender address that it should be a very very small amount.
Sending Tokens to Another Address: It costs 0.01 ether to send ERC-20 tokens. So when sending tokens, make sure that you have at least 0.01 ether lying around to pay your gas fee!
Hope this helps. It seems to work for me :)
Regards, Homer Simpson