After Deleting a Wallet Connection Session: Will Pending Transactions Be Canceled?

 / 
2

You just deleted the connection session for a DApp in your wallet, and then you suddenly remember that a transaction still shows "pending." You may worry about whether its status will be affected. The answer is: deleting the session will not make a pending transaction disappear, but it will stop the DApp from receiving the result notification for that transaction.

OKX Exchange
A leading global cryptocurrency platform,suitable for both beginners and experienced traders.
New user benefit: 20% off trading fees upon registration!!

You Are Deleting the "Communication Channel," Not the "Transaction Itself"

When you delete a wallet connection session, what you actually do is disconnect the session between your wallet and the DApp. Once WalletConnect's session_delete event is triggered, that session pairing is completely gone. The wallet side will delete the corresponding key and topic, and any new requests sent by the DApp afterward will not be received.

But "deleting a session" and "canceling a transaction" are two separate things. Once a transaction has been signed by the wallet and broadcast to the chain, it has already entered the mempool and is waiting for miners to package and confirm it. This process is driven by the blockchain network and does not depend at all on whether the wallet and DApp still maintain a connection.

Cobo's product documentation clearly describes this boundary: "After disconnection, the dApp will no longer be able to initiate transaction requests, but this does not affect transactions that have already been initiated and entered the process." The meaning is very straightforward: if it has already been sent out, it will still go through the normal process.

OKX Exchange
A leading global cryptocurrency platform,suitable for both beginners and experienced traders.
New user benefit: 20% off trading fees upon registration!!

So What Actually Happens to the "Pending" Transaction?

There are two situations:

Situation A: The transaction has already been broadcast (it has a Tx Hash)

If you can see the Tx Hash of this transaction in your wallet or on a block explorer, it means the transaction is already on the chain. In this case, deleting the session has no effect on its final confirmation. It will either be successfully packaged, remain stuck because the gas fee is too low, or be replaced by a later transaction. MetaMask's official help documentation also mentions that confirmed transactions cannot be reversed, while pending transactions can be overwritten by sending a replacement transaction with the same nonce.

  • Operation goal: Confirm the transaction status
  • How to do it: Copy the Tx Hash to the block explorer for the corresponding chain, and check whether the status is Pending, Success, or Fail
  • Completion standard: Find the real on-chain status of this transaction

Situation B: The transaction only stays locally in the wallet and has not been broadcast

For example, you clicked "Sign," but the network was stuck. The wallet shows Pending, but the block explorer cannot find this Hash. In this case, the transaction never went on-chain. MetaMask officially classifies this as a "local state stuck on the wallet side." Deleting the session will not affect it, but it will keep occupying the queue.

  • Operation goal: Clear the locally stuck transaction state
  • How to do it: In MetaMask, click Settings → Developer tools → Delete activity and nonce data. This operation will clear the local pending list, but it will not affect your funds or on-chain records
  • Completion standard: Reopen the wallet, and the stuck transaction no longer appears in the Activity list

Risk reminder: If you deleted the session but previously authorized the DApp to use your tokens, that authorization is still on-chain. Deleting the session does not automatically revoke the approval. You need to separately go to a tool like Revoke.cash and manually revoke it. Otherwise, even if the DApp interface can no longer connect, that contract address can still move your coins.

How to verify that the operation is complete: Open the block explorer and enter your wallet address. Under the "Transactions" tab, check whether that transaction appears in the list. If it appears and the status is Success, it means it is completed. If it is Pending and shows a Nonce value, it means it is still in the queue. Whether or not the session was deleted, you can see the real current status there.