Bitcoin Forum
September 30, 2023, 05:25:43 AM *
News: Latest Bitcoin Core release: 25.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [GUIDE] How to cancel or replace an ETH transaction (Metamask, MEW, MyCrypto)  (Read 329 times)
Ratimov (OP)
Legendary
*
Offline Offline

Activity: 1582
Merit: 11581


Premium Bitcoin Mixer


View Profile WWW
September 24, 2020, 09:23:20 AM
Merited by hugeblack (6), Welsh (5), DdmrDdmr (2), hosseinimr93 (1), tranthidung (1), Dragonfund (1)
 #1

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 Transaction

1. 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 Transaction


1. 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 Transaction

So, 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)

Quote
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:

Quote
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” Transactions


Quote
Canceling: 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/

.
..M. MixTum.io ▀▄ Premium Bitcoin Mixer ▄▀ 
█████
██
██
██
██
██
██
██
██
██
██
██
█████
███████████████████████████████████████████████████████████████
.
MIX FREE
Up to 1mBTC
.
███████████████████████████████████████████████████████████████
█████
██
██
██
██
██
██
██
██
██
██
██
█████
████████████████████████
█████████████▀▀████████
████████████▀▄█████████
██████████▀▌▄██████████
██████████▌███████████
█████████▀▄███▀████████
██████▀▄▄██████▀███████
█████▀▄█▀▄████████████
██████▀▄█▌▐████▐█████
█████▌▐█▀▌▐█████▐█████
██████████████▄██████
███████▄██████▄████████
████████████████████████
1696051543
Hero Member
*
Offline Offline

Posts: 1696051543

View Profile Personal Message (Offline)

Ignore
1696051543
Reply with quote  #2

1696051543
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
hd49728
Hero Member
*****
Offline Offline

Activity: 1862
Merit: 892



View Profile
September 24, 2020, 09:58:59 AM
 #2

Sometimes transaction won't be confirmed by miners because of low gas limits. People are talking about gas price and they forget about gas limit that is important for transactions on ETH network. In normal periods, before DeFi came to us, gas limit did not show its importance like now. Nowadays, to make sure transaction will be confirmed, people have to pay attention on 2 things: gas used (Gwei) and gas limit.

.freebitcoin.       ▄▄▄█▀▀██▄▄▄
   ▄▄██████▄▄█  █▀▀█▄▄
  ███  █▀▀███████▄▄██▀
   ▀▀▀██▄▄█  ████▀▀  ▄██
▄███▄▄  ▀▀▀▀▀▀▀  ▄▄██████
██▀▀█████▄     ▄██▀█ ▀▀██
██▄▄███▀▀██   ███▀ ▄▄  ▀█
███████▄▄███ ███▄▄ ▀▀▄  █
██▀▀████████ █████  █▀▄██
 █▄▄████████ █████   ███
  ▀████  ███ ████▄▄███▀
     ▀▀████   ████▀▀
BITCOIN
DICE
EVENT
BETTING
WIN A LAMBO !

.
            ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
▄▄▄▄▄██████████████████████████████████▄▄▄▄
▀██████████████████████████████████████████████▄▄▄
▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
  ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
       ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.PLAY NOW.
GreatArkansas
Legendary
*
Offline Offline

Activity: 2086
Merit: 1323


Telegram Bot - @BitcointalkProjectBot


View Profile WWW
September 24, 2020, 10:31:10 AM
 #3

I have a simple question about canceling a transaction on Ethereum,
when we try to cancel a transaction and it is successfully canceled, to the transaction fee we were able to use when we first initiate the transaction will also get back in our wallet? Like nothing happened, no Ethereum was deducted on the wallet I used?

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
Ratimov (OP)
Legendary
*
Offline Offline

Activity: 1582
Merit: 11581


Premium Bitcoin Mixer


View Profile WWW
September 24, 2020, 10:39:11 AM
 #4

I have a simple question about canceling a transaction on Ethereum,
when we try to cancel a transaction and it is successfully canceled, to the transaction fee we were able to use when we first initiate the transaction will also get back in our wallet? Like nothing happened, no Ethereum was deducted on the wallet I used?

The commission will not be returned, since you are sending ETH to yourself with the replacement of the commission for another. Your ether in the stuck commission will return to you, but you will pay the rest to the miners.

.
..M. MixTum.io ▀▄ Premium Bitcoin Mixer ▄▀ 
█████
██
██
██
██
██
██
██
██
██
██
██
█████
███████████████████████████████████████████████████████████████
.
MIX FREE
Up to 1mBTC
.
███████████████████████████████████████████████████████████████
█████
██
██
██
██
██
██
██
██
██
██
██
█████
████████████████████████
█████████████▀▀████████
████████████▀▄█████████
██████████▀▌▄██████████
██████████▌███████████
█████████▀▄███▀████████
██████▀▄▄██████▀███████
█████▀▄█▀▄████████████
██████▀▄█▌▐████▐█████
█████▌▐█▀▌▐█████▐█████
██████████████▄██████
███████▄██████▄████████
████████████████████████
cryptoaddictchie
Legendary
*
Offline Offline

Activity: 1848
Merit: 1303



View Profile
September 24, 2020, 11:47:01 AM
 #5

Great guide OP. Im always doing cancellation of transaction on eth and sending 0 with same nonce always work. I just never tried out replacing with higher gas.

I have a question though. What if using a higher gas fee but the transaction still failed? This is typically happening on uniswap even though using above slippage. Weird cause once failed it really eat your transaction fee in spite of high fee set and slippage. Any connection?


.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
Ratimov (OP)
Legendary
*
Offline Offline

Activity: 1582
Merit: 11581


Premium Bitcoin Mixer


View Profile WWW
September 24, 2020, 12:12:17 PM
 #6

I don't use ETH much, but are those guides are guaranteed to have near 100% success rate? At very least when you attempt to cancel/replace transaction (without RBF), the success rate is extremely rate.

Absolutely right. These guides are not a 100% solution, especially in terms of replacement. When the initial transaction can also be mined, regardless of your actions. It is also possible that the transaction may never appear in the block explorer, because it simply does not pass. This tutorial is just another attempt to solve the headache of a hung transaction.



I have a question though. What if using a higher gas fee but the transaction still failed? This is typically happening on uniswap even though using above slippage. Weird cause once failed it really eat your transaction fee in spite of high fee set and slippage. Any connection?

I can't say for sure, but it's possible because of the interaction error in the smart contract. Usually, there is such a status in such transactions: Reverted

.
..M. MixTum.io ▀▄ Premium Bitcoin Mixer ▄▀ 
█████
██
██
██
██
██
██
██
██
██
██
██
█████
███████████████████████████████████████████████████████████████
.
MIX FREE
Up to 1mBTC
.
███████████████████████████████████████████████████████████████
█████
██
██
██
██
██
██
██
██
██
██
██
█████
████████████████████████
█████████████▀▀████████
████████████▀▄█████████
██████████▀▌▄██████████
██████████▌███████████
█████████▀▄███▀████████
██████▀▄▄██████▀███████
█████▀▄█▀▄████████████
██████▀▄█▌▐████▐█████
█████▌▐█▀▌▐█████▐█████
██████████████▄██████
███████▄██████▄████████
████████████████████████
tranthidung
Legendary
*
Offline Offline

Activity: 2044
Merit: 3701


Stop Putin & the war against Ukraine!


View Profile WWW
September 24, 2020, 03:14:32 PM
 #7

I run it with data for last 30 days. It is a very raw overview and I hope you can find something useful.

Gas_used and Gas limit (19/8/2020 - 19/9/2020) on ETH network

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
Smartvirus
Legendary
*
Offline Offline

Activity: 1204
Merit: 1062



View Profile
October 01, 2020, 05:42:31 PM
 #8

Quite an examplinary post and the title connotes it perfectly well being a guide. As it takes steps to walk users through the process. Its a good one.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....LOTTERY..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Princejebs
Member
**
Offline Offline

Activity: 560
Merit: 26


View Profile
October 01, 2020, 06:23:49 PM
 #9

Clear and brief explanation, you deserve some accolade, I learnt today.
If you have ever been stucked with a pending transaction on ethereum network, you will value what OP has posted. The congestion on ethereum blockchain has made everything becomes difficult to use their network , I could remember last year how easy and fast it was to make a transaction but the recent rush on DeFi has made it hilarious. Requiring an average $8-$10 to make a transaction is ridiculous compare to the services of traditional banks who offer same service to move funds.
The delay on Eth2.0 has made the whole thing a mess. I prefer tron with USDT transactions.
SquirrelJulietGarden
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 663


Premium Bitcoin Mixer


View Profile
October 02, 2020, 03:02:29 AM
 #10

This is a very useful information for Ethereum users because the transaction fees of Ethereum blockchain is not small anymore nowadays.
My suggestion is, we should check the gas fee before we make our transaction in Ethereum, check here : https://etherscan.io/gastracker
Our transactions should not pending for long if we follow the recommended gas fee there.

A few gas trackers you can use and make fee checkings.

ETHGasstation.info
https://ethgasstation.info/index.php
https://ethgasstation.info/txPoolReport.php
https://ethgasstation.info/calculatorTxV.php

Etherchain.org
https://www.etherchain.org/tools/gasPriceOracle

Gasnow.org
https://www.gasnow.org/

ETHGas.watch
https://ethgas.watch/

Etherscan.io
https://etherscan.io/gastracker

Ratimov, Octradism, wwzsocki and GreatArkansas have some topics on gas trackers and guides to manage transactions on ETH network, check fees, and save fees.

GAS NOW - New Price Gas Forecast Service
[GAS Price Aggregator] How to find the optimal gas price
ETH/ERC20 - Check and select good Gas price
TxStreet.com - live cryptocurrency transaction visualizer.
Blockchain Transaction Visualizer
xOdiumNostrumx
Full Member
***
Offline Offline

Activity: 1064
Merit: 101



View Profile
October 02, 2020, 11:25:32 AM
 #11

Solid guide for sure, but these services (like MM for example) should really try to provide one-click solutions to these kind of issues as most of crypto newcomers are not tech savvy enough to execute those mentioned processes/steps, even if they seems quite easy at first glance.
blue Snow
Hero Member
*****
Offline Offline

Activity: 1288
Merit: 864


Crypto Swap Exchange


View Profile WWW
October 02, 2020, 11:53:47 AM
 #12

As I know we can cancel transaction if Pending status only. when sending with high fee then a bit confirmed success, we can't cancel or replace it anyway.

See more pending transaction https://etherscan.io/txsPending

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Fujiati
Full Member
***
Offline Offline

Activity: 664
Merit: 112


Ethernity CLOUD


View Profile
October 04, 2020, 07:59:34 PM
 #13

As I know we can cancel transaction if Pending status only. when sending with high fee then a bit confirmed success, we can't cancel or replace it anyway.

See more pending transaction https://etherscan.io/txsPending
Yes true, it makes sense to replace a pending transaction with a new one, on the other hand, for a transaction that has been confirmed as successful, something that is processed in that transaction is already placed in the recipient's wallet.

SquirrelJulietGarden
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 663


Premium Bitcoin Mixer


View Profile
February 16, 2021, 08:51:36 AM
 #14

Images are disabled. Please upload them in OP again, Ratimov.

I think the problems are from the links you took directly from curve platform and their guide documents. In the times of high and expensive transaction fees on Ethereum network, I believe more people will search for tutorial, find yours and read it. Some of them will have demand to cancel or replace ETH or ERC-20 token transactions.
Ratimov (OP)
Legendary
*
Offline Offline

Activity: 1582
Merit: 11581


Premium Bitcoin Mixer


View Profile WWW
February 16, 2021, 11:07:50 AM
 #15

Images are disabled. Please upload them in OP again, Ratimov.

I can't, the originals remained on this page:  https://guides.curve.fi/how-to-drop-and-replace-a-stuck-transaction/

And I have no copies, alas.  Sad

.
..M. MixTum.io ▀▄ Premium Bitcoin Mixer ▄▀ 
█████
██
██
██
██
██
██
██
██
██
██
██
█████
███████████████████████████████████████████████████████████████
.
MIX FREE
Up to 1mBTC
.
███████████████████████████████████████████████████████████████
█████
██
██
██
██
██
██
██
██
██
██
██
█████
████████████████████████
█████████████▀▀████████
████████████▀▄█████████
██████████▀▌▄██████████
██████████▌███████████
█████████▀▄███▀████████
██████▀▄▄██████▀███████
█████▀▄█▀▄████████████
██████▀▄█▌▐████▐█████
█████▌▐█▀▌▐█████▐█████
██████████████▄██████
███████▄██████▄████████
████████████████████████
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!