This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Cancel Transaction in MetaMask

Wallets · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryWallets
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

This tool helps you cancel a pending transaction in MetaMask by sending a replacement transaction with the same nonce, a higher gas price, and zero value (a self-transfer). It reads the current pending transaction queue and nonce from your connected wallet, allows you to select the transaction to cancel, calculates the required gas price with a configurable multiplier, and submits the replacement. If successful, the original pending transaction is replaced and never mined.

HOW TO USE

Connect your MetaMask wallet. Enter the nonce of the transaction you want to cancel, or click "Fetch Pending" to automatically detect pending transactions from your wallet. Select a pending transaction from the list to populate its nonce. Adjust the "Gas price multiplier" — a higher value increases the chance of replacement (1.5x to 2x recommended). Review the cancellation details including the target nonce, replacement gas price, and estimated fee. Click "Cancel Transaction" and sign the transaction in your wallet. The replacement will be sent, and the tool will display the transaction hash and confirmation status.

TECHNICAL MECHANISM

The tool uses the transaction replacement mechanism supported by Ethereum and EVM-compatible networks. When you send a transaction with the same nonce as a pending transaction and a higher gas price, the network treats it as a replacement. The tool connects to your wallet via the BGWallet bridge and ethers.js. It fetches the current gas price using provider.getGasPrice(), applies the user-specified multiplier, and constructs a zero-value transaction sent to the wallet's own address. The nonce is set to match the pending transaction, and gasLimit is set to 21000 (standard ETH transfer). The tool signs and sends this replacement through the connected wallet. It then waits for the transaction receipt to confirm the replacement was mined. If the original pending transaction is mined before the replacement, the cancellation will fail.

WHAT IT CANNOT SEE

This tool cannot cancel transactions that have already been confirmed — it only works on pending transactions. It cannot cancel transactions on networks where the wallet does not support nonce replacement. It cannot force the cancellation if the user denies the signature request in MetaMask. It cannot guarantee cancellation if the original transaction is mined before the replacement. It cannot cancel transactions sent from other wallets or addresses — only from the connected wallet. It cannot cancel transactions that are not pending. It cannot revert the effects of a transaction that has already been mined. It cannot cancel transactions if the network is under heavy load and the original transaction is mined before the replacement. It cannot estimate the exact gas price needed to guarantee replacement.

PLEASE NOTE

This tool works only with EVM-compatible wallets connected via the BGWallet bridge. Cancellation is not guaranteed — it depends on network conditions and the speed of mining. Higher gas prices increase the chance of successful replacement but cost more in fees. Always verify the nonce you are canceling is correct — canceling the wrong nonce will replace the wrong transaction. The tool does not store or transmit any data — all processing occurs in your browser. This tool is provided as a utility and does not guarantee transaction cancellation. For critical transactions, consider using a dedicated transaction management tool or directly monitoring the blockchain explorer.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.