Author

Topic: How do you run out of gas? Eth failed transaction question (Read 253 times)

newbie
Activity: 29
Merit: 0
This guy could have had no experience in transacting his eth before. For a normal transaction to be carried out in ethereum blockchain the total amount of gas will cost around 21000. While creating a smart contract more gas volume will be required. For instance while creating smart contract for handling Omise go costed around 1197000 gas. Indeed a huge volume which means more complex a transaction is, the more gas we need to use up for transacting.

A transaction could fail when Transaction gas volume exceeds the block gas limit. But in this case it was a complex transaction which required huge gas and that 21000 gas was not sufficient for the transaction to complete. He should have used 20gwei as price per gas and should have used very high gas volume which could have made the transaction pass.

You may not end up in such a situation as high gas volume are very rare and if you are doing a normal transaction just use 21000 gas and 20gwei gas price for it to conform. The base theory of ethereum transaction is similar to a taxi ride you are going mate. If you need to travel longer distances use higher fuel how complex the route might be. Our routes are simple mate which require 21000 gas so don't worry.
Hope this answer helps

Thanks so much. This really cleared things up! So basically use Ethgasstation, and also there's a hugedifference between gas price and gas limit... and the guy decided to use the same for both and so it's like he was trying to use a bigger car engine but he didn't use enough gas because he also increasedid gas consumption,
full member
Activity: 490
Merit: 105
It is mistake of user who sent ETH, you put gas price by yourself. I think he confused gas price with gas limit, you can use https://ethgasstation.info/ to determine the optimal gas price an confirmation time of transaction.
sr. member
Activity: 686
Merit: 257
At times when the Ethereum network is congested, the fees is really high. I suggest checking ETH gas price guide and avoid sending ETH when there is hot ICO going on or hot game like crypto kittens.
sr. member
Activity: 851
Merit: 254
Borderless for People, Frictionless for Banks
the gas is to high, or the buyer dont know how to use it. normal gas is 4 gwei, and its standart for all eth transaction
hero member
Activity: 2268
Merit: 507

I saw this on stacks exchange.

It scares me because his TX fees are up 0,65 eth!

How did this happen? https://etherscan.io/tx/0xda8c0b80d8e240a83c8f6b067c4656babeb13e8e0ece4fd4292aa06252f1285c


Can it happen to me?  If a TX doesn't confirm in hours and you don't cancel it, will it just continue to eat up eth as the days go by? Very scary...

this user might get mixed up with gas limit and gas price. Looking at transaction detail, he used 25000 gwei as gas price and 25000 gas limit. this why he ended up with actual cost 0,65 ETH. For reference to gas price, I usually use ethgasstation.
Indeed, That user doesn't even know how to put gas correctly and i think that he/she was putting 25k for gwei limit and that makes all of gas limit gets consumed by the network itself, as far as i know about the fact that the gas limit can't cover all of the gwei must be paid by the sender of the transaction. That results in the gas error and he/she was wasting a lot of money on gas.
legendary
Activity: 1584
Merit: 1280
Heisenberg Design Services
This guy could have had no experience in transacting his eth before. For a normal transaction to be carried out in ethereum blockchain the total amount of gas will cost around 21000. While creating a smart contract more gas volume will be required. For instance while creating smart contract for handling Omise go costed around 1197000 gas. Indeed a huge volume which means more complex a transaction is, the more gas we need to use up for transacting.

A transaction could fail when Transaction gas volume exceeds the block gas limit. But in this case it was a complex transaction which required huge gas and that 21000 gas was not sufficient for the transaction to complete. He should have used 20gwei as price per gas and should have used very high gas volume which could have made the transaction pass.

You may not end up in such a situation as high gas volume are very rare and if you are doing a normal transaction just use 21000 gas and 20gwei gas price for it to conform. The base theory of ethereum transaction is similar to a taxi ride you are going mate. If you need to travel longer distances use higher fuel how complex the route might be. Our routes are simple mate which require 21000 gas so don't worry.
Hope this answer helps
full member
Activity: 1050
Merit: 102
Cryptocurrency addict | Invest at your own risk.
I am so scared, we have to be careful when we want to. I leave comments here because I am noob and increase my knowledge
full member
Activity: 280
Merit: 107

I saw this on stacks exchange.

It scares me because his TX fees are up 0,65 eth!

How did this happen? https://etherscan.io/tx/0xda8c0b80d8e240a83c8f6b067c4656babeb13e8e0ece4fd4292aa06252f1285c


