# How to remove the old transaction from queue which are in pending

**URL:** https://community.fireblocks.com/t/how-to-remove-the-old-transaction-from-queue-which-are-in-pending/1496
**Category:** Developer Discussion
**Created:** [October 3, 2024, 10:26pm UTC](https://community.fireblocks.com/t/how-to-remove-the-old-transaction-from-queue-which-are-in-pending/1496 "2024-10-03T22:26:03Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![tan](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@tan](https://community.fireblocks.com/u/tan)
#### Post date: [October 3, 2024, 10:26pm UTC](https://community.fireblocks.com/t/how-to-remove-the-old-transaction-from-queue-which-are-in-pending/1496/1 "2024-10-03T22:26:03Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/fireblocks/original/1X/19f0ce3c744f955bd9df1d3c413d080a3580846b.png)

Hey so i want to know whats the best way to handle this … so i am trying to do a new tx and suppose the old tx is stuck in pending signature and user want to do new tx , how to cancel the previous tx automatically

---

<div class="post-metadata">

### Author: ![Mohammed](https://sea1.discourse-cdn.com/flex015/user_avatar/community.fireblocks.com/mohammed/32/511_2.png) [@Mohammed](https://community.fireblocks.com/u/Mohammed)
#### Post date: [October 3, 2024, 10:28pm UTC](https://community.fireblocks.com/t/how-to-remove-the-old-transaction-from-queue-which-are-in-pending/1496/2 "2024-10-03T22:28:21Z")

</div>

Hi @tan you can use this endpoint to cancel txs that have not made it to broadcasting state yet [Cancel a transaction](https://developers.fireblocks.com/reference/canceltransaction)

---

<div class="post-metadata">

### Author: ![tan](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@tan](https://community.fireblocks.com/u/tan)
#### Post date: [October 3, 2024, 10:30pm UTC](https://community.fireblocks.com/t/how-to-remove-the-old-transaction-from-queue-which-are-in-pending/1496/3 "2024-10-03T22:30:47Z")

</div>

so the thing is i am trying to get the tx history of user

`{{baseUrl}}/transactions?sourceWalletId=f771d95d-4883-4859-a9a7-f45a54bba56f`

but the filtering is not working on sourceWalletId and its giving me all the txs

---

<div class="post-metadata">

### Author: ![Mohammed](https://sea1.discourse-cdn.com/flex015/user_avatar/community.fireblocks.com/mohammed/32/511_2.png) [@Mohammed](https://community.fireblocks.com/u/Mohammed)
#### Post date: [October 3, 2024, 10:35pm UTC](https://community.fireblocks.com/t/how-to-remove-the-old-transaction-from-queue-which-are-in-pending/1496/4 "2024-10-03T22:35:03Z")

</div>

If the Get transaction history endpoint is returning all wallet’s tx history even when you filter by the end user wallet ID as the source, can you try adding a limit filter and filtering by wallet to get all your users’ pending tx?

---

<div class="post-metadata">

### Author: ![tan](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@tan](https://community.fireblocks.com/u/tan)
#### Post date: [October 3, 2024, 10:39pm UTC](https://community.fireblocks.com/t/how-to-remove-the-old-transaction-from-queue-which-are-in-pending/1496/5 "2024-10-03T22:39:37Z")

</div>

no its not returning all wallet tx just for `f771d95d-4883-4859-a9a7-f45a54bba56f` but for all tx in the workplace

for ex its retuning with source wallet id - `f5cc5c48-92fe-4821-8be6-8f966daae893`

 ![image](https://us1.discourse-cdn.com/flex015/uploads/fireblocks/original/1X/3ff1fa8607bb8a6d1e5af037d9484ae5198addd4.png)

So filtering is not happening

---

<div class="post-metadata">

### Author: ![Mohammed](https://sea1.discourse-cdn.com/flex015/user_avatar/community.fireblocks.com/mohammed/32/511_2.png) [@Mohammed](https://community.fireblocks.com/u/Mohammed)
#### Post date: [October 3, 2024, 10:42pm UTC](https://community.fireblocks.com/t/how-to-remove-the-old-transaction-from-queue-which-are-in-pending/1496/6 "2024-10-03T22:42:08Z")

</div>

I understand this looks to be a filtering bug, I will try to replicate on my end.

---

<div class="post-metadata">

### Author: ![Mohammed](https://sea1.discourse-cdn.com/flex015/user_avatar/community.fireblocks.com/mohammed/32/511_2.png) [@Mohammed](https://community.fireblocks.com/u/Mohammed)
#### Post date: [October 3, 2024, 10:59pm UTC](https://community.fireblocks.com/t/how-to-remove-the-old-transaction-from-queue-which-are-in-pending/1496/7 "2024-10-03T22:59:29Z")

</div>

Hi, I was able to replicate this behavior. It does seem like a bug. Are you trying to fetch many tx hashed from one user? If so, let’s try to filter by an asset that is stuck in pending signature and use those tx hashes to cancel pending signatures tx.

---

<div class="post-metadata">

### Author: ![tan](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@tan](https://community.fireblocks.com/u/tan)
#### Post date: [October 3, 2024, 11:11pm UTC](https://community.fireblocks.com/t/how-to-remove-the-old-transaction-from-queue-which-are-in-pending/1496/8 "2024-10-03T23:11:58Z")

</div>

can you get this fixed though cause filtering on wallet id will be simple … cause many wallets will be using same asset also so filtering on it will not be good

---

<div class="post-metadata">

### Author: ![tan](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@tan](https://community.fireblocks.com/u/tan)
#### Post date: [October 3, 2024, 11:53pm UTC](https://community.fireblocks.com/t/how-to-remove-the-old-transaction-from-queue-which-are-in-pending/1496/9 "2024-10-03T23:53:52Z")

</div>

Also one more error

 ![image](https://us1.discourse-cdn.com/flex015/uploads/fireblocks/original/1X/c1e20a40228e7cc2833973589fd791efb0881cda.png)

When trying to do ncw wallet signature and previous one fails and i try to sign again another tx its just gives signing in progress issue , and i cant sign any tx

---

<div class="post-metadata">

### Author: ![tan](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@tan](https://community.fireblocks.com/u/tan)
#### Post date: [November 13, 2024, 4:54pm UTC](https://community.fireblocks.com/t/how-to-remove-the-old-transaction-from-queue-which-are-in-pending/1496/10 "2024-11-13T16:54:21Z")

</div>

Hey @Mohammed can you check if this bug is fixed ?
