Nowadays, Ethereum network transactions have become very expensive. The price of gas is steadily growing and the user has 2 ways. Either pay a high commission or set a small commission and wait for the transaction confirmation for a long time. But what to do when the transaction hung up. It can be drop and replace. And that's how to do it.
Consider drop and replace a stuck transaction in several variants.Dropping and replacing a stuck Ethereum transaction using Metamask:
1. You need to enable custom nonce in Metamask settings. Go to Metamask, select
Settings, then
Advanced. Scroll down and enable the
Customize transaction nonce option.
2. Now we need to find the nonce of our pending transaction. To do this, go to Etherscan directly from Metamask and find your transaction. Scroll down and find nonce.

You need to write down or remember the nonce value. Go back to Metamask.
3. Now you need to replace your transaction. To do this, send the ETH transaction by yourself using the previously obtained nonce value. Make sure that the gas price now quoted is acceptable. To do this, you can use
https://ethgasstation.info/
4. Then confirm your transaction and wait for the replacement. Your 0 ETH transaction should be mined and replaced with your stuck transaction.
Cancelling and Replacing Transaction using MyCrypto:
Replacing a Transaction1. In the
To Address field enter your address:
2. In the
Amount field, enter 0.
3. Then click on
+ Advanced to show the additional settings and in the nonce field enter the transaction number you want to cancel.
4. Now enter the gas price using the recommended values, for example at
https://ethgasstation.info/. You should be able to do something like that:
5. Send the transaction using the
Send Transaction button. Now you can view the status of this transaction on
https://mycrypto.com/tx-status.
Cancelling a Transaction1. In the
To Address field enter the address that was used in the original transaction.
2. In the
Amount field, enter the same value as in the original transaction.
3. Click
+ Advanced and in the additional settings in the nonce field enter the number of the transaction you want to cancel.
4. Now enter the gas price using the recommended values, for example at
https://ethgasstation.info/.
5. If the original transaction was sent to the contract, enter the original data values in the
Data field. After all this, you will see the following:
6. Send the transaction using the
Send Transaction button. Now you can view the status of this transaction on
https://mycrypto.com/tx-status.
Cancelling and Replacing Transaction using MEW:
source: kriptocat.blogspot.com
Canceling a TransactionSo, to cancel a transaction you will need to create and send a new transaction with 0 ETH yourself.
1. To do this, go to one of the block explorers, for example:
Etherscan,
Ethplorer или
EthVM.
2. Paste your transaction hash. If the status is
pending, you can still try to undo it. If it says that o transaction has been
no found, try again after a certain period of time. If it still writes that no transaction has been found after a certain period of time, then your transaction has not passed. If there is a
success status, you will not be able to cancel it anymore.
3. So, if the status is
Pending, write the nonce value and go to the MEW wallet. Go to the wallet where you made the transaction.
4. In the left-side menu, click
Send, then choose
Send offline. (although offline is not mandatory)
5. Send yourself a transaction with 0 ETH, using the previously recorded nonce value and with a reasonable gas price, which you can see for example here:
https://ethgasstation.info/6. Click the
Generate Transaction button, then copy the
Signed transaction, which is a long string that begins with
0x.
7. Close the pop-up window, scroll down and select
Send Offline Helper.
8. Go to
Signed Transaction and paste a line from step 6. Click
Continue.
9. A new transaction hash should now appear. If it does not appear immediately, refresh the page in a couple of minutes.
Replacing a Transaction (Advanced Users Only)Replacing a transaction means generating a XX ETH transaction to someone else’s address with the purpose of doing something (i.e. sending a transaction, revealing an ENS bid, etc.) while simultaneously not having a previous transaction go through. This can be the same transaction as the one that’s pending or a completely different transaction.
1. Repeat the first 4 steps of the
Canceling a Transaction section
2. In the
To Address field enter the address to which you want to send the transaction.
3. In the
Amount field enter the amount you want to send, and in the nonce field enter the same value as the pending transaction.
4. Use the recommended gas prices by taking advantage of, for example
https://ethgasstation.info/5. Click the
Generate Transaction button, then copy the
Signed transaction, which is a long string that begins with
0x.
6. Close the pop-up window, scroll down and select
Send Offline Helper.
7. Go to
Signed Transaction and paste a line from step 6. Click
Continue.
8. A new transaction hash should now appear. If it does not appear immediately, refresh the page in a couple of minutes.
How to Check the Status of a Transaction
1. To do this, go to one of the block explorers, for example:
Etherscan,
Ethplorer или
EthVM.
2. Paste your transaction hash.
3. Here's what the status of the transaction can tell:
Success: Your transaction was successfully mined and is on the blockchain.
If you do not see any errors, your transaction was successfully sent. Your ETH or tokens are where you sent them. If this balance has not been credited to your hosted wallet or exchange account 24 hours after sending, please contact that service. Send them the link to your transaction and ask them to look into your situation.
Failed: If you see a red (
! ) symbol, or a “
BAD INSTRUCTION” or “
OUT OF GAS” error message, it means that the transaction was not successfully sent. You cannot cancel or replace this transaction. Instead, send a new transaction. If you received an “Out of Gas” error, you should double the gas limit you specified originally.
If you see ‘
Reverted’, it’s a good idea to double-check the actions you’re taking. This is an error having to do with a smart contract user-error.
Transaction Not Found: This transaction cannot be found. It’s possible that it did not go through, or that it cannot be found in the Ethereum blockchain explorer you are using. Try using the other one (url=https://www.etherscan.io/]Etherscan[/url],
Ethplorer или
EthVM). If you still can’t find it, it never went through.
Pending: Your transaction was located in the transaction pool of the explorer you are using. It is currently pending (waiting to be mined). There is a chance you can cancel or replace this transaction, but it’s a very small chance.
If your transaction says ‘Pending’, check the gas price you used for this transaction and compare it to the gas prices seen on
EthGasStation.info. If it’s much lower than the ‘Safe Low’ price listed, then you have a good chance of replacing or canceling it.
“Replacing” vs “Canceling” TransactionsCanceling: This is when you want to ‘undo’ your transaction. You don’t want it to go through, so you generate a 0 ETH transaction to your own address with the purpose of preventing a previous transaction from “going through” / “being mined” / being included in the blockchain.
Replacing: This is when you want your same transaction to go through faster, or you want to replace it with another transaction. You generate a XX ETH transaction to someone else’s address with the purpose of doing something (i.e. sending funds, revealing an ENS bid, etc.) while simultaneously not having a previous transaction go through.
The reason we recommend ‘Canceling’ over ‘Replacing’ is that it is not guaranteed your second transaction will actually replace your first one. Choosing to replace a transaction with a new one could lead to more confusion, headaches, and pending ETH, or ETH spent unnecessarily in the form of gas. This is especially true if your first transaction is mined anyways, which is possible.
Sources: -
https://support.mycrypto.com/how-to/sending/checking-or-replacing-a-transaction-after-it-has-been-sent-
https://guides.curve.fi/how-to-drop-and-replace-a-stuck-transaction/-
https://kb.myetherwallet.com/en/transactions/checking-or-replacing-a-tx-after-sending/