# Fixing Stuck Pending Transactions in Your Wallet

Every once in a blue moon there can be a hiccup in the transaction in your wallet that the cancel button just can't fix. This walkthrough will essentially wipe the pending transaction by sending a new transaction that replaces the order by resetting the pipeline.

1. **Enable Custome Transaction Nonce**
   1. Open the MetaMask plugin on your browser
   2. Click the multcolored circle in the upper right of the popup. Usually opposite of the fox head icon

      <figure><img src="https://3783854270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizPhBh1MZNslYzxHN4wN%2Fuploads%2FoiZckD89no5a9P2vCefu%2Fimage.png?alt=media&#x26;token=dee33d00-28a1-42ba-b318-e41525a0af49" alt=""><figcaption></figcaption></figure>
   3. Select Settings

      <figure><img src="https://3783854270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizPhBh1MZNslYzxHN4wN%2Fuploads%2FM7WvU9d2Yi2nseLlZB59%2Fimage.png?alt=media&#x26;token=12ac4597-d6b6-4d5d-8eff-5d72a76f564b" alt=""><figcaption></figcaption></figure>
   4. Select Advanced

      <figure><img src="https://3783854270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizPhBh1MZNslYzxHN4wN%2Fuploads%2FYsfiStdmNjJ5rs295cs8%2Fimage.png?alt=media&#x26;token=6d05ee92-a564-4a5e-a867-9866da717450" alt=""><figcaption></figcaption></figure>
   5. Scroll to Advanced gas controls and make sure the toggle is in the on position

      <figure><img src="https://3783854270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizPhBh1MZNslYzxHN4wN%2Fuploads%2FPRKOzmt9oFMsv4KFODOz%2Fimage.png?alt=media&#x26;token=c4bbcd27-9ee5-41e2-9a04-c6b05a15aa3e" alt=""><figcaption></figcaption></figure>
   6. Still in the advanced section, go to customize transaction nonce and make sure this is toggled on too

      <figure><img src="https://3783854270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizPhBh1MZNslYzxHN4wN%2Fuploads%2FRFyfhwaSEloFkV6eksbV%2Fimage.png?alt=media&#x26;token=15d05c59-df20-4a2c-b883-dba3ed3088cb" alt=""><figcaption></figcaption></figure>
2. &#x20;**Find the Stuck Transaction**

We need to find the stuck transaction and remember the nonce. The nonce is an identifier that we will be using later

1. Back at the main Metamask screen select the **Activity** tab and find the token that is stuck in the transaction.&#x20;

   <figure><img src="https://3783854270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizPhBh1MZNslYzxHN4wN%2Fuploads%2FYpG2z9gOZrG6KXN278Tu%2Fimage.png?alt=media&#x26;token=ebfd4288-ff52-4624-b125-406cc1ca6268" alt=""><figcaption></figcaption></figure>
2. Look for the nonce and note the number

   <figure><img src="https://3783854270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizPhBh1MZNslYzxHN4wN%2Fuploads%2Fi7CETdeM2GY4hQntjCyl%2Fimage.png?alt=media&#x26;token=382959be-7919-4c53-b039-dfede69b4cce" alt=""><figcaption></figcaption></figure>
3. **Overwrite the Stuck Transaction**

**Essentially we will be making a new transaction to replace the stuck transaction and we will put in the same nonce as the old transaction**

1. Create a new transaction with a higher gas fee. In the MetaMask popup select **edit** for the estimated gas fee.

   <figure><img src="https://3783854270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizPhBh1MZNslYzxHN4wN%2Fuploads%2F8VolALjQ8zjvTnHo2iPS%2Fimage.png?alt=media&#x26;token=3f167cda-573e-45d5-adfb-89df0554b20f" alt=""><figcaption></figcaption></figure>

Remember the gas fee increases the priority of the transaction and will ensure that this nonce is accepted over the old stuck transaction in your wallet.

<figure><img src="https://3783854270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizPhBh1MZNslYzxHN4wN%2Fuploads%2FADxa8tUgPJ2XM6NzXFiV%2Fimage.png?alt=media&#x26;token=88949c99-fc67-4761-bbb0-bde726c06b23" alt=""><figcaption></figcaption></figure>

&#x20; 2\.  On the confirmation screen ensure the gas fee has really been increased.

<figure><img src="https://3783854270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizPhBh1MZNslYzxHN4wN%2Fuploads%2FdXrwsqYenDJwltWBXm85%2Fimage.png?alt=media&#x26;token=e11b0b70-51fd-4c3e-a0f5-50be886ea444" alt=""><figcaption></figcaption></figure>

&#x20; 3\.  Find the custom nonce entry and put in the nonce we noted earlier.

<figure><img src="https://3783854270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizPhBh1MZNslYzxHN4wN%2Fuploads%2FPu0tXCXsaiYkl5nVFs24%2Fimage.png?alt=media&#x26;token=f241bf92-03f7-4eb8-ac44-6e5c06c85d52" alt=""><figcaption></figcaption></figure>

&#x20; 4\.  Click **Confirm.**

&#x20; 5\.  The transaction should be accepted. Go to the activity section of your MetaMask wallet to make sure it went through.

**Remember that transactions are fast but not instantaneous. Be patient and give the transaction time to process. You can increase the gas fee to increase its priority if you want to. You don't need to worry about a duplicate transaction because no wallet can process the same nonce identifier twice.**&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.nucleon.network/more/fixing-stuck-pending-transactions-in-your-wallet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
