Transaction Cancellation Risk Explainer
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Transaction Cancellation Risk Explainer is a read-only tool that analyzes the risk of canceling a pending transaction, generating AI-powered plain-language explanations of cancellation viability and strategies. It reads pending transaction status, transaction nonce, sender address, gas price, current block number, mempool state, replacement transaction status, transaction hash, original transaction calldata, confirmation count, mining likelihood, gas price trends, network congestion, pending pool depth, and transaction age. The tool then presents this data alongside an AI-generated explanation of the likelihood of success, gas price requirements, timing considerations, and potential consequences if the cancellation fails — helping you decide whether to attempt cancellation before submitting a replacement transaction.
HOW TO USE
Connect your wallet using the BGWallet bridge and select your target network. Enter the transaction hash you want to cancel. Optionally enter the sender address (auto-detected if not provided). Click "Analyze cancellation risk" to read mempool and on-chain data. The tool displays the transaction hash, sender address, nonce, current gas price, transaction age, and cancellation risk level (Low/Medium/High). A prominent warning banner appears if high risk is detected. Detailed information includes status, mempool state, confirmation count, mining likelihood, gas price trend, network congestion, pool depth, replacement transaction status, and calldata hash. A recommended approach box provides specific strategy guidance. An AI explanation appears below the on-chain data, explaining the risk of attempting to cancel the pending transaction, the likelihood of success, gas price requirements, timing considerations, and potential consequences if the cancellation fails before you submit a replacement transaction. The wallet's own signature step still protects you — this explanation is informational only and does not replace reviewing what you approve in your wallet.
TECHNICAL MECHANISM
The tool uses ethers.js v5.7.2 with the provider from the BGWallet bridge to read mempool and on-chain data. No hardcoded contract addresses are used — you are always in control of which contract you trust. When analyzing cancellation risk, the tool reads the pending transaction status via provider.getTransaction(txHash) and checking if it exists, reads the transaction nonce from the transaction object, reads the sender address from the transaction, reads the gas price from the transaction, reads the current block number via provider.getBlockNumber(), reads the mempool state by checking for the transaction in the mempool (via provider.getPendingTransactions()), checks for replacement transaction status by scanning for transactions with the same nonce from the same sender, reads the transaction hash from the user input, reads the original transaction calldata from the transaction object, calculates confirmation count by estimating the likelihood that the transaction will be confirmed in the next block, assesses mining likelihood by analyzing gas price relative to current mempool conditions, analyzes gas price trends from recent blocks, assesses network congestion from the pending transaction count, reads the pending pool depth via provider.getPendingTransactions().length, and calculates transaction age by comparing block timestamps. The tool fetches event logs by walking backwards in chunks and halving chunk size on failure, ensuring logs are properly read despite varying RPC limitations. The data is formatted and passed to the AI bridge via BGAI.generate() with a structured prompt that includes all the on-chain data read. The AI is instructed to explain the risk of attempting to cancel the pending transaction, analyze the likelihood of success, gas price requirements, timing considerations, and potential consequences if the cancellation fails — while stating plainly that it cannot guarantee that a cancellation transaction will replace the original before it is mined, cannot predict block inclusion timing or gas price changes, and cannot detect if the original transaction has been privately included before the cancellation is broadcast. The AI response is capped at 1,024 tokens to ensure concise, focused cancellation risk assessments. All computed values are guarded against negative numbers — if a gas price or nonce appears invalid, the tool flags it rather than displaying nonsensical values.
WHAT IT CANNOT SEE
This tool cannot guarantee that a cancellation transaction will replace the original before it is mined. It cannot predict block inclusion timing or gas price changes. It cannot detect if the original transaction has been privately included before the cancellation is broadcast. It cannot detect replacement transactions submitted through private mempools or hidden from public view. The AI explanation is generated from public mempool and on-chain data only and cannot detect private transaction inclusion, hidden replacement transactions, or validator behavior. It cannot predict whether a cancellation will succeed before the next block. The tool does not continuously monitor cancellation attempts; each analysis is a snapshot at the time of the lookup. It cannot detect delayed replacement, private transaction pools, or stale mempool data. The tool does not store any data persistently; all state is in-memory and resets on reload. The AI explanation is informational and does not constitute financial advice, legal advice, or a guarantee of cancellation success or transaction safety.
PLEASE NOTE
Transaction Cancellation Risk Explainer works exclusively with EVM-compatible chains. It requires a Web3 wallet (MetaMask or similar) and the BGWallet bridge. Explanations are AI-generated from data the app reads on-chain — always review what you are actually signing in your wallet before approving it. Cancelling a transaction carries significant risk including transaction replacement failure, loss of gas fees, and unintended transaction outcomes. Use this tool as a guide only; always cross-check with independent sources and monitor replacement transaction status. This is experimental software; use at your own risk.