Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification on how to capture the "speed up" transaction txhash #7227

Closed
prographo opened this issue Sep 27, 2019 · 3 comments
Closed

Clarification on how to capture the "speed up" transaction txhash #7227

prographo opened this issue Sep 27, 2019 · 3 comments

Comments

@prographo
Copy link

prographo commented Sep 27, 2019

There is a feature in MM that allows the user to supersede a slow transaction with another transaction with a higher gas price. The same nonce is used, therefore nodes drop the original transaction in favour of the transaction with a higher gas price.

This works well. However...

When the user submits a transaction, I am capturing the txhash using the callback -- this works perfectly -- but what about the situation where the user later does a "speed up" on the transaction -- the javascript callback is not called again with the second txhash.

How shall I capture this event?

It's not enough to know the new txhash, I need to know the predecessor it relates to, isn't it?

Is there a way to do it?

@gorgos
Copy link

gorgos commented Jul 25, 2020

See also the related Web3 issue: web3/web3.js#3585.

@GregTheGreek
Copy link

I've created EIP-2831 in attempt to address this (still making edits)

@Gudahtt
Copy link
Member

Gudahtt commented Jan 7, 2021

Great question @prographo, thanks for bringing this up! We're going to try using EIP-2831 for this, which is being tracked in #9174. Please follow that discussion for further updates.

@Gudahtt Gudahtt closed this as completed Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants