bidenerc.site

How to fix a stuck Ethereum transaction that is pending for hours

A pending Ethereum transaction that sits for hours usually has a clear cause. The priority fee or the max fee you set is below the current network base fee. Validators have no incentive to include it. They pick transactions that pay them more.

The fix is not complicated. But you need to understand one constraint first.

Why one stuck transaction blocks everything

Every Ethereum wallet assigns a nonce to each transaction you send. Nonces are sequential numbers. Transaction one has nonce 1, transaction two has nonce 2, and so on. Validators process nonces in order. They will not confirm nonce 5 while nonce 4 is still pending.

That means a single stuck transaction stops every later transaction from the same wallet. Your subsequent sends never get mined. They sit in the mempool waiting for the earlier nonce to clear.

You have two options: speed up or cancel.

Speed up: resubmit with a higher fee

Speed up means sending the same transaction again with a higher gas fee. You use the same nonce. The new fee must be enough to displace the old transaction from validator mempools.

Open your wallet. Look for the pending transaction. Most wallets have a "speed up" button. If not, you manually resubmit. Copy the original transaction details. Increase the max priority fee and the max base fee. A common approach is to double the priority fee you originally set. You can check current gas prices on any blockchain explorer to see what is competitive.

Set the nonce to the same number as the stuck transaction. Sign and broadcast.

If you do it right, validators see your replacement and drop the old one. The new transaction gets confirmed.

Cancel: send a zero-value transaction to yourself

Cancelling is useful when you no longer want the original transaction to execute. Maybe the price moved. Maybe you made a mistake on the recipient address.

Send a new transaction with the same nonce. The recipient is your own wallet address. The amount is zero ETH. The data field is empty. The gas fee must be higher than the stuck transaction.

Why does this work? Validators see the replacement with a higher fee. They drop the old transaction. Your zero-value transfer confirms instead. The original transfer never happens.

You lose the gas fee for the cancelled transaction. That is the cost of getting unstuck.

The "replacement underpriced" error

Sometimes you try either fix and get an error: "replacement transaction underpriced." This means your new fee is not high enough. Validators will not accept it because the original transaction still pays more per gas unit relative to current conditions.

The rule: the new transaction must increase the fee by at least 10% over the original. In practice, aim for 20 to 50 percent higher. If the network base fee has risen sharply since your first send, you may need to increase the max fee substantially.

Check the current base fee on Etherscan or your wallet's suggested gas. Set your new max fee well above that.

A concrete example

Say you sent a swap on Uniswap with a priority fee of 2 gwei. The network base fee was 20 gwei. Your total max fee was 40 gwei. An hour later, base fee is 30 gwei. Your original fee is no longer competitive.

For a speed up, resend with the same nonce. Set priority fee to 5 gwei. Set max fee to 70 gwei. That gives validators more reason to pick your transaction.

For a cancel, send 0 ETH to yourself at nonce X. Use similarly higher fees. Wait. The cancel confirms. You are free to send new transactions.

What if neither works

If the network remains congested and fees stay high, your transaction may pend for days. Some wallets let you wait it out. Others have a "clear pending transactions" option that replaces the nonce automatically.

As a last resort, you can import your wallet into another interface like MetaMask or Rabby that gives finer control over nonce and gas. Then manually craft a replacement.

On bidenerc.site, we do not track live prices or fees. The method above works for any Ethereum wallet. Understand the nonce and fee mechanics. That is all you need to unstuck yourself.

Not financial advice. bidenerc.site publishes market data and general information about Biden Coin. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.

Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.

Back to ethereum