Skip to main content
Troubleshooting 4 min read

How to Cancel a Pending Transaction (Ethereum, Base, Polygon)

Transaction stuck? Learn how to cancel or speed up a pending crypto transaction using nonce replacement, and how Keyra makes this a one-tap process.

Visualization of a stuck blockchain transaction queue

How to Cancel a Pending Transaction

There is nothing more frustrating than a “Pending” transaction. You can’t send new transactions because they all queue up behind the stuck one. You’re frozen.

Why Do Transactions Get Stuck?

Usually, it’s because the Gas Price set for your transaction is too low.

  1. You sent a transaction at 20 Gwei.
  2. Network activity spiked, and now the going rate is 40 Gwei.
  3. Validators are ignoring your low-fee transaction in favor of improved offers.

The Technical Solution: Nonce Replacement

Every transaction from your wallet has a serial number called a Nonce (0, 1, 2, 3…). Transactions must be processed in order.

To “cancel” transaction #5, you must send a new transaction with the same nonce (#5) but with a higher gas fee. This new transaction overwrites the old one in the mempool.

How to do this manually (The Hard Way)

In legacy wallets like MetaMask, this can be tricky:

  1. Go to Settings > Advanced > Enable “Customize Transaction Nonce”.
  2. Send 0 ETH to yourself.
  3. Manually type in the Nonce of the stuck transaction.
  4. Set a high gas fee.
  5. Pray you didn’t typo the Nonce and mess up your history.

The Keyra Solution (One-Tap Cancel)

We built Keyra to handle this automatically. You don’t need to know what a “Nonce” is.

  1. Tap the Stuck Transaction in your activity feed.
  2. Tap “Cancel Transaction”.
  3. Keyra automatically calculates the required gas boost (+10%) and broadcasts the replacement signal.
  4. Within seconds, the old transaction is dropped, and your wallet is unblocked.

Note: You can also choose “Speed Up” if you still want the transaction to go through but just need it prioritized.

Prevention

Keyra’s Real-Time Gas Tracker ensures you never underpay for gas by monitoring the mempool 24/7. When you slide to send, we lock in a rate that guarantees inclusion in the next block.

Ready to Secure Your Future?

Join thousands of users who trust Keyra for their multi-chain self-custody.

Download Keyra Now
Non-Custodial
Open Source

Frequently Asked Questions

Does cancelling a transaction cost money?
Yes, you must pay a standard network gas fee (usually $1-$3) for the cancellation transaction to be processed by the blockchain. This goes to the validators, not Keyra.
Can I cancel a transaction that already confirmed?
No. Once a transaction is 'Confirmed' or 'Success', it is permanent and cannot be reversed. This guide only applies to 'Pending' transactions.
Share:

Stay ahead in Web3

Get the latest security insights, DeFi guides, and Keyra updates delivered to your inbox.