Cancel or Replace a blockchain transaction (2024)

Table of Contents
❗️ Replacing a transaction

In some cases, you may want to cancel or replace a transaction.

  • Cancel: for EVM chains (like Ethereum), it may be possible to replace a pending transaction in the mempool via another one with value zero (0) to your own address. UTXO transactions can't be "canceled".
  • Replace: for UTXO chains (like Bitcoin), it may be possible to increase the fee of a pending transaction via RBF (if enabled) or via CPFP. For EVM chains, it may be possible to replace a pending transaction.

❗️

Confirmed blockchain transactions cannot be canceled or reverted. Once a transaction has been confirmed and added into a block, it's final.

EVM chains allow a bit of a trick to cancel a pending (unconfirmed) transaction in the mempool:

  1. Verify the transaction you want to cancel is not confirmed yet and is still pending in the mempool. Check an Explorer.
  2. Verify the nonce value of the unconfirmed transaction you want to cancel.
  3. Create a new transaction where the sender and receiver blockchain address is the same with a zero (0) amount. Use the same nonce value you got from step 2 and put a much higher fee.
  4. Broadcast this transaction. Ideally, the miners will prioritize this new transaction over the original due to a higher fee.
  5. If all worked well, your new transaction will get confirmed first and the original will be dropped due to invalid.

Replacing a transaction

UTXO chains may allow RBF or in some cases CPFP on pending (unconfirmed) transactions.

EVM chains may allow replacing a transaction using the same method as if you were to cancel it:

  1. Verify the transaction you want to cancel is not confirmed yet and is still pending in the mempool. Check an Explorer.
  2. Verify the nonce value of the unconfirmed transaction you want to replace.
  3. Create a new transaction where the receiver blockchain address may or may not be the same as in the original to replace. Use the same nonce value you got from step 2 and put a much higher fee.
  4. Broadcast this transaction. Ideally, the miners will prioritize this new transaction over the original due to a higher fee.
  5. If all works well, your new transaction will get confirmed first and the original will be dropped due to invalid.
  • Incorrectly executed transactions may result in the loss of funds.
  • For pending or unconfirmed transactions, there's no guarantee of success in canceling or replacing them.
  • Blockchain transactions, once confirmed, are final (irreversible).

Updated 3 months ago

Cancel or Replace a blockchain transaction (2024)
Top Articles
Cryptocurrency Tax Loss Harvesting: How to Save Money | CoinLedger
How to Fix Android Phone Stuck in Recovery Mode
Skigebiet Portillo - Skiurlaub - Skifahren - Testberichte
Parke County Chatter
What spices do Germans cook with?
Limp Home Mode Maximum Derate
Dee Dee Blanchard Crime Scene Photos
No Hard Feelings Showtimes Near Metropolitan Fiesta 5 Theatre
Elle Daily Horoscope Virgo
3656 Curlew St
Sports Clips Plant City
6001 Canadian Ct Orlando Fl
iOS 18 Hadir, Tapi Mana Fitur AI Apple?
How Much Are Tb Tests At Cvs
Wizard Build Season 28
How Much Is Tay Ks Bail
Union Ironworkers Job Hotline
Schedule 360 Albertsons
UPS Store #5038, The
Pokemon Unbound Shiny Stone Location
Governor Brown Signs Legislation Supporting California Legislative Women's Caucus Priorities
Anotherdeadfairy
Barista Breast Expansion
Jayme's Upscale Resale Abilene Photos
Wat is een hickmann?
Skymovieshd.ib
Black Panther 2 Showtimes Near Epic Theatres Of Palm Coast
Effingham Daily News Police Report
Speechwire Login
Movies - EPIC Theatres
Vivification Harry Potter
Spirited Showtimes Near Marcus Twin Creek Cinema
Vadoc Gtlvisitme App
6465319333
How to Draw a Bubble Letter M in 5 Easy Steps
Petsmart Distribution Center Jobs
Gas Prices In Henderson Kentucky
Samsung 9C8
Restored Republic December 9 2022
Caderno 2 Aulas Medicina - Matemática
8 Ball Pool Unblocked Cool Math Games
Gvod 6014
Final Fantasy 7 Remake Nexus
Directions To The Closest Auto Parts Store
2132815089
Mcalister's Deli Warrington Reviews
Fool's Paradise Showtimes Near Roxy Stadium 14
Unveiling Gali_gool Leaks: Discoveries And Insights
Ups Customer Center Locations
Latest Posts
Article information

Author: Merrill Bechtelar CPA

Last Updated:

Views: 6364

Rating: 5 / 5 (70 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Merrill Bechtelar CPA

Birthday: 1996-05-19

Address: Apt. 114 873 White Lodge, Libbyfurt, CA 93006

Phone: +5983010455207

Job: Legacy Representative

Hobby: Blacksmithing, Urban exploration, Sudoku, Slacklining, Creative writing, Community, Letterboxing

Introduction: My name is Merrill Bechtelar CPA, I am a clean, agreeable, glorious, magnificent, witty, enchanting, comfortable person who loves writing and wants to share my knowledge and understanding with you.