I developing Dapp using Metamask there is a functionality a Speed Up transaction is an attempt to overwrite a currently pending transaction with a new transaction. in this case scenario, I am unable to get a new transaction hash at the time of executing the contract.
So there is any callback function(or any other way to get new transaction hash on speed up from Metamask ) on speed up I can replace older transactions hash with new transaction hash into my Dapp.