You are viewing a single comment's thread from:

RE: Ethereum "Gas" - How it Works

in #ethereum7 years ago

ok.. Your article is super informative, single place to all queries.. I read your article & still lost some eth in failed transaction due to low gas..

https://etherscan.io/tx/0xab645b8a38a9c60beb3fd77e61c50aaeaffef11724aa7decf430dcb9b037cbef

Why this transaction failed.. I put 150000 gas, 1.1 gwei & it still ran out of gas where minimum gas was 90000..

Please explain

Sort:  

The EOS Crowdsale contract has an iterative function. That means part of the code can be called many many times, and the exact amount depends from person to person. Unfortunately, there is no good way to estimate how much gas a variable execution function will consume unless you execute it virtually off-chain to see.

You lost ~$0.26, so not big loss. Try again with 500k maybe.

thanks for your input.. i lost more than 0.26.. & second.. how to execute it off the chain

You lost 0.000275 Ether on that transaction. At even $1000 per Ether, which is an overestimate right now, that's $0.275. Even a $10,000 Ether would only bring your loss up to a couple dollars - it's almost nothing.

You started with a 210k gas limit that failed, so you moved up to 900k. Seems reasonable, but then that also fails and you decide for whatever reason to try it again with the same insufficient gas limit. Not only that, you also try with even less at 250k...

Finally, you move up to 1000k, which still fails. A lot of the (very little) money you're wasting here is completely unnecessary and more due to user failure than the problem of figuring out a proper gas limit.

To execute it off-chain, you'd need to know how to run a private testnet and then copy the mainnet state over. I think you're better off just asking the EOS community for advice, but if you want to go this route then look into how public testnets have been created.

thanks for looking into it.. all my spare eth got burned in these failed transaction.. just a few cents left now.

I will seek help from eos community. thanks for your valuable input.

Hello tomshwom. Would you happen to be familiar with @schmux here on steemit? It's an account that only follows one person: you.

I am asking because I sent some steem to @schmux by mistake. I wanted to send the steem to my friend who has the account @schmux99, and I did a mistake by entering the wrong username. I already sent a message to @schmux but he doesn't seem to be active on steemit so I worry he will never see it.

We really need your help so if you know @schmux don't hesitate to contact me on my email ****************@gmail.com so that we can retrieve the funds.

Thank you!

Don't know anything about them, sorry.

Okay, thanks.

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63022.98
ETH 2580.28
USDT 1.00
SBD 2.72