Can it happen to me?  If a TX doesn't confirm in hours and you don't cancel it, will it just continue to eat up eth as the days go by? Very scary...

this user might get mixed up with gas limit and gas price. Looking at transaction detail, he used 25000 gwei as gas price and 25000 gas limit. this why he ended up with actual cost 0,65 ETH. For reference to gas price, I usually use ethgasstation.
hero member
Activity: 1148
Merit: 504
Maybe he got typo error on his gas limit. His gas price is the same with his gas limit, that is why he burnt his gas before the transactions gets accepted in the blockchain.
member
Activity: 616
Merit: 30
Ok thanks... so you're saying you can't lose more gas than you specify? I had a feeling they just multiplied the amount of gas you set with the amount of time that elapses...

I mean, how else are people losing 0.65 eth in transaction fees...


It looks like that guy wanted to buy tokens on ICO and decided to pay a high price for gas to increase the priority of his transaction, wanting to receive his tokens first. But the gas price was too high, 25000 gwei per gas so commission just eat all his transaction. And by the way, he lost only 0.1 Eth, 0.65 Eth - full price of the commission, if there was enough money. Anyway, 25000 gas limit is not enough for a smart contract, more likely 250000, so this transaction had no chance.
mate was right this is not a normal transaction thats why the fee becomes that high..maybe its his choice to allow the transaction take the gas price just to cope up with his demand.so for the OP you dont have to be afraid because this is isolated cases.this is not happening everytime
newbie
Activity: 15
Merit: 0
You should be fine as long as you don't set a low gas fee. Always check ETH Gas Station for the recommended gas price fee when you plan on sending ether.
hero member
Activity: 647
Merit: 500
The Operating System for DAOs
This is quite normal if you don't know how to use and interact SmartContracts on Ethereum.
Just follow the guide from the dev team. Before 1 year, these ethereums doesn't worth that much BTW.
member
Activity: 378
Merit: 12
Ok thanks... so you're saying you can't lose more gas than you specify? I had a feeling they just multiplied the amount of gas you set with the amount of time that elapses...

I mean, how else are people losing 0.65 eth in transaction fees...


It looks like that guy wanted to buy tokens on ICO and decided to pay a high price for gas to increase the priority of his transaction, wanting to receive his tokens first. But the gas price was too high, 25000 gwei per gas so commission just eat all his transaction. And by the way, he lost only 0.1 Eth, 0.65 Eth - full price of the commission, if there was enough money. Anyway, 25000 gas limit is not enough for a smart contract, more likely 250000, so this transaction had no chance.
newbie
Activity: 29
Merit: 0
Ok thanks... so you're saying you can't lose more gas than you specify? I had a feeling they just multiplied the amount of gas you set with the amount of time that elapses...

I mean, how else are people losing 0.65 eth in transaction fees...

member
Activity: 378
Merit: 12
Don`t worry, it is not very hard. Use https://ethgasstation.info/ to see the optimal price per gas before transaction and fee will be like ~1$. Also, you could set the gas limit like 250000 because if gas ends before completing transaction it will be lost. You will not lose unused gas or pay for it, so you can not worry about the high gas limit.
newbie
Activity: 29
Merit: 0
I would like to congratulate the question, i still have the same question to solve and we can observe that it does not yet have a "stop button" in transaction, I've lost a lot of Ether on this issue and it's interesting that one of the developers read this post.


I'm not a dev.

I am just scared of trying to send eth using 1 gas with 2100 gwei limit... Then suddenly they take away 1 eth in fees because the tx took days to complete....

I just want clarity.
member
Activity: 176
Merit: 10
I would like to congratulate the question, i still have the same question to solve and we can observe that it does not yet have a "stop button" in transaction, I've lost a lot of Ether on this issue and it's interesting that one of the developers read this post.
newbie
Activity: 29
Merit: 0
Quote
   
That transaction had a very high gas price specified (0.000025 Ether, 25,000 GWei), while currently transactions are getting confirmed for much lower (0.000000002 Ether, 2 GWei). And the transaction only specified a max of 25,000 gas units, which is pretty low. So, your transaction burned up the maximum amount (25,000 * 0.000025 = 0.625 Ether), and still failed, unfortunately.

I saw this on stacks exchange.

It scares me because his TX fees are up 0,65 eth!

How did this happen? https://etherscan.io/tx/0xda8c0b80d8e240a83c8f6b067c4656babeb13e8e0ece4fd4292aa06252f1285c


Can it happen to me?  If a TX doesn't confirm in hours and you don't cancel it, will it just continue to eat up eth as the days go by? Very scary...
Jump to: