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

danfinlay picture danfinlay  路  43Comments

iwooden picture iwooden  路  66Comments

danfinlay picture danfinlay  路  98Comments

bwheeler96 picture bwheeler96  路  65Comments

marcusmolchany picture marcusmolchany  路  39Comments