Bitcoin Forum
November 12, 2024, 05:21:14 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to understand, what amount should I put to GAS LIMIT  (Read 237 times)
trahaubab (OP)
Jr. Member
*
Offline Offline

Activity: 154
Merit: 2


View Profile WWW
October 15, 2018, 11:01:30 PM
Last edit: October 15, 2018, 11:12:05 PM by trahaubab
 #1

Such situation, tried to send tokens on exchange, first I set defolt (21000) gas limit - have a mistake "out of gas"
Next, I put 41000 gas limit - "out of gas"

Okay - 51000 gas limit = "out of gas"

Lmao, wtf?  Grin Is it okeay that 0,5$ is not enough for transaction?  Grin
What should I put next?

pigzbe  |  A piggy-wallet™ not a piggy bank  |  powered by Wollo
● ● ●  A tangible digital piggy-wallet for children age 6 and up.
Armagh1234
Jr. Member
*
Offline Offline

Activity: 35
Merit: 1


View Profile WWW
October 15, 2018, 11:31:18 PM
 #2

There is a weird formula to calculate it.
Look at this link:
https://ethereum.stackexchange.com/questions/39401/how-do-you-calculate-gas-limit-for-transaction-with-data-in-ethereum

You can always put it at 100,000 or use myetherwallet and it will tell you how much gas you need when you input your destination address and token
trahaubab (OP)
Jr. Member
*
Offline Offline

Activity: 154
Merit: 2


View Profile WWW
October 15, 2018, 11:57:24 PM
 #3

There is a weird formula to calculate it.
Look at this link:
https://ethereum.stackexchange.com/questions/39401/how-do-you-calculate-gas-limit-for-transaction-with-data-in-ethereum

You can always put it at 100,000 or use myetherwallet and it will tell you how much gas you need when you input your destination address and token

thanks! I do use it, but defolt meaning transaction was failed, thats why I am asking here about gas limit, I used to not change the standart one but it doesn`t work for me now

pigzbe  |  A piggy-wallet™ not a piggy bank  |  powered by Wollo
● ● ●  A tangible digital piggy-wallet for children age 6 and up.
sportgift23
Newbie
*
Offline Offline

Activity: 7
Merit: 1


View Profile
October 16, 2018, 12:53:37 AM
Merited by OgNasty (1)
 #4

Such situation, tried to send tokens on exchange, first I set defolt (21000) gas limit - have a mistake "out of gas"
Next, I put 41000 gas limit - "out of gas"

Okay - 51000 gas limit = "out of gas"

Lmao, wtf?  Grin Is it okeay that 0,5$ is not enough for transaction?  Grin
What should I put next?

You would use
https://etherscan.io/gasTracker
Mkmanik
Hero Member
*****
Offline Offline

Activity: 986
Merit: 516


View Profile
October 16, 2018, 04:00:42 AM
 #5

Such situation, tried to send tokens on exchange, first I set defolt (21000) gas limit - have a mistake "out of gas"
Next, I put 41000 gas limit - "out of gas"

Okay - 51000 gas limit = "out of gas"

Lmao, wtf?  Grin Is it okeay that 0,5$ is not enough for transaction?  Grin
What should I put next?

You would use
https://etherscan.io/gasTracker
Personally, I am using this one https://ethgasstation.info/ to track ether Gas price. but sometimes it does not work, I don't know why it happened!! You can bookmark this site for future purposes.
khoapham89
Copper Member
Jr. Member
*
Offline Offline

Activity: 101
Merit: 2


View Profile
October 16, 2018, 04:38:40 PM
 #6

Set gas limit 200k and 3-5 Gwei and enjoy it. Dont worry about gas limit because if it is not used, it will be refunded.

Davil
Member
**
Offline Offline

Activity: 238
Merit: 14


View Profile
October 16, 2018, 05:32:49 PM
 #7

Set gas limit 200k and 3-5 Gwei and enjoy it. Dont worry about gas limit because if it is not used, it will be refunded.

Indeed, it wasn't this way in the past, but now you get refunded the gas you don't spend, and this is great.

All the calculators listed above are great, but khoapham89 is the only one who has talked about the gwei. If you're not in a hurry to make the transaction fast, you'd try and use low gwei. If it doesn't work, you're always in time to increase it later.
DdmrDdmr
Legendary
*
Offline Offline

Activity: 2492
Merit: 11050


There are lies, damned lies and statistics. MTwain


View Profile WWW
October 16, 2018, 05:40:53 PM
 #8

<..>
21K Gas limit is what a regular ETH transaction needs to move ETH from one address to another. Nevertheless, you are moving a token, so there is likely a smart contract that supports it and therefore, due to the code being longer and more complex, it requires a greater limit that the default 21K shown on MEW. For tokens, it is normally recommendable to set the gas limit around the 90-100k area.

As to the gas price, check on https://ethgasstation.info the current network recommended fees (set it based on the gwei shown there, and the if you want a Fast (<2m), Standard (<5m) or SafeLow Tx (<30m)).
schizopoko
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
October 16, 2018, 06:05:17 PM
 #9

If you switch ETH then the gas limit will be 21000. If you transfer token, gas limit will move a value. You can set higher limit gas prices to avoid running out of gas
crairezx20
Legendary
*
Offline Offline

Activity: 1638
Merit: 1046



View Profile
October 16, 2018, 06:32:14 PM
 #10

Such situation, tried to send tokens on exchange, first I set defolt (21000) gas limit - have a mistake "out of gas"
Next, I put 41000 gas limit - "out of gas"

Okay - 51000 gas limit = "out of gas"

Lmao, wtf?  Grin Is it okeay that 0,5$ is not enough for transaction?  Grin
What should I put next?

You would use
https://etherscan.io/gasTracker
Personally, I am using this one https://ethgasstation.info/ to track ether Gas price. but sometimes it does not work, I don't know why it happened!! You can bookmark this site for future purposes.
Same here, sometimes it does not work but sometimes ok. It seems that the ethgastation is delayed on tracking the exact gas price but still it helps just make sure to use gas price which is higher than normal gas price.

If he is trying to send it to other wallets some provider giving you or recommend you what is the exact gas limit that you should use to be able to confirm the transaction.
I'm using metamask and I always use their default gas limit and I haven't any issue yet so I recommend you to use metamask than using a MEW.
Pages: [1]
  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!