-
Notifications
You must be signed in to change notification settings - Fork 130
Suggest gas prices from ethgasstation.info #2
Comments
Actually, I'm pretty sure you could just make the default price change according to ethgasstation.info. That'd be a nice addition! |
@mariohm1311 For sure, default should be adjusted automatically, but I wonder if we should give users quick access to ethgasstation's "SafeLow" and "Fast" prices, too. |
Definitely, include those options too with a small explanation / median
time for each level.
On Jan 8, 2018 11:34 PM, "Arseniy Ivanov" <[email protected]> wrote:
@mariohm1311 <https://github.com/mariohm1311> For sure, default should be
adjusted automatically, but I wonder if we should also give users quick
access to ethgasstation's "SafeLow" and "Fast" prices, too.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/forkdelta/forkdelta.github.io/issues/2#issuecomment-356118403>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMls3_S0d_hjh6P5RJRXb1JY4bVUG6kdks5tIpfvgaJpZM4RU_-A>
.
|
Please correct me if i am wrong, but the gas prices needs to be higher than the ethergas station price as the transactions are going to a contract witch require more gas. |
@wordsandstuff Do you have a source for that information? To clarify: "gas" is a measure of computation required to perform a transaction,. It is true that contracts require more "gas" because they require more computational steps than a regular fund transfer; however, a transaction requires the same amount of "gas" at any time. The sender can only set the maximum amount of computation they allow a transaction to take, "gas limit". Contracts typically require gas limit of 250,000. You buy units of computation from miners at a price. That price is referred to as "gas price". This price can fluctuate a bit depending on network-wide demand for computation. This is what we're seeking to adjust dynamically. Now: that is the theory of it. ethgasstation.info has a small note saying that gas prices may be different for addresses with a large number of pending transactions. @wordsandstuff, if you have any info on that, that'd be most welcome. |
NB: MetaMask is experimenting with UI for letting the user set gas prices intuitively, too! MetaMask/metamask-extension#3037 |
Yup, you got it right. What you need to adjust on a per-transaction basis
is the gas limit, since you can already pull the gas price from
EthGasStation.
The quick workaround which has been commented is just leaving the gas limit
on 250,000 (the maximum), and have the network return the unused amount. I
would prefer it to adjust on a request basis instead, since if you are
making several transactions you could be incurring on 3-4 times the amount
of has you need, which might be more than the available ETH and therefore
you wouldn't be able to pay (even if most of that gas will not be used).
I'm not sure how straightforward it'd be to implement it, but Metamask
automatically sets up the gas limit for you, so I guess it isn't that
complicated.
…On Jan 19, 2018 00:23, "Arseniy Ivanov" ***@***.***> wrote:
@wordsandstuff <https://github.com/wordsandstuff> Do you have a source
for that information?
To clarify: "gas" is a measure of computation required to perform a
transaction,. It is true that contracts require more "gas" because they
require more computational steps than a regular fund transfer; however, a
transaction requires the same amount of "gas" at any time. The sender can
only set the maximum amount of computation they allow a transaction to
take, "gas limit". Contracts typically require gas limit of 250,000.
You buy units of computation from miners at a price. That price is
referred to as "gas price". This price can fluctuate a bit depending on
network-wide demand for computation. This is what we're seeking to adjust
dynamically.
Now: that is the theory of it. ethgasstation.info has a small note saying
that gas prices may be different for addresses with a large number of
pending transactions. @wordsandstuff <https://github.com/wordsandstuff>,
if you have any info on that, that'd be most welcome.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/forkdelta/forkdelta.github.io/issues/2#issuecomment-358815692>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMls32bBFZhb23pzpfOvpfkircZEbeE0ks5tL9JggaJpZM4RU_-A>
.
|
You also typically cannot send a transaction until the previous one is mined, so multiple transactions shouldn't make a difference. |
I'm pretty sure I've sent transactions back to back by hoping they would be
verified in the right order and setting the nonce manually. I'm not quite
sure though.
…On Jan 19, 2018 01:13, "Arseniy Ivanov" ***@***.***> wrote:
and have the network return the unused amount
That already happens. The transaction fee taken from your account is the
lesser of (gas limit * gas price) and (gas usage * gas price).
You also typically cannot send a transaction until the previous one is
mined, so multiple transactions shouldn't make a difference.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/forkdelta/forkdelta.github.io/issues/2#issuecomment-358825196>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMls374LVu2LFKDbjSGoYZdeHhxAJIX2ks5tL94WgaJpZM4RU_-A>
.
|
What about making the default gas price equal to ethgasstation price plus one? Or would that just be overkill? |
That's what I usually do. Most of the times, adding one to the median price
nets a sizeable improvement (since the median price is used by many
services).
…On Jan 19, 2018 21:44, "mhyytine" ***@***.***> wrote:
What about making the default gas price equal to ethgasstation price plus
one? Or would that just be overkill?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/forkdelta/forkdelta.github.io/issues/2#issuecomment-359083987>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMls30dzGEw3UUDnzTA4BtH5T5fZUBGDks5tMP7LgaJpZM4RU_-A>
.
|
a simpler api for gas price: https://gasprice.poa.network/ i'm the author, see https://github.com/banteg/gasprice |
The interface should suggest an optimal gas price based on information from https://ethgasstation.info/.
The text was updated successfully, but these errors were encountered: