How to Replace a Stuck Transaction Using the Same Nonce

Nothing creates panic quite like watching your cryptocurrency transfer sit unconfirmed for hours. You check the block explorer and see your transaction pending while the market moves without you. Before you assume your funds are lost, know that you can often push that stuck transaction through by replacing it with a new one using the same nonce.

In blockchain terms, the nonce is simply a transaction counter tied to your wallet address. It starts at zero and increases by one for every transaction you send. When a transaction gets stuck due to low gas fees, it blocks any subsequent transactions from confirming because the network is waiting for that specific nonce to be used. By sending a new transaction with the identical nonce and a higher gas fee, you effectively overwrite the stuck one.

When You Should Replace a Transaction

This method only works if your transaction is still pending and has not received any confirmations. If you see even one confirmation on the block explorer, you cannot reverse or replace it. You also need access to your private keys or seed phrase, as you will be creating a new transaction from the same wallet.

Most modern wallets like MetaMask support this feature natively, but the process varies slightly depending on your interface. The following steps work for Ethereum and compatible networks such as Polygon or Binance Smart Chain.

Step-by-Step Replacement Process

1. Locate the Stuck Nonce

Open your wallet and find the pending transaction in your activity history. Click on it to view the details and note the nonce number. If your wallet does not display this clearly, paste your wallet address into a block explorer and look for the pending transaction. The nonce will be listed in the transaction details, usually as a simple number like 42 or 156.

2. Enable Custom Nonce Settings

In MetaMask, navigate to Settings, then Advanced, and toggle on “Customize transaction nonce.” Other wallets may have this option under advanced settings or developer options. This allows you to manually specify the nonce rather than letting the wallet assign the next available number automatically.

3. Create the Replacement Transaction

Initiate a new transaction to yourself or your original recipient. Use the exact same nonce as your stuck transaction. For the gas price, check a gas tracker and set a fee significantly higher than your original attempt—typically at least twenty to thirty percent above the current network average to ensure miners pick it up quickly.

4. Send and Verify

Confirm the transaction. Because it shares the nonce with your pending transaction, the network will accept only one of them. The new transaction with higher fees should get mined within minutes, effectively canceling the old one. You can verify success by checking the block explorer; the original transaction hash will show as “dropped and replaced” or simply disappear from the pending queue.

Common Mistakes to Avoid

  • Do not change the recipient address unless you intend to send funds somewhere else. Changing the recipient creates a completely new transaction rather than replacing the old one.
  • Avoid setting the gas limit too low. While you need higher gas price, the gas limit should remain sufficient for the transaction type—typically 21,000 for simple transfers or higher for smart contract interactions.
  • Do not attempt this if your transaction already has confirmations. Once confirmed, the nonce has been consumed and cannot be reused.

What If It Does Not Work?

If your replacement transaction also stalls, the network may be experiencing extreme congestion. Simply repeat the process with an even higher gas price. Alternatively, if you no longer need the transaction to go through, you can send a zero-eth transaction to yourself with the same nonce to cancel the original request entirely.

Learning to manage nonces manually gives you fine-grained control over your transactions and saves you from waiting helplessly during network congestion. With practice, this technique becomes a reliable tool for managing your crypto transfers efficiently.