# 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://3495851544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSFXQ3KVlajsRm5B73Wdu%2Fuploads%2FKinRcmHFidz2Vy2Vtt7D%2Fimage.png?alt=media&#x26;token=dee33d00-28a1-42ba-b318-e41525a0af49" alt=""><figcaption></figcaption></figure>
   3. Select Settings

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

      <figure><img src="https://3495851544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSFXQ3KVlajsRm5B73Wdu%2Fuploads%2F5tAW8OyP4U2TdVrKG5IS%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://3495851544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSFXQ3KVlajsRm5B73Wdu%2Fuploads%2F46d0gCKLBtZtfPQFcXJR%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://3495851544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSFXQ3KVlajsRm5B73Wdu%2Fuploads%2FVfqUwjsnZxgtR2lBQsQo%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://3495851544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSFXQ3KVlajsRm5B73Wdu%2Fuploads%2FrsPJbbbUaQVgTNmjKxzi%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://3495851544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSFXQ3KVlajsRm5B73Wdu%2Fuploads%2F4TL2Xq7KIM5W5bbCTFnd%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://3495851544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSFXQ3KVlajsRm5B73Wdu%2Fuploads%2FTXnWgmKbijmDJut89oFb%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://3495851544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSFXQ3KVlajsRm5B73Wdu%2Fuploads%2FKkZPLRnbHhiujF8FPcDE%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://3495851544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSFXQ3KVlajsRm5B73Wdu%2Fuploads%2FD4gQPnjJNWn7Y3gKVof2%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://3495851544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSFXQ3KVlajsRm5B73Wdu%2Fuploads%2FUpbDoI1iuSvMjpDkqzeD%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;
