Metamask-extension: Clarification on how to capture the "speed up" transaction txhash

Created on 27 Sep 2019  路  2Comments  路  Source: MetaMask/metamask-extension

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?

T01-enhancement question

Most helpful comment

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

All 2 comments

See also the related Web3 issue: https://github.com/ethereum/web3.js/issues/3585.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

1blockologist picture 1blockologist  路  3Comments

estebanmino picture estebanmino  路  3Comments

aecc picture aecc  路  3Comments

whyrusleeping picture whyrusleeping  路  3Comments

BassBauman picture BassBauman  路  3Comments