Bitcoin Forum
May 25, 2024, 10:59:50 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: « 1 2 3 [4]  All
  Print  
Author Topic: Carrot on a [ETH]STICK, the ultimate ponzi game - Ranking - x1.2 - 5ETH max  (Read 2658 times)
Katatsuki (OP)
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile WWW
April 14, 2016, 06:02:29 PM
Last edit: April 14, 2016, 06:36:33 PM by Katatsuki
 #61

It's always best to use plenty of gas, I believe it only uses the gas necessary, so it's not like you lose money.

Thanks for the advice. Say, how can I see the required amount of gas needed to execute the contract (dapp)? Just asking, because I wouldn't want to send more Gas than the amount required.  Smiley
The mist wallet makes an estimate, in geth I don't think it's possible. You don't need to worry about that, though. If you send 500k and the contract only needs 300k it refunds the extra amount.

Another thing to keep in mind is that if the transfer fails you'll lose all the gas used. If you're sending money to the contract I think it can only fail because of the lack of gas, or if the block gets discarded by the miner, but if you try to execute a contract function with the wrong value or without the right permission it will also fail, so in those cases it's best to use less gas (they typically don't require much gas anyway). The mist wallet protects you in some of those cases too, not letting you execute the function.

I'm gonna lock this thread and make a new one in the right section, since I can't just delete it... I have no idea why it got moved here in the first place.

Pages: « 1 2 3 [4]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!